diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml index eaff63bef72..5f1df53389d 100644 --- a/.github/workflows/dependencies.yml +++ b/.github/workflows/dependencies.yml @@ -1,3 +1,4 @@ +--- name: dependencies on: @@ -16,6 +17,12 @@ on: # Run every day at 1800 UTC. - cron: "0 18 * * *" +env: + # Pin the nightly toolchain to prevent breakage. + # This should be occasionally updated. + RUST_NIGHTLY_TOOLCHAIN: nightly-2024-01-01 + ROOT_PATH: bindings/rust + jobs: audit: runs-on: ubuntu-latest @@ -24,6 +31,15 @@ jobs: checks: write # Create/update a check run. steps: - uses: actions/checkout@v4 + - name: Install Rust toolchain + id: toolchain + run: | + rustup toolchain install stable + rustup override set stable + - uses: camshaft/rust-cache@v1 + - name: Generate + run: ${{env.ROOT_PATH}}/generate.sh - uses: rustsec/audit-check@v2.0.0 with: token: ${{ secrets.GITHUB_TOKEN }} + working-directory: ${{env.ROOT_PATH}}