Revert "fix(ci): ensure node is installed"
This reverts commit cb91bde7f8
.
This commit is contained in:
parent
8430a67951
commit
503c87c288
1 changed files with 62 additions and 65 deletions
|
@ -1,78 +1,75 @@
|
||||||
name: Build Zenyx ⚡
|
name: Build Zenyx ⚡
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build ${{ matrix.target }}
|
name: Build ${{ matrix.target }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ${{ matrix.container }}
|
container: ${{ matrix.container }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- target: x86_64-unknown-linux-gnu
|
- target: x86_64-unknown-linux-gnu
|
||||||
container: messense/cargo-zigbuild:latest
|
container: messense/cargo-zigbuild:latest
|
||||||
binary_name: zenyx-x86_64-linux
|
binary_name: zenyx-x86_64-linux
|
||||||
ext: ""
|
ext: ""
|
||||||
|
|
||||||
- target: aarch64-unknown-linux-gnu
|
- target: aarch64-unknown-linux-gnu
|
||||||
container: messense/cargo-zigbuild:latest
|
container: messense/cargo-zigbuild:latest
|
||||||
binary_name: zenyx-aarch64-linux
|
binary_name: zenyx-aarch64-linux
|
||||||
ext: ""
|
ext: ""
|
||||||
|
|
||||||
- target: universal2-apple-darwin
|
- target: universal2-apple-darwin
|
||||||
container: messense/cargo-zigbuild:latest
|
container: messense/cargo-zigbuild:latest
|
||||||
binary_name: zenyx-universal-macos
|
binary_name: zenyx-universal-macos
|
||||||
ext: ""
|
ext: ""
|
||||||
|
|
||||||
- target: x86_64-pc-windows-msvc
|
- target: x86_64-pc-windows-msvc
|
||||||
container: messense/cargo-xwin:latest
|
container: messense/cargo-xwin:latest
|
||||||
binary_name: zenyx-x86_64-windows-msvc.exe
|
binary_name: zenyx-x86_64-windows-msvc.exe
|
||||||
ext: ".exe"
|
ext: ".exe"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Ensure nodejs
|
- name: 📥 Checkout source
|
||||||
run: |
|
uses: https://github.com/actions/checkout@v4
|
||||||
apt-get -y install nodejs
|
|
||||||
- name: 📥 Checkout source
|
|
||||||
uses: https://github.com/actions/checkout@v4
|
|
||||||
|
|
||||||
- name: 🧩 Restore Cargo cache
|
- name: 🧩 Restore Cargo cache
|
||||||
uses: https://github.com/actions/cache@v4
|
uses: https://github.com/actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
/usr/local/cargo/registry
|
/usr/local/cargo/registry
|
||||||
/usr/local/cargo/git
|
/usr/local/cargo/git
|
||||||
target
|
target
|
||||||
key: ${{ runner.os }}-cargo-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-${{ matrix.target }}-
|
${{ runner.os }}-cargo-${{ matrix.target }}-
|
||||||
|
|
||||||
- name: 🦀 Install macOS targets
|
- name: 🦀 Install macOS targets
|
||||||
if: matrix.target == 'universal2-apple-darwin'
|
if: matrix.target == 'universal2-apple-darwin'
|
||||||
uses: https://github.com/actions-rs/toolchain@v1
|
uses: https://github.com/actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
target: x86_64-apple-darwin,aarch64-apple-darwin
|
target: x86_64-apple-darwin,aarch64-apple-darwin
|
||||||
|
|
||||||
- name: 🚀 Build project
|
- name: 🚀 Build project
|
||||||
run: |
|
run: |
|
||||||
cargo zigbuild --target ${{ matrix.target }} --release
|
cargo zigbuild --target ${{ matrix.target }} --release
|
||||||
if: matrix.target != 'x86_64-pc-windows-msvc'
|
if: matrix.target != 'x86_64-pc-windows-msvc'
|
||||||
|
|
||||||
- name: 🚀 Build Windows project
|
- name: 🚀 Build Windows project
|
||||||
run: |
|
run: |
|
||||||
cargo xwin build --target ${{ matrix.target }} --release
|
cargo xwin build --target ${{ matrix.target }} --release
|
||||||
if: matrix.target == 'x86_64-pc-windows-msvc'
|
if: matrix.target == 'x86_64-pc-windows-msvc'
|
||||||
|
|
||||||
- name: 📦 Package artifact
|
- name: 📦 Package artifact
|
||||||
run: mkdir -p artifacts && cp target/${{ matrix.target }}/release/zenyx${{ matrix.ext }} artifacts/${{ matrix.binary_name }}
|
run: mkdir -p artifacts && cp target/${{ matrix.target }}/release/zenyx${{ matrix.ext }} artifacts/${{ matrix.binary_name }}
|
||||||
|
|
||||||
- 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 }}
|
name: ${{ matrix.binary_name }}
|
||||||
path: artifacts/${{ matrix.binary_name }}
|
path: artifacts/${{ matrix.binary_name }}
|
Loading…
Add table
Add a link
Reference in a new issue