Merge 94f9447eec7973ebc9880b498d3ccc6ecc203b84 into sapling-pr-archiv… #783
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: 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 |