fix solc-static on macos #2857
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 | |
# v22 | |
- uses: cachix/install-nix-action@v22 | |
with: | |
# https://discourse.nixos.org/t/understanding-binutils-darwin-wrapper-nix-support-bad-substitution/11475/2 | |
nix_path: nixpkgs=channel:nixos-unstable | |
# v12 | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: dapp | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
- name: run dapp tests | |
run: nix-shell --pure src/dapp-tests/shell.nix --command 'make ci --directory src/dapp-tests' | |
- name: run hevm symbolic tests | |
run: nix-build -j 1 -A hevm-tests | |
- run: nix-collect-garbage | |
- run: nix-build release.nix -A dapphub.${{ matrix.os_attr }}.stable |