Skip to content

Commit 52d1156

Browse files
committed
Make GitHub Actions validate the dynamic linking mode
1 parent f8f452b commit 52d1156

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
matrix:
1010
compiler: [gcc, clang]
1111
architecture: [arm, riscv]
12+
dynlink: [0, 1]
13+
if: !(matrix.architecture == 'riscv' && matrix.linking == '1')
1214
steps:
1315
- name: Checkout code
1416
uses: actions/checkout@v4
@@ -22,7 +24,8 @@ jobs:
2224
env:
2325
CC: ${{ matrix.compiler }}
2426
run: |
25-
make distclean config ARCH=${{ matrix.architecture }}
27+
make distclean config ARCH=${{ matrix.architecture }} \
28+
DYNLINK=${{ matrix.dynlink }}
2629
- name: IR regression tests
2730
run: |
2831
make check-snapshot || exit 1
@@ -37,6 +40,9 @@ jobs:
3740
3841
host-arm:
3942
runs-on: ubuntu-24.04
43+
strategy:
44+
matrix:
45+
dynlink: [0, 1]
4046
steps:
4147
- name: Checkout code
4248
uses: actions/checkout@v4
@@ -52,7 +58,7 @@ jobs:
5258
apt-get update -qq -y
5359
apt-get install -yqq build-essential
5460
run: |
55-
make config ARCH=arm
61+
make config ARCH=arm DYNLINK=${{ matrix.dynlink }}
5662
make check-sanitizer || exit 1
5763
make check || exit 1
5864

0 commit comments

Comments
 (0)