Skip to content

Commit 8861a07

Browse files
committed
update workflow to use clang instead of gcc
1 parent 59c890a commit 8861a07

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/packaging.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,16 @@ jobs:
7575
install-module:
7676
name: Install Module Tests
7777
runs-on: ubuntu-latest
78-
container: gcc:15
7978
steps:
79+
- name: Set up Clang
80+
uses: egor-tensin/setup-clang@v2
81+
with:
82+
version: 20
83+
platform: x64
84+
- name: Install specific libc++ version
85+
run: |
86+
sudo apt-get update
87+
sudo apt-get install -y libc++-20-dev libc++abi-20-dev lld-20
8088
- uses: actions/checkout@v6
8189
with:
8290
submodules: true
@@ -93,8 +101,9 @@ jobs:
93101
-DUNITS_ENABLE_TESTS=ON \
94102
-DUNITS_INSTALL_PACKAGE_TESTS=ON \
95103
-DUNITS_BUILD_SHARED_LIBRARY=ON \
104+
-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_LINKER_TYPE=LLD -DCMAKE_CXX_FLAGS=-stdlib=libc++
96105
-DUNITS_BUILD_CXX_MODULE=ON \
97-
-DCMAKE_CXX_STANDARD=20 \
106+
-DCMAKE_CXX_STANDARD=23 \
98107
-DCMAKE_INSTALL_PREFIX=/home/runner/work/install
99108
100109
- name: Build

0 commit comments

Comments
 (0)