Skip to content

Commit

Permalink
feat(ci): use magic-nix-cache-action to speed-up build
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyroussel committed Oct 28, 2023
1 parent 992dab6 commit b7952d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/home-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ jobs:
NIXPKGS_ALLOW_UNFREE: 1
steps:
- uses: actions/checkout@v4

- uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:${{ matrix.pairs.channel }}:/home/runner/.nix-defexpr/channels

- uses: DeterminateSystems/magic-nix-cache-action@v2

- name: Add Home Manager
run: nix-channel --add https://github.com/nix-community/home-manager/archive/${{ matrix.pairs.branch }}.tar.gz home-manager

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nix-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ jobs:
- uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:${{ matrix.channel }}
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix-shell .github/shadow-packages.nix
2 changes: 2 additions & 0 deletions .github/workflows/update-upstream-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
with:
nix_path: nixpkgs=channel:nixos-23.05

- uses: DeterminateSystems/magic-nix-cache-action@v2

- name: Configure Git author and create branch
run: |
git config --global user.name "github-actions[bot]"
Expand Down

0 comments on commit b7952d6

Please sign in to comment.