Skip to content

Commit

Permalink
Merge pull request DeterminateSystems#257 from DeterminateSystems/DS-970
Browse files Browse the repository at this point in the history
DS-970: Add Magic Nix Cache and other workflow changes
  • Loading branch information
lheckemann authored Jul 24, 2023
2 parents 2e19c10 + 9755d78 commit aec5418
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/flake-checker-action@v4
- uses: DeterminateSystems/flake-checker-action@main
with:
fail-mode: true

Expand All @@ -19,6 +19,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check rustfmt
run: nix develop --command ci-check-rustfmt

Expand All @@ -27,6 +28,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check Spelling
run: nix develop --command ci-check-spelling

Expand All @@ -35,6 +37,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check nixpkgs-fmt formatting
run: nix develop --command ci-check-nixpkgs-fmt

Expand All @@ -43,6 +46,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check registry.json formatting
run: nix develop --command ci-check-registry-format

Expand All @@ -51,6 +55,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check EditorConfig conformance
run: nix develop --command ci-check-editorconfig

Expand All @@ -59,6 +64,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Run tests
run: nix develop --command ci-test-rust
# run: nix develop -c -- cargo test -- --include-ignored
Expand All @@ -68,6 +74,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
# Runs clippy as part of the preBuild.
- name: Build riff
run: nix build .#packages.x86_64-linux.riff -L
Expand All @@ -85,6 +92,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
# Runs clippy as part of the preBuild.
- name: Build riff
run: nix build .#packages.x86_64-darwin.riff -L
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ on:

jobs:
lockfile:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
- name: Checkout
uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Enable magic Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check flake
uses: DeterminateSystems/flake-checker-action@main
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v16
uses: DeterminateSystems/update-flake-lock@main

0 comments on commit aec5418

Please sign in to comment.