Skip to content

Commit 818a296

Browse files
committed
Update the GH code actions
1 parent a1d1b04 commit 818a296

File tree

1 file changed

+7
-24
lines changed

1 file changed

+7
-24
lines changed

.github/workflows/make.yml

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,40 +9,23 @@ on:
99
jobs:
1010
build:
1111
name: Compile and test on Linux
12-
runs-on: ${{ matrix.os }}
12+
runs-on: ubuntu-latest
13+
container:
14+
image: wichtounet/cpp:latest
1315
strategy:
1416
matrix:
15-
os: [ubuntu-24.04]
16-
compiler: [g++-14,clang++-18]
17+
compiler: [gcc, clang]
1718

1819
steps:
1920
- name: Checkout code
2021
uses: actions/checkout@v3
2122
with:
2223
submodules: recursive
23-
24-
- name: Install dependencies
25-
run: sudo apt install nasm libboost-all-dev
26-
27-
- name: Install GCC compiler
28-
run: sudo apt install g++-14
29-
30-
- name: install LLVM compiler
31-
run: |
32-
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
33-
sudo apt-add-repository "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-18 main"
34-
sudo apt update
35-
sudo apt install clang-18
36-
3724
- name: Build binaries
38-
env:
39-
CXX: ${{ matrix.compiler }}
40-
run: make -j5 ./release_debug/bin/eddic
25+
run: make -j5 ./release_debug/bin/eddic compiler=${{ matrix.compiler }}
4126

4227
- name: Build tests
43-
env:
44-
CXX: ${{ matrix.compiler }}
45-
run: make -j5 ./release_debug/bin/test
28+
run: make -j5 ./release_debug/bin/test compiler=${{ matrix.compiler }}
4629

4730
- name: Run tests
48-
run: ./release_debug/bin/test
31+
run: ./release_debug/bin/test compiler=${{ matrix.compiler }}

0 commit comments

Comments
 (0)