fixup! ci: colored test output #2843
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" | |
on: | |
pull_request: | |
push: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-latest ] | |
# we need this to map platform names as used by github to | |
# the attribute names defined in release.nix | |
include: | |
- os: ubuntu-latest | |
os_attr: linux | |
- os: macos-latest | |
os_attr: darwin | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
# v12 | |
- uses: cachix/install-nix-action@v20 | |
with: | |
# https://discourse.nixos.org/t/understanding-binutils-darwin-wrapper-nix-support-bad-substitution/11475/2 | |
nix_path: nixpkgs=channel:nixos-unstable | |
# v8 | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: dapp | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
- name: run dapp tests | |
run: FORCE_COLOR=true nix-shell --pure src/dapp-tests/shell.nix --command 'make ci --directory src/dapp-tests' | |
- run: nix-collect-garbage | |
- run: nix-build release.nix -A dapphub.${{ matrix.os_attr }}.stable |