-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (58 loc) · 1.73 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
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
Linux_gcc:
runs-on: ubuntu-latest
strategy:
matrix:
gccver: [ 9, 10, 11 ]
steps:
- name: Set up cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.19.x'
- name: Set up gcc
uses: egor-tensin/setup-gcc@v1
with:
version: ${{ matrix.gccver }}
platform: x64
- uses: actions/checkout@v2
with:
lfs: 'true'
- 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 \
-DAPI_ENABLE_UNIT_TESTS=ON \
-B ${{github.workspace}}/build .
- name: Build
working-directory: ${{github.workspace}}/build
run: make -j
- name: Test
run: ./arbitrary_precision_int_unit_tests --gtest_shuffle
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.19.x'
- uses: actions/checkout@v2
- name: CMake
run: cmake -DAPI_ENABLE_UNIT_TESTS=ON -B ${{github.workspace}}/build .
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build .
- name: Test
run: ./arbitrary_precision_int_unit_tests.exe --gtest_shuffle
working-directory: ${{github.workspace}}/build/test/unit_tests/Debug