Skip to content

Propagate ctx around lambdas for access to current file path #714

Propagate ctx around lambdas for access to current file path

Propagate ctx around lambdas for access to current file path #714

Workflow file for this run

name: builder
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
- 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: nixjs-rt
run: |
cd nixjs-rt
eval "$(nix print-dev-env)"
parallel --line-buffer --ctagstring "{}>\033[0m" scripts/{} ::: \
check-nix-pkg.sh \
check-npm-deps-hash.sh \
check-npm.sh
- name: Build
run: |
eval "$(nix print-dev-env)"
set -x
cargo fmt --check
cargo clippy -- --deny "warnings"
cargo test