-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (63 loc) · 2.29 KB
/
test.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: build
on:
push:
pull_request:
workflow_run:
# Use a workflow as a trigger of scheduled builds. Forked repositories can disable scheduled builds by disabling
# "scheduled" workflow, while maintaining ability to perform local CI builds.
workflows:
- scheduled
branches:
- main
- test_actions
types:
- requested
jobs:
test-windows:
runs-on: windows-2022
env:
VS_PATH: C:\Program Files\Microsoft Visual Studio\2022\Enterprise
MSBUILD_PATH: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
shell: cmd
run: |
git submodule update --init
pip install conan
python tools/install_deps.py C:/libraries
- name: Build libfwk debug
shell: cmd
run: '"%MSBUILD_PATH%\MSBuild.exe" windows\libfwk.vcxproj /p:Platform=x64 /p:Configuration=Debug'
- name: Build test_window
shell: cmd
run: '"%MSBUILD_PATH%\MSBuild.exe" windows\test_window.vcxproj /p:Platform=x64 /p:Configuration=Debug'
- name: Build test_stuff
shell: cmd
run: '"%MSBUILD_PATH%\MSBuild.exe" windows\test_stuff.vcxproj /p:Platform=x64 /p:Configuration=Debug'
- name: Build test_geom
shell: cmd
run: '"%MSBUILD_PATH%\MSBuild.exe" windows\test_geom.vcxproj /p:Platform=x64 /p:Configuration=Debug'
- name: Build test_math
shell: cmd
run: '"%MSBUILD_PATH%\MSBuild.exe" windows\test_math.vcxproj /p:Platform=x64 /p:Configuration=Debug'
- name: Test stuff
shell: cmd
run: '"build\test_stuff-x64-Debug\test_stuff.exe"'
- name: Test math
shell: cmd
run: '"build\test_math-x64-Debug\test_math.exe"'
check-formatting:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: |
git submodule update --init
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main'
sudo apt update
sudo apt install clang-format-17
- name: Check formatting
run: |
python tools/format.py