Skip to content

Fix action

Fix action #2

Workflow file for this run

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'

Check failure on line 45 in .github/workflows/setup.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/setup.yml

Invalid workflow file

You have an error in your yaml syntax on line 45
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