Merge pull request #1746 from cryspen/rengine-monadic-phase #5445
This file contains hidden or 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: Install & test | |
| on: | |
| pull_request: | |
| merge_group: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| jobs: | |
| tests: | |
| name: nix-action | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DeterminateSystems/nix-installer-action@main | |
| - uses: cachix/cachix-action@v15 | |
| with: | |
| name: hax | |
| skipPush: true | |
| extraPullNames: fstar-nix-versions, z3-nix-versions | |
| - name: Build | |
| run: nix build -L | |
| - name: Install the toolchain | |
| run: | | |
| nix profile install nixpkgs#yq | |
| nix profile install .#rustc | |
| nix profile install . | |
| - name: Ensure readme coherency | |
| run: | | |
| nix build .#check-readme-coherency -L | |
| - name: Test the toolchain | |
| run: | | |
| nix build .#check-toolchain -L | |
| - name: Test the examples | |
| run: | | |
| cd examples | |
| nix develop ..#ci-examples --command make clean | |
| nix develop ..#ci-examples --command make | |
| - name: Try to extract Rust By Examples | |
| run: | | |
| nix build .#rust-by-example-hax-extraction -L | |
| - name: Checkout specifications | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: 'hacspec/specs' | |
| path: specs | |
| - name: Push to Cachix | |
| if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'merge_group' }} | |
| env: | |
| CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| run: | | |
| nix-store -qR --include-outputs $(nix build .# --json | jq -r '.[].outputs | to_entries[].value') \ | |
| | cachix push hax |