fix(ci): Special case ubuntu-latest

This commit is contained in:
timedout 2026-03-03 23:07:55 +00:00
parent 0226ca1e83
commit d725e98220
No known key found for this signature in database
GPG key ID: 0FA334385D0B689F

View file

@ -41,17 +41,17 @@ jobs:
# else
# echo "No workaround needed for llvm-project#153385"
# fi
#- name: Pick compatible clang version
# id: clang-version
# run: |
# # both latest need to use clang-23, but oldstable and previous can just use clang
# if [[ "${{ matrix.container }}" == "ubuntu-latest" || "${{ matrix.container }}" == "debian-latest" ]]; then
# echo "Using clang-23 package for ${{ matrix.container }}"
# echo "version=clang-23" >> $GITHUB_OUTPUT
# else
# echo "Using default clang package for ${{ matrix.container }}"
# echo "version=clang" >> $GITHUB_OUTPUT
# fi
- name: Pick compatible clang version
id: clang-version
run: |
# both latest need to use clang-23, but oldstable and previous can just use clang
if [[ "${{ matrix.container }}" == "ubuntu-latest" ]]; then
echo "Using clang-23 package for ${{ matrix.container }}"
echo "version=clang-23" >> $GITHUB_OUTPUT
else
echo "Using default clang package for ${{ matrix.container }}"
echo "version=clang" >> $GITHUB_OUTPUT
fi
- name: Checkout repository with full history
uses: actions/checkout@v6
@ -127,7 +127,7 @@ jobs:
run: |
apt-get update -y
# Build dependencies for rocksdb
apt-get install -y liburing-dev clang
apt-get install -y liburing-dev ${{ steps.clang-version.outputs.version }}
- name: Run cargo-deb
id: cargo-deb