Skip to content

Add rust cache to static build #1500

Add rust cache to static build

Add rust cache to static build #1500

Workflow file for this run

name: Build with Nix Workflow
on:
push:
branches:
- 'nix*'
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- uses: styfle/[email protected]
name: Cancel Outdated Builds
with:
all_but_latest: true
access_token: ${{ github.token }}
- name: Install Nix
uses: cachix/install-nix-action@v23
- name: Checkout Repository
uses: actions/checkout@v4
- name: Cache cargo
uses: Swatinem/rust-cache@v2
cache-directories: "target_dirs/nix_rustc"

Check failure on line 30 in .github/workflows/build_nix.yml

View workflow run for this annotation

GitHub Actions / Build with Nix Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/build_nix.yml (Line: 30, Col: 9): Unexpected value 'cache-directories' .github/workflows/build_nix.yml (Line: 31, Col: 9): Unexpected value 'key'
key: "${{ matrix.arch }}"
# sanity check that repository builds with nix
- name: Build
run: |
nix develop -c just async_std build