-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (46 loc) · 1.23 KB
/
build-and-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Build & Test
on:
push:
workflow_dispatch:
pull_request:
branches:
- main
jobs:
build-spm:
name: Build & Test (SPM)
runs-on: windows-2022
timeout-minutes: 20
steps:
- name: Checkout Swift-WebBrowser
uses: actions/[email protected]
- name: Setup Visual Studio Development Environment
uses: compnerd/gha-setup-vsdevenv@main
- name: Install Swift
uses: compnerd/gha-setup-swift@main
with:
branch: swift-5.8-release
tag: 5.8-RELEASE
- name: Build
run: swift build --verbose --build-tests
- name: Test
run: swift test --verbose --skip-build
build-cmake:
name: Build (CMake)
runs-on: windows-2022
timeout-minutes: 20
steps:
- name: Checkout Swift-WebBrowser
uses: actions/[email protected]
- name: Setup Visual Studio Development Environment
uses: compnerd/gha-setup-vsdevenv@main
- name: Install Swift
uses: compnerd/gha-setup-swift@main
with:
branch: swift-5.8-release
tag: 5.8-RELEASE
- name: CMake Configure
shell: pwsh
run: cmake -S . -B build -G Ninja
- name: CMake Build
shell: pwsh
run: cmake --build .\build