Skip to content

reusable magic-nix-cache workflow #581

reusable magic-nix-cache workflow

reusable magic-nix-cache workflow #581

Workflow file for this run

name: builder
on: [push, pull_request]
jobs:
build:
name: Build

Check failure on line 5 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / builder

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 5, Col: 5): Required property is missing: runs-on
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/magic-nix-cache.yml
- name: Cache Rust Artifacts
uses: actions/cache@v4
env:
cache-name: cache-rust-artifacts
with:
path: |
/home/runner/.rustup
/home/runner/.cargo
target
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml', '**/Cargo.lock', '**/.cargo/config.toml', '**/rust-toolchain.toml', '**/flake.nix', '**/flake.lock') }}
- name: Build
run: |
eval "$(nix print-dev-env)"
(cd nixjs-rt; npm ci)
parallel --line-buffer --ctagstring "{}>\033[0m" scripts/ci-{}.sh ::: \
build-rix \
check-nixjs-rt \
check-npm-deps-hash \
nix-pkg-nixjs-rt \
nix-pkg-rix