Prepare deps generator for external use (#49) #282
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: Build Nix package on Ubuntu | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- id: bazel-rev | |
run: echo "::set-output name=out::$(jq -r '.nodes.bazel.locked.rev' flake.lock)" | |
- name: Run specs | |
run: > | |
nix develop --experimental-features "nix-command flakes" | |
--command bash -c ./scripts/test.sh &> log.txt; cat log.txt | |
- name: Check for errors | |
run: grep -F "[31m" log.txt && exit 1 |