-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (48 loc) · 1.39 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
name: Build & Test
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: windows-2022
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Setup Visual Studio Development Environment
uses: compnerd/gha-setup-vsdevenv@main
- name: Install Swift
uses: compnerd/gha-setup-swift@81f383b35a86e6e966de139be25b451d4f7dd953 # The next main commit breaks our %Path%
with:
branch: swift-5.10.1-release
tag: 5.10.1-RELEASE
- name: Build code generator
working-directory: Generator
shell: pwsh
run: swift build --verbose --build-tests
- name: Test code generator
working-directory: Generator
shell: pwsh
run: swift test --verbose --skip-build
- name: Build support module
shell: pwsh
run: swift build --verbose --build-tests
- name: Test support module
shell: pwsh
run: swift test --verbose --skip-build
- name: Build Test WinRT Component
working-directory: InteropTests
shell: pwsh
run: '& .\BuildWinRTComponent.ps1'
- name: Build InteropTests
working-directory: InteropTests
shell: pwsh
run: swift build --verbose --build-tests
- name: Run InteropTests
working-directory: InteropTests
shell: pwsh
run: swift test --verbose --skip-build