Skip to content

Commit 269ab27

Browse files
committed
ci: Test all targets both with GCC and LLVM
Signed-off-by: Michal Rostecki <vadorovsky@protonmail.com>
1 parent b66f902 commit 269ab27

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

.github/workflows/crossdev.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,31 @@ jobs:
8383
- target: x86_64-unknown-linux-gnu
8484
- target: x86_64-unknown-linux-musl
8585
stage3:
86-
- latest # `openrc` (glibc+GCC) is tagged as `latest`
87-
- musl
86+
- tag: latest # `openrc` (glibc+GCC) is tagged as `latest`
87+
toolchain: gcc
88+
- tag: llvm
89+
toolchain: llvm
90+
- tag: musl
91+
toolchain: gcc
92+
- tag: musl-llvm
93+
toolchain: llvm
8894
fail-fast: false
89-
name: crossdev target=${{ matrix.target.target }} stage3=${{ matrix.stage3 }}
95+
name: crossdev target=${{ matrix.target.target }} stage3=${{ matrix.stage3.tag }} toolchain=${{ matrix.stage3.toolchain }}
9096
runs-on: ubuntu-latest
9197
steps:
9298
- uses: actions/checkout@v4
9399

94100
- name: Create cross environment
101+
# crossdev doesn't support bootstraping GNU environments with LLVM.
102+
#
103+
# compiler-rt on musleabi targets fails with:
104+
# `error: DMB is only supported on ARMv6+`
105+
if: ${{ !(matrix.stage3.toolchain == 'llvm' && (contains(matrix.target.target, '-gnu') || contains(matrix.target.target, '-musleabi'))) }}
95106
env:
96107
CONTAINER_ENGINE: docker
108+
LLVM: ${{ matrix.stage3.toolchain == 'llvm' && '1' || '0' }}
97109
run: |
98-
./scripts/container_test.sh \
99-
--tag ${{ matrix.stage3 }} \
110+
./scripts/container_test.sh run \
111+
--tag ${{ matrix.stage3.tag }} \
100112
--target ${{ matrix.target.target }} \
101113
${{ matrix.target.args }}

0 commit comments

Comments
 (0)