-
Notifications
You must be signed in to change notification settings - Fork 16
/
action.yml
54 lines (46 loc) · 1.56 KB
/
action.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
inputs:
config:
required: true
type: string
GITHUB_TOKEN:
required: true
runs:
using: "composite"
steps:
- name: Configure VC++ build for amd64
uses: compnerd/gha-setup-vsdevenv@f1ba60d553a3216ce1b89abe0201213536bc7557
with:
arch: amd64
- name: Install private Swift toolchain
uses: compnerd/gha-setup-swift@81f383b35a86e6e966de139be25b451d4f7dd953
with:
github-repo: thebrowsercompany/swift-build
github-token: ${{ inputs.GITHUB_TOKEN }}
release-tag-name: 20231025.2
release-asset-name: installer-amd64.exe
- name: Configure CMake
shell: cmd
run: cmake --preset ${{ inputs.config }}
- name: Build
shell: cmd
run: |
cmake --build --preset ${{ inputs.config }}
cmake --build --preset ${{ inputs.config }} --target install
# Right now this is failing due to line-ending differences, need to figure out how to fix that
# - name: Validate Checked-In Files are Up-To-Date
# shell: powershell
# run: |
# $dirty = git status --porcelain
# if ($dirty) {
# git diff
# throw "Checked in files are not up-to-date, re-run swiftwinrt before checking-in: \n$dirty"
# }
- name: Upload swiftwinrt logs on failure
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
if: failure()
with:
name: swiftwinrt-log
path: ${{ github.workspace }}\tests\test_component\swiftwinrt.log
- name: Run test app
shell: cmd
run: .\out\${{ inputs.config }}\bin\test_app.exe