Compare commits

...

3 commits

Author SHA1 Message Date
ca715d1d67
Merge branch 'cicd' (#16)
All checks were successful
Build Zenyx ⚡ / 🧪 Run Cargo Tests (push) Successful in 3m3s
Build Zenyx ⚡ / 🏗️ Build aarch64-unknown-linux-gnu (push) Successful in 9m11s
Build Zenyx ⚡ / 🏗️ Build aarch64-pc-windows-msvc (push) Successful in 10m2s
Build Zenyx ⚡ / 🏗️ Build x86_64-pc-windows-msvc (push) Successful in 10m0s
Build Zenyx ⚡ / 🏗️ Build x86_64-unknown-linux-gnu (push) Successful in 10m28s
Reviewed-on: #16
2025-05-01 23:05:37 +02:00
ebef712ee0
fix(ci): actually set linker dynamically
All checks were successful
Build Zenyx ⚡ / 🧪 Run Cargo Tests (pull_request) Successful in 4m33s
Build Zenyx ⚡ / 🧪 Run Cargo Tests (push) Successful in 4m39s
Build Zenyx ⚡ / 🏗️ Build aarch64-unknown-linux-gnu (pull_request) Successful in 13m35s
Build Zenyx ⚡ / 🏗️ Build aarch64-pc-windows-msvc (pull_request) Successful in 14m20s
Build Zenyx ⚡ / 🏗️ Build x86_64-pc-windows-msvc (pull_request) Successful in 14m29s
Build Zenyx ⚡ / 🏗️ Build x86_64-unknown-linux-gnu (pull_request) Successful in 15m4s
Build Zenyx ⚡ / 🏗️ Build aarch64-pc-windows-msvc (push) Successful in 10m37s
Build Zenyx ⚡ / 🏗️ Build aarch64-unknown-linux-gnu (push) Successful in 10m1s
Build Zenyx ⚡ / 🏗️ Build x86_64-pc-windows-msvc (push) Successful in 9m55s
Build Zenyx ⚡ / 🏗️ Build x86_64-unknown-linux-gnu (push) Successful in 9m58s
2025-05-01 22:34:10 +02:00
c455aa5cd6
fix(ci): remove macOS and fix linking
Some checks failed
Build Zenyx ⚡ / 🧪 Run Cargo Tests (push) Has been cancelled
Build Zenyx ⚡ / 🏗️ Build aarch64-pc-windows-msvc (push) Has been cancelled
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 ⚡ / 🧪 Run Cargo Tests (pull_request) Successful in 2m51s
Build Zenyx ⚡ / 🏗️ Build aarch64-pc-windows-msvc (pull_request) Successful in 9m45s
Build Zenyx ⚡ / 🏗️ Build x86_64-pc-windows-msvc (pull_request) Successful in 9m57s
Build Zenyx ⚡ / 🏗️ Build x86_64-unknown-linux-gnu (pull_request) Failing after 10m35s
Build Zenyx ⚡ / 🏗️ Build aarch64-unknown-linux-gnu (pull_request) Failing after 10m43s
2025-05-01 16:16:25 -04:00

View file

@ -15,7 +15,7 @@ jobs:
- name: 🚀 Setup & Run tests
run: |
nix-shell --run "
nix-shell -p cargo rustc --run "
cargo test --release --all
"
@ -29,41 +29,47 @@ jobs:
target:
- x86_64-unknown-linux-gnu
- x86_64-pc-windows-msvc
- x86_64-apple-darwin
#- x86_64-apple-darwin
- aarch64-unknown-linux-gnu
- aarch64-pc-windows-msvc
- aarch64-apple-darwin
#- aarch64-apple-darwin
include:
- target: x86_64-unknown-linux-gnu
binary_name: zenyx-x86_64-linux
ext: ""
linker: /lib64/ld-linux-x86-64.so.2
command: zigbuild
args: --target x86_64-unknown-linux-gnu --release
- target: aarch64-unknown-linux-gnu
binary_name: zenyx-aarch64-linux
ext: ""
linker: /lib/ld-linux-aarch64.so.1
command: zigbuild
args: --target aarch64-unknown-linux-gnu --release
- target: x86_64-pc-windows-msvc
binary_name: zenyx-x86_64-windows
ext: ".exe"
linker: ""
command: xwin build
args: --target x86_64-pc-windows-msvc --release
- target: aarch64-pc-windows-msvc
binary_name: zenyx-aarch64-windows
ext: ".exe"
linker: ""
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
#- target: x86_64-apple-darwin
# binary_name: zenyx-x86_64-macos
# ext: ""
# linker: ""
#command: zigbuild
#args: --target x86_64-apple-darwin --release
#target: aarch64-apple-darwin
#binary_name: zenyx-aarch64-macos
#ext: ""
#linker: ""
#command: zigbuild
#args: --target aarch64-apple-darwin --release
steps:
- name: 📥 Checkout source
@ -80,10 +86,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 ${{ matrix.linker }} \
artifacts/${{ matrix.binary_name }}${{ matrix.ext }}
- name: ⬆️ Upload artifact
uses: https://code.forgejo.org/forgejo/upload-artifact@v4