Skip to content

Commit

Permalink
ci: replace nix-build-uncached with nix-fast-build
Browse files Browse the repository at this point in the history
FIXME: this doesn't work yet since the cachix action doesn't support
flakes yet. See cachix/cachix-action#47
  • Loading branch information
jakobkukla committed Mar 19, 2024
1 parent a84c687 commit 618b1b4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/cachix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ jobs:
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Install nix-build-uncached
run: nix-env -f '<nixpkgs>' -iA nix-build-uncached
- uses: cachix/cachix-action@v14
with:
name: jakobkukla
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix-build-uncached ./ci.nix
- run: nix run github:Mic92/nix-fast-build -- --skip-cached --no-nom --flake ".#nixosConfigurations.matebook.config.system.build.toplevel"
4 changes: 1 addition & 3 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ jobs:
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Install nix-build-uncached
run: nix-env -f '<nixpkgs>' -iA nix-build-uncached
- uses: cachix/cachix-action@v14
with:
name: jakobkukla
Expand All @@ -28,7 +26,7 @@ jobs:
id: build
run: |
nix flake update
nix-build-uncached ./ci.nix
nix run github:Mic92/nix-fast-build -- --skip-cached --no-nom --flake ".#nixosConfigurations.matebook.config.system.build.toplevel"
- name: Commit flake.lock on success
if: steps.build.outcome == 'success'
uses: stefanzweifel/git-auto-commit-action@v5
Expand Down
6 changes: 0 additions & 6 deletions ci.nix

This file was deleted.

0 comments on commit 618b1b4

Please sign in to comment.