Skip to content

Commit 1204286

Browse files
committed
use version matrix for makefile build
1 parent 7c60cf4 commit 1204286

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/makefile.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Makefile CI (GCC C++17)
1+
name: Makefile | g++
22

33
on: [push]
44

@@ -7,6 +7,10 @@ jobs:
77

88
runs-on: ubuntu-latest
99

10+
strategy:
11+
matrix:
12+
cpp_version: [17,20,23]
13+
1014
steps:
1115
- uses: actions/checkout@v4
1216
with:
@@ -19,7 +23,7 @@ jobs:
1923
run: sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libglew-dev
2024

2125
- name: Build
22-
run: make -C src -j4
26+
run: make -C src CPP_VERSION=${{ matrix.cpp_version }} -j4
2327

2428
- name: Upload libprimis.so artifact
2529
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)