ci: use our cacher action (#532)

* ci: use our cacher action

* ci: drop unnecessary `with: github-token`

Co-authored-by: Graham Christensen <graham@grahamc.com>

* ci: pin cacher action to v1

---------

Co-authored-by: Graham Christensen <graham@grahamc.com>
This commit is contained in:
Cole Helbling 2023-06-26 14:41:20 -07:00 committed by GitHub
parent 4bfd6c2547
commit 9baee72ef7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,22 +18,15 @@ jobs:
check-outdated: false # PRs shouldn't fail because main's nixpkgs is out of date check-outdated: false # PRs shouldn't fail because main's nixpkgs is out of date
- name: Install Nix - name: Install Nix
uses: DeterminateSystems/nix-installer-action@main uses: DeterminateSystems/nix-installer-action@main
with: - uses: DeterminateSystems/magic-nix-cache-action@v1
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache lint store (x86_64-linux)
id: lint-store-x86_64-linux
uses: actions/cache@v3
with:
path: ~/.ci-store
key: lint-store-x86_64-linux-${{ hashFiles('**/Cargo.lock', '**/flake.lock') }}-v1
- name: Check rustfmt - name: Check rustfmt
run: nix develop --store ~/.ci-store --command check-rustfmt run: nix develop --command check-rustfmt
- name: Check Spelling - name: Check Spelling
run: nix develop --store ~/.ci-store --command check-spelling run: nix develop --command check-spelling
- name: Check nixpkgs-fmt formatting - name: Check nixpkgs-fmt formatting
run: nix develop --store ~/.ci-store --command check-nixpkgs-fmt run: nix develop --command check-nixpkgs-fmt
- name: Check EditorConfig conformance - name: Check EditorConfig conformance
run: nix develop --store ~/.ci-store --command check-editorconfig run: nix develop --command check-editorconfig
- name: Download Buildkite Artifacts - name: Download Buildkite Artifacts
uses: EnricoMi/download-buildkite-artifact-action@v1.14 uses: EnricoMi/download-buildkite-artifact-action@v1.14
with: with: