fix tests #29
Workflow file for this run
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: Run multicorn2 Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
run_tests: | |
name: run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v26 | |
# Binary cache is maintained in update_cache.yml; see comments there for details. | |
- uses: zombiezen/[email protected] | |
with: | |
substituters: s3://mfenniak-multicorn2-nix-cache?region=us-west-2 | |
trusted_public_keys: mfenniak-multicorn2-nix-cache:mldk0J26tzkCmqihQKOiyuAm1HAs2CHdIZC0ESr56ZA= | |
# Seems to be a bug in setup-nix-cache-action where, even though we're only providing a trusted_public_keys input | |
# and no secret_keys input, it still tries to create a post-build-hook that will push packages to the cache. This | |
# is a hacky workaround to remove that hook -- we find the post-build-hook created by setup-nix-cache-action and | |
# truncate it to 0 bytes so it does nothing. | |
- run: sudo find /home/runner/work/_temp -type d -name 'setup-nix-cache-action-*' -exec sh -c 'truncate -s 0 "$1"/post-build-hook' _ {} \; | |
# Run all the tests. | |
- run: nix build .#allTestSuites -L |