Add rust cache to static build #1502
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
name: Build with Nix Workflow | |
on: | |
push: | |
branches: | |
- 'develop' | |
- 'main' | |
- 'nix*' | |
schedule: | |
- cron: '0 0 * * 1' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 120 | |
steps: | |
- name: Install Nix | |
uses: cachix/install-nix-action@v23 | |
- name: Nix Caching | |
uses: cachix/cachix-action@v12 | |
with: | |
name: espresso-systems-private | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
skipPush: ${{ github.actor == 'dependabot[bot]' }} | |
- name: Enable Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: ". -> target_dirs/nix_rustc" | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
# sanity check that repository builds with nix | |
- name: Build | |
run: | | |
nix develop -c just async_std build |