fix(ci): patchelf linux binaries
Some checks failed
Build Zenyx ⚡ / 🧪 Run Cargo Tests (push) Successful in 4m2s
Build Zenyx ⚡ / 🏗️ Build aarch64-apple-darwin (push) Failing after 8m30s
Build Zenyx ⚡ / 🏗️ Build x86_64-apple-darwin (push) Failing after 8m58s
Build Zenyx ⚡ / 🏗️ Build aarch64-unknown-linux-gnu (push) Failing after 9m33s
Build Zenyx ⚡ / 🏗️ Build aarch64-pc-windows-msvc (push) Failing after 9m40s
Build Zenyx ⚡ / 🏗️ Build x86_64-pc-windows-msvc (push) Failing after 6m17s
Build Zenyx ⚡ / 🏗️ Build x86_64-unknown-linux-gnu (push) Failing after 5m59s

This commit is contained in:
Chance 2025-04-27 14:47:28 -04:00
parent 25068a7679
commit a157812529
Signed by: caznix
GPG key ID: 489D213143D753FD

View file

@ -80,10 +80,15 @@ jobs:
mkdir -p artifacts mkdir -p artifacts
cp target/${{ matrix.target }}/release/zenyx${{ matrix.ext }} artifacts/${{ matrix.binary_name }}${{ matrix.ext }} cp target/${{ matrix.target }}/release/zenyx${{ matrix.ext }} artifacts/${{ matrix.binary_name }}${{ matrix.ext }}
- name: 🛠️ Pathelf
if: ${{ matrix.target }} == x86_64-unknown-linux-gnu || ${{ matrix.target }} == aarch64-unknown-linux-gnu
run: |
nix run nixpkgs#patchelf -- --set-interpreter /lib64/ld-linux-x86-64.so.2 artifacts/${{ matrix.binary_name }}${{ matrix.ext }}
- name: ⬆️ Upload artifact - name: ⬆️ Upload artifact
uses: https://code.forgejo.org/forgejo/upload-artifact@v4 uses: https://code.forgejo.org/forgejo/upload-artifact@v4
with: with:
name: ${{ matrix.binary_name }}${{ matrix.ext }}.zip name: ${{ matrix.binary_name }}.zip
path: artifacts/${{ matrix.binary_name }}${{ matrix.ext }} path: artifacts/${{ matrix.binary_name }}${{ matrix.ext }}
compression-level: 9 compression-level: 9
if-no-files-found: error if-no-files-found: error