-
Notifications
You must be signed in to change notification settings - Fork 13
64 lines (56 loc) · 1.86 KB
/
tests.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
name: Tests
on: push
jobs:
tests:
name: Tests
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-22.04
platform: linux-gcc CXX=g++-9
- os: ubuntu-22.04
platform: linux-gcc CXX=g++-10
- os: ubuntu-22.04
platform: linux-gcc CXX=g++-11
- os: ubuntu-22.04
platform: linux-gcc CXX=g++-12
- os: ubuntu-22.04
platform: linux-clang CXX=clang++-13
- os: ubuntu-22.04
platform: linux-clang CXX=clang++-14
- os: ubuntu-22.04
platform: linux-clang CXX=clang++-15
- os: windows-2019
platform: win-vs-32
- os: windows-2019
platform: win-vs-64
- os: windows-2022
platform: win-vs-32
- os: windows-2022
platform: win-vs-64
- os: macos-13
platform: macos-clang-64
- os: macos-14
platform: macos-clang-arm64
steps:
- uses: actions/checkout@v3
- if: startsWith(matrix.os, 'windows')
name: Windows - Set up MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ endswith(matrix.platform, '-32') && 'x86' || 'x64' }}
- if: startsWith(matrix.os, 'windows')
name: Windows - Install make
run: choco install --no-progress -y make
- if: matrix.container == 'quay.io/pypa/manylinux2014_x86_64'
name: Manylinux2014 container - Set default python3
run: ln -s $(which python3.10) /usr/bin/python3
- name: Compile tests
run: make PLATFORM=${{ matrix.platform }} -k -C tests compile
env:
C_FLAGS: $(treat_warnings_as_errors)
- name: Run tests
run: make PLATFORM=${{ matrix.platform }} -k -C tests test