Skip to content

Commit e7eb02a

Browse files
committed
Run test-gibbon-examples workflow once for each compiler
1 parent db445ae commit e7eb02a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/test-gibbon-examples.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ name: Test Gibbon examples
22
on: [ push, pull_request ]
33
jobs:
44
linux:
5-
name: test-gibbon
5+
name: test-gibbon (${{ matrix.cc }})
66
runs-on: ubuntu-22.04
7+
strategy:
8+
matrix:
9+
cc: [gcc, clang]
710
steps:
811
- name: dependencies
912
run: |
@@ -12,7 +15,7 @@ jobs:
1215
sudo apt-get update
1316
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
1417
sudo apt update
15-
sudo apt-get install -y libgc-dev libgmp-dev uthash-dev gcc-11 racket
18+
sudo apt-get install -y libgc-dev libgmp-dev uthash-dev gcc-11 clang racket
1619
sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-11 /usr/bin/gcc
1720
- name: ghc and cabal
1821
env:
@@ -70,4 +73,4 @@ jobs:
7073
run: |
7174
export GIBBONDIR=`pwd`
7275
cd gibbon-compiler/
73-
cabal v2-exec -w $HC test-gibbon-examples -- -v2
76+
cabal v2-exec -w $HC test-gibbon-examples -- -v2 --cc=${{ matrix.cc }}

0 commit comments

Comments
 (0)