diff --git a/.forgejo/workflows/build-debian.yml b/.forgejo/workflows/build-debian.yml index 92848408..3742b548 100644 --- a/.forgejo/workflows/build-debian.yml +++ b/.forgejo/workflows/build-debian.yml @@ -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