-
Notifications
You must be signed in to change notification settings - Fork 10
51 lines (42 loc) · 1.34 KB
/
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
name: GitHub CI
on:
- push
- pull_request
jobs:
windowsBuild:
name: Windows Build
runs-on: windows-latest
env:
LLVM_VERSION: 19.1.5
LLVM_MAJOR_VERSION: 19
strategy:
fail-fast: false
matrix:
CRT:
- msvcrt
- libcmt
TARGET_CPU:
- amd64
CONFIGURATION:
- Debug
- Release
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install
shell: cmd
run: |
call %GITHUB_WORKSPACE%\set-env.bat msvc17 ${{matrix.CRT}} ${{matrix.TARGET_CPU}} ${{matrix.CONFIGURATION}}
call %GITHUB_WORKSPACE%\install.bat
- name: Build and test
id: BUILD
shell: cmd
run: |
call %GITHUB_WORKSPACE%\set-env.bat msvc17 ${{matrix.CRT}} ${{matrix.TARGET_CPU}} ${{matrix.CONFIGURATION}}
call %GITHUB_WORKSPACE%\build.bat
echo ::set-output name=DEPLOY_FILE::%DEPLOY_FILE%
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{steps.BUILD.outputs.DEPLOY_FILE}}