Compare commits

...

3 commits

Author SHA1 Message Date
6034aa1973
fix(ci): prevent workflow duplication from prs
Some checks failed
Build Zenyx ⚡ / 🔧 Setup Environment (push) Successful in 13s
Build Zenyx ⚡ / 🧪 Run Cargo Tests (push) Failing after 23s
Build Zenyx ⚡ / 🏗️ Build x86_64-pc-windows-msvc (push) Has been skipped
Build Zenyx ⚡ / 🏗️ Build aarch64-unknown-linux-gnu (push) Has been skipped
Build Zenyx ⚡ / 🏗️ Build universal2-apple-darwin (push) Has been skipped
Build Zenyx ⚡ / 🏗️ Build x86_64-unknown-linux-gnu (push) Has been skipped
Build Zenyx ⚡ / 🏗️ Build aarch64-pc-windows-msvc (push) Has been skipped
2025-04-21 20:19:32 -04:00
b23f5794fc
feat(ci): add universal macOS build support 2025-04-21 20:19:32 -04:00
d63645fa6b
fix(ci): binary name does not include extension 2025-04-21 20:19:32 -04:00

View file

@ -3,7 +3,7 @@ name: Build Zenyx ⚡
on:
push:
pull_request:
types: [opened, synchronize, reopened]
jobs:
setup:
name: 🔧 Setup Environment
@ -44,7 +44,7 @@ jobs:
cargo-test:
name: 🧪 Run Cargo Tests
needs: [setup]
needs: setup
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout source
@ -52,6 +52,7 @@ jobs:
- name: 🗄️ Restore Cargo cache
uses: https://github.com/actions/cache@v4
id: restore-cargo-cache
with:
path: |
~/.cargo/registry
@ -76,7 +77,7 @@ jobs:
- name: 🚀 Run tests
uses: https://github.com/actions-rs/cargo@v1
uses: https://github.com/actions-rs/cargo@v1
with:
command: test
args: --release --all
@ -92,6 +93,8 @@ jobs:
- x86_64-unknown-linux-gnu
- aarch64-unknown-linux-gnu
- x86_64-pc-windows-msvc
- aarch64-pc-windows-msvc
- universal2-apple-darwin
include:
- target: x86_64-unknown-linux-gnu
binary_name: zenyx-x86_64-linux
@ -104,10 +107,20 @@ jobs:
command: zigbuild
args: --target aarch64-unknown-linux-gnu --release
- target: x86_64-pc-windows-msvc
binary_name: zenyx-x86_64-windows-msvc
binary_name: zenyx-x86_64-windows
ext: ".exe"
command: xwin
args: build --target x86_64-pc-windows-msvc --release
- target: aarch64-pc-windows-msvc
binary_name: zenyx-aarch64-windows
ext: ".exe"
command: xwin
args: build --target aarch64-pc-windows-msvc --release
- target: universal2-apple-darwin
binary_name: zenyx-universal-macos
ext: ""
command: zigbuild
args: --target universal2-apple-darwin --release
steps:
- name: 📥 Checkout source
@ -115,6 +128,7 @@ jobs:
- name: 🗄️ Restore tool cache
uses: https://github.com/actions/cache@v4
id: restore-tools-cache
with:
path: |
~/.cargo/bin
@ -136,6 +150,7 @@ jobs:
- name: 🗄️ Restore Cargo cache
uses: https://github.com/actions/cache@v4
id: restore-cargo-cache
with:
path: |
~/.cargo/registry
@ -159,9 +174,10 @@ jobs:
run: |
mkdir -p artifacts
cp target/${{ matrix.target }}/release/zenyx${{ matrix.ext }} artifacts/${{ matrix.binary_name }}
- name: ⬆️ Upload artifact
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
with:
name: ${{ matrix.binary_name }}.zip
path: artifacts
name: ${{ matrix.binary_name }}${{ matrix.ext }}
path: artifacts/${{ matrix.binary_name }}${{ matrix.ext }}
if-no-files-found: error