diff --git a/.github/actions/devenv/action.yml b/.github/actions/devenv/action.yml index 7fdb369..a5b94e7 100644 --- a/.github/actions/devenv/action.yml +++ b/.github/actions/devenv/action.yml @@ -55,13 +55,6 @@ runs: key: ${{ runner.os }}-cargo-bin-${{ hashFiles('rust-toolchain.toml') }} restore-keys: | ${{ runner.os }}-cargo-bin- - - name: cache local binaries - uses: actions/cache@v4 - with: - path: ./.local-cache - key: ${{ runner.os }}-local-cache-${{ hashFiles('setup/cache-versions.json') }} - restore-keys: | - ${{ runner.os }}-local-cache- - name: get pnpm store directory id: pnpm-cache run: echo "store=$(pnpm store path)" >> $GITHUB_OUTPUT diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a425e8..022afde 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,6 +38,9 @@ jobs: uses: actions/checkout@v4 - name: setup uses: ./.github/actions/devenv + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + nix-cache: /tmp/nixcache - name: test run: test:all shell: bash @@ -49,6 +52,9 @@ jobs: uses: actions/checkout@v4 - name: setup uses: ./.github/actions/devenv + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + nix-cache: /tmp/nixcache - name: build run: cargo build shell: bash @@ -57,10 +63,13 @@ jobs: runs-on: ubuntu-latest needs: [test] steps: - - name: setup Rust - uses: dtolnay/rust-toolchain@stable - name: checkout uses: actions/checkout@v4 + - name: setup + uses: ./.github/actions/devenv + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + nix-cache: /tmp/nixcache - name: release uses: MarcoIeni/release-plz-action@v0.5 env: