-
Notifications
You must be signed in to change notification settings - Fork 0
121 lines (116 loc) · 3.71 KB
/
ci.yml
File metadata and controls
121 lines (116 loc) · 3.71 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: "CI"
# Controls when the action will run. Triggers the workflow on push or pull request events
on:
push:
pull_request:
types: [opened, synchronize, edited, reopened]
env:
LAB_INDEX: 3
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
windows:
name: "Windows (MSVC + MSBuild)"
runs-on: windows-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2.3.4
with:
submodules: recursive
- name: Install vcpkg dependencies
shell: cmd
run: |
cmd /C ".github\buildsteps\windows\install-dependencies.bat"
- name: Build
shell: cmd
run: |
cmd /C ".github\buildsteps\windows\build.bat"
- name: Run unit tests (via ctest)
shell: cmd
run: |
cmd /C ".github\buildsteps\windows\run-unittests.bat"
# - name: Run custom functional tests
# shell: cmd
# run: |
# cmd /C ".github\buildsteps\windows\run-custom-functionaltests.bat"
- name: Publish artifacts
uses: actions/upload-artifact@v2.1.4
with:
name: lab${{ env.LAB_INDEX }}-windows
retention-days: 14
path: |
${{ env.LAB_INDEX }}/build/x86_32/**/*.exe
${{ env.LAB_INDEX }}/build/x86_32/**/*.dll
${{ env.LAB_INDEX }}/build/x86_32/**/*.lib
${{ env.LAB_INDEX }}/build/x86_32/**/*.pdb
${{ env.LAB_INDEX }}/build/x86_64/**/*.exe
${{ env.LAB_INDEX }}/build/x86_64/**/*.dll
${{ env.LAB_INDEX }}/build/x86_64/**/*.lib
${{ env.LAB_INDEX }}/build/x86_64/**/*.pdb
linux:
name: "Ubuntu (GCC + Make)"
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2.3.4
with:
submodules: recursive
- name: Install vcpkg dependencies
shell: bash
run: |
bash -c ".github/buildsteps/linux/install-dependencies.sh"
- name: Build
shell: bash
run: |
bash -c ".github/buildsteps/linux/build.sh"
- name: Run unit tests (via ctest)
shell: bash
run: |
bash -c ".github/buildsteps/linux/run-unittests.sh"
# - name: Run custom functional tests
# shell: bash
# run: |
# bash -c ".github/buildsteps/linux/run-custom-functionaltests.sh"
- name: Publish artifacts
uses: actions/upload-artifact@v2.1.4
with:
name: lab${{ env.LAB_INDEX }}-linux
retention-days: 14
path: |
${{ env.LAB_INDEX }}/build/debug/
${{ env.LAB_INDEX }}/build/release/
macos:
name: "macOS (Clang + Ninja)"
runs-on: macos-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2.3.4
with:
submodules: recursive
- name: Install ninja build tool
shell: bash
run: |
brew install ninja
- name: Install vcpkg dependencies
shell: bash
run: |
bash -c ".github/buildsteps/macos/install-dependencies.sh"
- name: Build
shell: bash
run: |
bash -c ".github/buildsteps/macos/build.sh"
- name: Run unit tests (via ctest)
shell: bash
run: |
bash -c ".github/buildsteps/macos/run-unittests.sh"
# - name: Run custom functional tests
# shell: bash
# run: |
# bash -c ".github/buildsteps/macos/run-custom-functionaltests.sh"
- name: Publish artifacts
uses: actions/upload-artifact@v2.1.4
with:
name: lab${{ env.LAB_INDEX }}-macos
retention-days: 14
path: |
${{ env.LAB_INDEX }}/build/debug/
${{ env.LAB_INDEX }}/build/release/