This repository has been archived by the owner on Dec 3, 2024. It is now read-only.
Merge pull request #255 from EspressoSystems/ab/api-ver #124
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: Nix | |
on: | |
push: | |
branches: | |
- main | |
- release-* | |
schedule: | |
- cron: '0 0 * * 1' | |
workflow_dispatch: | |
jobs: | |
nix: | |
runs-on: ubuntu-latest | |
timeout-minutes: 90 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v24 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Nix environment loads | |
run: nix develop -c echo Success | |
- name: Nix environment builds all targets | |
run: nix develop -c cargo build --all-targets --all-features --release --workspace | |
- name: Precommit hooks work | |
run: nix develop -c pre-commit run --all-files |