Skip to content

Commit f1093c8

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

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,7 @@ jobs:
99
matrix:
1010
compiler: [gcc, clang]
1111
architecture: [arm, riscv]
12+
dynlink: [0, 1]
1213
steps:
1314
- name: Checkout code
1415
uses: actions/checkout@v4
@@ -18,11 +19,13 @@ jobs:
1819
sudo apt-get install -q -y graphviz jq
1920
sudo apt-get install -q -y qemu-user
2021
sudo apt-get install -q -y build-essential
22+
sudo apt-get install -q -y gcc-arm-linux-gnueabi
2123
- name: Build artifacts
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)