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
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:
parent
5e2cb15e13
commit
d5bb245401
1 changed files with 21 additions and 17 deletions
|
@ -15,7 +15,7 @@ jobs:
|
|||
|
||||
- name: 🚀 Setup & Run tests
|
||||
run: |
|
||||
nix-shell --run "
|
||||
nix-shell -p cargo rustc --run "
|
||||
cargo test --release --all
|
||||
"
|
||||
|
||||
|
@ -51,19 +51,19 @@ jobs:
|
|||
args: --target x86_64-pc-windows-msvc --release
|
||||
- target: aarch64-pc-windows-msvc
|
||||
binary_name: zenyx-aarch64-windows
|
||||
ext: ".exe"
|
||||
command: xwin build
|
||||
args: --target aarch64-pc-windows-msvc --release
|
||||
- target: x86_64-apple-darwin
|
||||
binary_name: zenyx-x86_64-macos
|
||||
ext: ""
|
||||
command: zigbuild
|
||||
args: --target x86_64-apple-darwin --release
|
||||
- target: aarch64-apple-darwin
|
||||
binary_name: zenyx-aarch64-macos
|
||||
ext: ""
|
||||
command: zigbuild
|
||||
args: --target aarch64-apple-darwin --release
|
||||
# ext: ".exe"
|
||||
# command: xwin build
|
||||
# args: --target aarch64-pc-windows-msvc --release
|
||||
#- target: x86_64-apple-darwin
|
||||
# binary_name: zenyx-x86_64-macos
|
||||
# ext: ""
|
||||
#command: zigbuild
|
||||
#args: --target x86_64-apple-darwin --release
|
||||
#target: aarch64-apple-darwin
|
||||
#binary_name: zenyx-aarch64-macos
|
||||
#ext: ""
|
||||
#command: zigbuild
|
||||
#args: --target aarch64-apple-darwin --release
|
||||
|
||||
steps:
|
||||
- name: 📥 Checkout source
|
||||
|
@ -80,10 +80,14 @@ jobs:
|
|||
mkdir -p artifacts
|
||||
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
|
||||
- name: 🛠️ Patchelf
|
||||
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 }}
|
||||
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
|
||||
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue