Skip to content

Commit

Permalink
ci: use cachix
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkolenz committed Feb 5, 2025
1 parent de250a6 commit 05cfc93
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v16
- uses: DeterminateSystems/magic-nix-cache-action@v9
with:
extra-conf: |
accept-flake-config = true
log-lines = 1000
- uses: cachix/cachix-action@v15
with:
name: recap
authToken: ${{ secrets.CACHIX_TOKEN }}
- run: nix fmt
- uses: autofix-ci/action@v1.3.1
with:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v16
- uses: DeterminateSystems/magic-nix-cache-action@v9
with:
extra-conf: |
accept-flake-config = true
log-lines = 1000
- uses: cachix/cachix-action@v15
with:
name: recap
authToken: ${{ secrets.CACHIX_TOKEN }}
- run: nix flake check --show-trace
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ jobs:
url: https://github.com/wi2trier/cbrkit/releases/tag/${{ steps.semanticrelease.outputs.git-tag }}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v16
- uses: DeterminateSystems/magic-nix-cache-action@v9
- uses: cihelper/action-semanticrelease-npm@v1
id: semanticrelease
deploy-docker:
Expand All @@ -39,7 +37,14 @@ jobs:
with:
ref: ${{ needs.release.outputs.git-head }}
- uses: DeterminateSystems/nix-installer-action@v16
- uses: DeterminateSystems/magic-nix-cache-action@v9
with:
extra-conf: |
accept-flake-config = true
log-lines = 1000
- uses: cachix/cachix-action@v15
with:
name: recap
authToken: ${{ secrets.CACHIX_TOKEN }}
- run: nix run .#docker-manifest --impure
env:
VERSION: ${{ needs.release.outputs.version }}
Expand Down
10 changes: 10 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
inputs.nixpkgs.follows = "nixpkgs";
};
};
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
"https://recap.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"recap.cachix.org-1:KElwRDtaJbbQxmmS2SyxWHqs9bdJbaZHzb2iINTfQws="
];
};
outputs =
inputs@{
flake-parts,
Expand Down

0 comments on commit 05cfc93

Please # to comment.