Fix action #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Setup | ||
description: Specific steps to install dependencies shared between actions | ||
inputs: | ||
platform: | ||
required: true | ||
arch: | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: yarn | ||
node-version: lts/* | ||
- name: Install linux dependencies | ||
if: ${{ inputs.platform }} == 'linux' | ||
run: | | ||
sudo apt-get -y update | ||
sudo apt-get -y install make nodejs | ||
sudo snap install zig --classic --beta | ||
- name: Setup Rust | ||
uses: dtolnay/rust-toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
- name: Install MacOS dependencies | ||
if: ${{ inputs.platform }} == 'darwin' | ||
env: | ||
HOMEBREW_NO_AUTO_UPDATE: 1 | ||
run: | | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
brew install zig make | ||
- name: Install Windows dependencies | ||
if: ${{ inputs.platform }} == 'windows' | ||
run: | | ||
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser | ||
iex "& {$(irm get.scoop.sh)} -RunAsAdmin" | ||
scoop install make zig | ||
shell: pwsh | ||
- name: Install JavaScript deps | ||
run: | | ||
corepack enable | ||
yarn | ||
- name: Run tests | ||
if: matrix.arch != 'aarch64' || matrix.platform != 'linux' | ||
run: | | ||
make test-ci | ||
- name: Run tests | ||
if: matrix.arch == 'aarch64' && matrix.platform == 'linux' | ||
env: | ||
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUNNER: qemu-aarch64 | ||
CURRENT_TARGET: aarch64-unknown-linux-musl | ||
run: | | ||
sudo apt-get install -y \ | ||
qemu-system-arm \ | ||
qemu-efi-aarch64 \ | ||
qemu-utils \ | ||
qemu-user | ||
make test-ci |