forked from elhuhdron/pylibczi
-
Notifications
You must be signed in to change notification settings - Fork 8
45 lines (45 loc) · 1.12 KB
/
cpp-build-pr.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
on: [pull_request]
name: C++ Build PR
jobs:
cmake-build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "windows-latest msvc",
os: windows-latest,
cc: "cl", cxx: "cl",
}
- {
name: "ubuntu-latest gnu",
os: ubuntu-latest,
cc: "gcc", cxx: "g++",
}
- {
name: "ubuntu-latest clang",
os: ubuntu-latest,
cc: "clang", cxx: "clang++",
}
- {
name: "macos-latest clang",
os: macos-latest,
cc: "clang", cxx: "clang++"
}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: build and test
env:
CC: ${{ matrix.config.cc }}
CXX: ${{ matrix.config.cxx }}
RUN_TESTS: true
run: |
mkdir ./cmake-build-debug
cd cmake-build-debug
cmake ../
cmake --build . --target test_libczi_c++_extension
shell: bash