Skip to content

Commit

Permalink
Update to latest version of GitHub actions used
Browse files Browse the repository at this point in the history
  • Loading branch information
malob committed Mar 25, 2024
1 parent c28b406 commit 5500298
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/template/stack-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ runs:
fi
- name: Cache ${{ env.global_stack_dir }}
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.global_stack_dir }}
key: ${{ runner.os }}-stack-global-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }}${{ env.unique_suffix }}
Expand All @@ -41,7 +41,7 @@ runs:
${{ runner.os }}-stack-global-
- name: Cache ${{ inputs.stack-work-dir }}
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ inputs.stack-work-dir }}
key: ${{ runner.os }}-stack-work-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }}-${{ hashFiles('**/*.hs') }}${{ env.unique_suffix }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/nix-agda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Nix
uses: cachix/install-nix-action@v22
uses: cachix/install-nix-action@v26
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Cache Nix builds
uses: DeterminateSystems/magic-nix-cache-action@v2
uses: DeterminateSystems/magic-nix-cache-action@v4

- name: Build Agda
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Nix
uses: cachix/install-nix-action@v22
uses: cachix/install-nix-action@v26
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Cache Nix builds
uses: DeterminateSystems/magic-nix-cache-action@v2
uses: DeterminateSystems/magic-nix-cache-action@v4

- name: Build cornelis
run: |
Expand All @@ -41,10 +41,10 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Nix
uses: cachix/install-nix-action@v22
uses: cachix/install-nix-action@v26
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache Stack dirs (Linux/macOS)
if: runner.os != 'Windows'
Expand All @@ -41,7 +41,7 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache Stack dirs (Linux/macOS)
if: runner.os != 'Windows'
Expand All @@ -60,7 +60,7 @@ jobs:
# and also reduces how much we need to cache with the `cache` action.
- name: Install Nix
if: runner.os != 'Windows'
uses: cachix/install-nix-action@v22
uses: cachix/install-nix-action@v26
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
Expand All @@ -86,7 +86,7 @@ jobs:
# Tests can be flaky so we retry them a few times.
- name: Run tests
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 20
max_attempts: 3
Expand Down

0 comments on commit 5500298

Please sign in to comment.