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 adb4e13
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
meson_setup: '-D docs=false -D b_sanitize=none'
- name: 'archlinux:multilib-devel'
multilib: 'true'
- name: 'archlinux:multilib-devel'
multilib: 'true'
linker: 'ldd'
- name: 'debian:unstable'
multilib: 'true'
- name: 'fedora:latest'
Expand All @@ -43,6 +46,9 @@ jobs:
meson_setup: '-D dlopen=zstd,zlib'
- name: 'ubuntu:24.04'
multilib: 'true'
exclude:
- compiler: 'gcc'
container: { linker: 'lld' }

container:
image: ${{ matrix.container.name }}
Expand Down Expand Up @@ -100,11 +106,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.container.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.container.linker }}" ]; then
export LD="${{ matrix.linker }}"
fi
../autogen.sh c

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

0 comments on commit adb4e13

Please sign in to comment.