Update .forgejo/workflows/build-release.yml
Some checks failed
Build Zenyx ⚡ / 🏗️ Build aarch64-unknown-linux-gnu (push) Has been cancelled
Build Zenyx ⚡ / 🏗️ Build x86_64-pc-windows-msvc (push) Has been cancelled
Build Zenyx ⚡ / 🏗️ Build x86_64-unknown-linux-gnu (push) Has been cancelled
Build Zenyx ⚡ / 🏗️ Build aarch64-apple-darwin (push) Has been cancelled
Build Zenyx ⚡ / 🏗️ Build x86_64-apple-darwin (push) Has been cancelled
Build Zenyx ⚡ / 🏗️ Build aarch64-pc-windows-msvc (push) Has been cancelled
Build Zenyx ⚡ / 🧪 Run Cargo Tests (push) Has been cancelled

This commit is contained in:
Chance 2025-05-01 19:32:56 +00:00
parent 5e2cb15e13
commit d5bb245401

View file

@ -15,7 +15,7 @@ jobs:
- name: 🚀 Setup & Run tests - name: 🚀 Setup & Run tests
run: | run: |
nix-shell --run " nix-shell -p cargo rustc --run "
cargo test --release --all cargo test --release --all
" "
@ -51,19 +51,19 @@ jobs:
args: --target x86_64-pc-windows-msvc --release args: --target x86_64-pc-windows-msvc --release
- target: aarch64-pc-windows-msvc - target: aarch64-pc-windows-msvc
binary_name: zenyx-aarch64-windows binary_name: zenyx-aarch64-windows
ext: ".exe" # ext: ".exe"
command: xwin build # command: xwin build
args: --target aarch64-pc-windows-msvc --release # args: --target aarch64-pc-windows-msvc --release
- target: x86_64-apple-darwin #- target: x86_64-apple-darwin
binary_name: zenyx-x86_64-macos # binary_name: zenyx-x86_64-macos
ext: "" # ext: ""
command: zigbuild #command: zigbuild
args: --target x86_64-apple-darwin --release #args: --target x86_64-apple-darwin --release
- target: aarch64-apple-darwin #target: aarch64-apple-darwin
binary_name: zenyx-aarch64-macos #binary_name: zenyx-aarch64-macos
ext: "" #ext: ""
command: zigbuild #command: zigbuild
args: --target aarch64-apple-darwin --release #args: --target aarch64-apple-darwin --release
steps: steps:
- name: 📥 Checkout source - name: 📥 Checkout source
@ -80,10 +80,14 @@ 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 - name: 🛠️ Patchelf
if: ${{ matrix.target }} == x86_64-unknown-linux-gnu || ${{ matrix.target }} == aarch64-unknown-linux-gnu if: ${{
matrix.target == 'x86_64-unknown-linux-gnu' ||
matrix.target == 'aarch64-unknown-linux-gnu'
}}
run: | run: |
nix run nixpkgs#patchelf -- --set-interpreter /lib64/ld-linux-x86-64.so.2 artifacts/${{ matrix.binary_name }}${{ matrix.ext }} nix run --extra-experimental-features nix-command --extra-experimental-features flakes 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