Add flake packages #69
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
on: | |
push: | |
branches: [master] | |
pull_request: | |
types: [synchronize, opened, reopened, ready_for_review] | |
jobs: | |
ci: | |
strategy: | |
matrix: | |
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners | |
os: [ubuntu-latest, macos-12, macos-13, macos-14] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: "read" | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: "DeterminateSystems/nix-installer-action@main" | |
- uses: "DeterminateSystems/magic-nix-cache-action@v6" | |
- name: Context | |
run: | | |
nix --version | |
- name: Lint | |
run: make lint | |
- name: Flake Check | |
run: make flake-check | |
- name: Test Default Shell | |
run: | | |
set -x | |
# test `nix develop` | |
nix develop .# --command -- bash -c "solc-0.8.26 --version" | |
# test `nix shell` | |
nix shell .#solc-0.8.19 | |
nix shell .#solcPackages.solc-0.8.26 | |
# test solc.nix as input to other flakes | |
# Note: overriding flake input is needed as a workaround to local sub flake with overlapping paths. | |
nix develop ./test/.# --override-input solc $PWD --command -- bash -c "solc --version" | |
nix develop ./test/.# --override-input solc $PWD --command -- bash -c "solc-0.8.26 --version" | |
ci-check-success: | |
needs: [ci] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if all workflows succeeded | |
run: | | |
echo "All reusable workflows succeeded." |