Skip to content

Commit

Permalink
ci: Add pipeline to test linking with lld
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas De Marchi <[email protected]>
  • Loading branch information
lucasdemarchi committed Jan 6, 2025
1 parent 3099e49 commit 4df745c
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
meson_setup: '-D docs=false -D b_sanitize=none'
- name: 'archlinux:multilib-devel'
multilib: 'true'
- name: 'archlinux:multilib-devel'
linker: 'ldd'
- name: 'debian:unstable'
multilib: 'true'
- name: 'fedora:latest'
Expand All @@ -43,6 +45,9 @@ jobs:
meson_setup: '-D dlopen=zstd,zlib'
- name: 'ubuntu:24.04'
multilib: 'true'
exclude:
- compiler: 'gcc'
- linker: 'lld'

container:
image: ${{ matrix.container.name }}
Expand Down Expand Up @@ -100,11 +105,21 @@ jobs:
- name: configure (meson)
if: ${{ matrix.build == 'meson' }}
run: mkdir build && cd build && meson setup --native-file ../build-dev.ini ${{ matrix.container.meson_setup }} . ..
run:
mkdir build && cd build
if [[ -n "${{ matrix.linker }}" ]]; then
export CC_LD="${{ matrix.linker }}"
fi
meson setup --native-file ../build-dev.ini ${{ matrix.container.meson_setup }} . ..

- name: configure (autotools)
if: ${{ matrix.build == 'autotools' }}
run: mkdir build && cd build && ../autogen.sh c
run:
mkdir build && cd build
if [[ -n "${{ matrix.linker }}" ]]; then
export LD="${{ matrix.linker }}"
fi
../autogen.sh c

- name: build (meson)
if: ${{ matrix.build == 'meson' }}
Expand Down

0 comments on commit 4df745c

Please sign in to comment.