-
Notifications
You must be signed in to change notification settings - Fork 0
138 lines (116 loc) · 3.43 KB
/
test_verification.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
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
Linux_gcc:
runs-on: ubuntu-latest
strategy:
matrix:
gccver: [ 10, 11, 12, 13 ]
steps:
- name: Set up cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.26.x'
- name: Set up gcc
uses: egor-tensin/setup-gcc@v1
with:
version: ${{ matrix.gccver }}
platform: x64
- uses: actions/checkout@v4
- name: ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: ${{ github.job }}-${{ matrix.gccver }}-${{ matrix.os }}
max-size: 100M
- name: CMake
run: |
cmake \
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-B ${{github.workspace}}/build .
- name: Build
working-directory: ${{github.workspace}}/build
run: make aselib aselib_test -j
- name: CopyAssets
run: cp -r ${{github.workspace}}/assets ${{github.workspace}}/build/test/unit_tests/
- name: Test
run: ./aselib_test
working-directory: ${{github.workspace}}/build/test/unit_tests
# Windows:
# runs-on: windows-2019
# steps:
# - name: Set up cmake
# uses: jwlawson/[email protected]
# with:
# cmake-version: '3.26.x'
#
# - uses: actions/checkout@v4
#
# - name: CMake
# run: cmake -B ${{github.workspace}}/build . -DOALPP_STATIC_LIBRARY=ON
#
# - name: Build
# working-directory: ${{github.workspace}}/build
# run: cmake --build .
#
# - name: Test
# working-directory: ${{github.workspace}}/build
# run: test/unit_tests/Debug/OpenALpp_UnitTests.exe --order rand
Web:
runs-on: ubuntu-latest
env:
EMCC_CCACHE: 1
steps:
- name: Set up cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.26.x'
- name: Set up gcc
uses: egor-tensin/setup-gcc@v1
with:
version: 11
platform: x64
- uses: mymindstorm/setup-emsdk@v13
with:
version: 3.1.51
- uses: actions/checkout@v4
- name: ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: ${{ github.job }}-${{ matrix.os }}-${{ matrix.type }}
max-size: 100M
- name: CMake
run: |
emcmake cmake -B ${{github.workspace}}/build \
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
.
- name: Build
working-directory: ${{github.workspace}}/build
run: emmake make aselib aselib_test
Mac_clang:
runs-on: macos-latest
steps:
- name: Set up cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.26.x'
- name: Install dependencies
run: |
brew install cmake ninja
- uses: actions/checkout@v4
- name: ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: ${{ github.job }}-${{ matrix.os }}
max-size: 100M
- name: CMake
run: |
cmake \
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-B ${{github.workspace}}/build .
- name: Build
working-directory: ${{github.workspace}}/build
run: make aselib aselib_test -j 4