-
Notifications
You must be signed in to change notification settings - Fork 77
68 lines (60 loc) · 1.38 KB
/
ci.yaml
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
63
64
65
66
67
68
name: ci
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
config:
- {
name: "Emocheck x64 build",
pe: "emocheck_x64.exe",
script: ".\\build64.bat",
log: ".\\buildlog64.txt",
arch: "x64"
}
- {
name: "Emocheck x86 build",
pe: "emocheck_x86.exe",
script: ".\\build32.bat",
log: ".\\buildlog32.txt",
arch: "x86"
}
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Setup MSVC dev commands.
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.config.arch }}
- name: Build
run: |
${{ matrix.config.script }}
shell: powershell
env:
CC: clang
CXX: clang++
- name: Show build log
run: type ${{ matrix.config.log }}
- name: Test
run: |
.\build\emocheck.exe /quiet
type *emocheck.txt
.\build\emocheck.exe /quiet /json
type *emocheck.json
shell: powershell
- name: Archive build results
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.config.pe }}
path: .\build\emocheck.exe