Skip to content

Commit d27d654

Browse files
committed
Workflow
Changes to be committed: new file: .github/workflows/cmake-test.yml
1 parent af205b7 commit d27d654

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/workflows/cmake-test.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: ae2f-workflow
2+
on:
3+
push:
4+
branches: [main]
5+
6+
jobs:
7+
test-compiler-majours:
8+
runs-on: ${{ matrix.os }}
9+
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: [ubuntu-latest, windows-latest, macos-latest, ubuntu-24.04-arm, windows-11-arm]
14+
c: [-DCMAKE_C_COMPILER=gcc, -DCMAKE_C_COMPILER=clang, \"\"]
15+
conf: [Release, Debug]
16+
17+
include:
18+
- os: ubuntu-latest
19+
bash: bash
20+
21+
- os: windows-latest
22+
bash: bash
23+
24+
- os: macos-latest
25+
bash: bash
26+
27+
- os: ubuntu-24.04-arm
28+
bash: bash
29+
30+
- os: windows-11-arm
31+
bash: bash
32+
33+
- c: -DCMAKE_C_COMPILER=gcc
34+
cc: -DCMAKE_CXX_COMPILER=g++
35+
36+
- c: -DCMAKE_C_COMPILER=clang
37+
cc: -DCMAKE_CXX_COMPILER=clang++
38+
39+
- c: \"\"
40+
cc: \"\"
41+
42+
steps:
43+
- uses: actions/checkout@v4
44+
with:
45+
ref: 'main'
46+
fetch-depth: '1'
47+
48+
- name: Set reusable strings
49+
id: strings
50+
shell: bash
51+
run: echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
52+
53+
- name: setupninja-win
54+
if: matrix.os == 'windows-11-arm'
55+
uses: ashutoshvarma/setup-ninja@master
56+
57+
- name: setupclang-win
58+
if: matrix.c == '-DCMAKE_C_COMPILER=clang' && matrix.os == 'windows-11-arm' || matrix.os == 'windows-latest'
59+
uses: egor-tensin/setup-clang@v1
60+
61+
- name: Test
62+
run: ${{ matrix.bash }} ./test.sh ${{ matrix.c }} ${{ matrix.cc }} ${{ matrix.conf }}
63+
64+

0 commit comments

Comments
 (0)