Skip to content

dapp/seth: fix nix-run example #2848

dapp/seth: fix nix-run example

dapp/seth: fix nix-run example #2848

Workflow file for this run

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