-
Notifications
You must be signed in to change notification settings - Fork 5
88 lines (70 loc) · 1.81 KB
/
gcc.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
name: GCC
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CTEST_OUTPUT_ON_FAILURE: 1
jobs:
gcc-7:
runs-on: ubuntu-20.04
strategy:
matrix:
config: [Debug, Release]
steps:
- uses: actions/checkout@v4
- uses: friendlyanon/setup-vcpkg@v1
with:
committish: b4624c3a701b11248d88aab08744a37ee7aea1cc
path: the-vcpkg
cache-version: gcc-7
- name: Configure
run: |
export CC=`which gcc-7`
export CXX=`which g++-7`
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.config}} \
-D"CMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" \
-DALIA_ENABLE_UI=OFF \
.
- name: Build
run: >
cmake --build build --config ${{matrix.config}}
--target core_unit_test_runner -j4
- name: Test
run: |
cd build
ctest --build-config ${{matrix.config}}
gcc-10:
runs-on: ubuntu-20.04
strategy:
matrix:
config: [Debug, Release]
steps:
- uses: actions/checkout@v4
- uses: friendlyanon/setup-vcpkg@v1
with:
committish: b4624c3a701b11248d88aab08744a37ee7aea1cc
path: the-vcpkg
cache-version: gcc-10
- name: Install
run: |
sudo apt install gcc-10
- name: Configure
run: |
export CC=`which gcc-10`
export CXX=`which g++-10`
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.config}} \
-D"CMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" \
-DALIA_ENABLE_UI=OFF \
.
- name: Build
run: >
cmake --build build --config ${{matrix.config}}
--target core_unit_test_runner -j4
- name: Test
run: |
cd build
ctest --build-config ${{matrix.config}}