-
-
Notifications
You must be signed in to change notification settings - Fork 47
55 lines (45 loc) · 1.42 KB
/
windows_ci.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
name: Windows
# TODO: MinGW(gcc) build
# TODO: llvm-mingw(clang) build
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
# Windows(x64) + Visual Studio 2019 build
build-windows-msvc:
runs-on: windows-latest
name: Build for Windows(x64, MSVC)
# Use system installed cmake
# https://help.github.com/en/actions/reference/software-installed-on-github-hosted-runners
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Configure
run: .\vcsetup.bat
- name: Build
run: cmake --build build --config Release
- name: Test
run: ctest --test-dir build -C Release --output-on-failure
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: dist-win-x64-release
path: |
build/Release/tusdcat.exe
# Windows(32bit) + Visual Studio 2019 build
build-windows-msvc-win32:
runs-on: windows-latest
name: Build for Windows(Win32, MSVC)
# Use system installed cmake
# https://help.github.com/en/actions/reference/software-installed-on-github-hosted-runners
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Configure
run: .\vcsetup-32bit.bat
- name: Build
run: cmake --build build_win32 --config Release
- name: Test
run: ctest --test-dir build_win32 -C Release --output-on-failure