-
Notifications
You must be signed in to change notification settings - Fork 4
62 lines (49 loc) · 1.36 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
60
61
62
name: Build & Test
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
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
# TODO: Use mainline version once linker issue is fixed.
uses: compnerd/gha-setup-swift@8f43ccc3e8bac89829862af09de9567c807c1c12
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