Skip to content

Commit

Permalink
ci: add golang cache
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
  • Loading branch information
sagikazarmark committed Jul 11, 2023
1 parent b0d1320 commit eb5a2f2
Showing 1 changed file with 47 additions and 7 deletions.
54 changes: 47 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,19 @@ jobs:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Magic Nix cache
- name: Set up magic Nix cache
uses: DeterminateSystems/magic-nix-cache-Action@v2

- name: Set up Go caches
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Prepare Nix shell
run: nix develop --impure .#ci

Expand All @@ -46,9 +56,19 @@ jobs:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Magic Nix cache
- name: Set up magic Nix cache
uses: DeterminateSystems/magic-nix-cache-Action@v2

- name: Set up Go caches
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Prepare Nix shell
run: nix develop --impure .#ci

Expand All @@ -69,9 +89,19 @@ jobs:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Magic Nix cache
- name: Set up magic Nix cache
uses: DeterminateSystems/magic-nix-cache-Action@v2

- name: Set up Go caches
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Prepare Nix shell
run: nix develop --impure .#ci

Expand All @@ -92,9 +122,19 @@ jobs:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Magic Nix cache
- name: Set up magic Nix cache
uses: DeterminateSystems/magic-nix-cache-Action@v2

- name: Set up Go caches
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Cache license information
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
with:
Expand Down Expand Up @@ -132,7 +172,7 @@ jobs:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Magic Nix cache
- name: Set up magic Nix cache
uses: DeterminateSystems/magic-nix-cache-Action@v2

- name: Check
Expand Down Expand Up @@ -183,7 +223,7 @@ jobs:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Magic Nix cache
- name: Set up magic Nix cache
uses: DeterminateSystems/magic-nix-cache-Action@v2

- name: Prepare Nix shell
Expand Down Expand Up @@ -227,7 +267,7 @@ jobs:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Magic Nix cache
- name: Set up magic Nix cache
uses: DeterminateSystems/magic-nix-cache-Action@v2

- name: Prepare Nix shell
Expand Down

0 comments on commit eb5a2f2

Please # to comment.