-
Notifications
You must be signed in to change notification settings - Fork 8
51 lines (43 loc) · 1.23 KB
/
ci.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
name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
ubuntu:
strategy:
matrix:
CXX: [g++ -std=c++11,
g++ -std=c++14,
g++ -std=c++17,
g++ -std=c++20,
g++ -std=c++23,
clang++ -std=c++11,
clang++ -std=c++14,
clang++ -std=c++17,
clang++ -std=c++20,
clang++ -std=c++23]
name: ${{ matrix.CXX }}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install Valgrind
run: sudo apt update && sudo apt install -y valgrind
- name: Run tests
working-directory: ./test
run: make SILENT=1 CXX="${{ matrix.CXX }}" -j$(nproc)
windows:
strategy:
matrix:
CXX: ["cl /std:c++14",
"cl /std:c++17",
"cl /std:c++20",
"cl /std:c++latest"]
name: MSVC [${{ matrix.CXX }}]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- name: Install GNU Make
run: choco install make
- name: Run tests
shell: cmd
working-directory: .\test
run: make SILENT=1 CXX="${{ matrix.CXX }}" -f makefile.msvc