Skip to content

Commit

Permalink
[ci] Try to fix jammy clang build
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Jul 17, 2022
1 parent b2ddc7a commit 03ba940
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ubuntu-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ jobs:
- name: Build
run: |
CC=gcc-12 CXX=g++-12 ./ci/jammy.build.sh
CC=gcc-12 CXX=g++-12 LDFLAGS= ./ci/jammy.build.sh
- name: Deploy
run: |
Expand Down Expand Up @@ -168,4 +168,4 @@ jobs:
- name: Build
run: |
CC=clang-14 CXX=clang++-14 ./ci/jammy.build.sh
CC=clang-14 CXX=clang++-14 LDFLAGS=-fuse-ld=lld ./ci/jammy.build.sh
5 changes: 4 additions & 1 deletion ci/jammy.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ cmake .. \
-DBUILD_SHARED_LIBS=0 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=install \
-DCMAKE_UNITY_BUILD=1
-DCMAKE_UNITY_BUILD=1 \
-DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS" \
-DCMAKE_SHARED_LINKER_FLAGS="$LDFLAGS" \
-DCMAKE_MODULE_LINKER_FLAGS="$LDFLAGS"

cmake --build .
cmake --build . --target install
Expand Down
2 changes: 1 addition & 1 deletion ci/jammy.deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apt-get install -y \
--allow-downgrades \
--allow-remove-essential \
--allow-unauthenticated \
binutils gcc-12 g++-12 clang-14 clang++-14 \
binutils gcc-12 g++-12 clang-14 clang++-14 lld-14 \
software-properties-common wget \
libasound-dev \
ninja-build cmake \
Expand Down

0 comments on commit 03ba940

Please sign in to comment.