Skip to content

Commit

Permalink
Merge #3986
Browse files Browse the repository at this point in the history
3986: Updated versions of github actions r=coot a=coot

- `actions/checkout@v3`
- `actions/cache@v3`
- using `ubuntu-latest` instead of the `ubuntu-20.04`
- introduced dependabot for GitHub Actions.


Co-authored-by: Marcin Szamotulski <coot@coot.me>
  • Loading branch information
iohk-bors[bot] and coot committed Sep 21, 2022
2 parents 76a49fe + d028cfa commit 806e4db
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Set update schedule for GitHub Actions

version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
ghc: ["8.10.7"]
os: [ubuntu-20.04, windows-latest]
os: [ubuntu-latest, windows-latest]

env:
# current ref from: 27.02.2022
Expand All @@ -41,7 +41,7 @@ jobs:
- name: "LINUX: Setup haskell"
if: runner.os != 'Windows'
uses: haskell/actions/setup@v1
uses: haskell/actions/setup@v2
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
$CI_SECP_INSTALL_CMD make install
)
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Update Hackage index
run: cabal update
Expand Down Expand Up @@ -146,14 +146,14 @@ jobs:
cat dist-newstyle/cache/plan.json | jq -r '."install-plan"[].id' | sort | uniq > dependencies.txt
echo "::set-output name=weeknum::$(/bin/date -u "+%W")"
- uses: actions/cache@v2
- uses: actions/cache@v3
name: "Cache `cabal store`"
with:
path: ${{ runner.os == 'Windows' && steps.win-setup-haskell.outputs.cabal-store || steps.setup-haskell.outputs.cabal-store }}
key: cache-dependencies-${{ env.CACHE_VERSION }}-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('dependencies.txt') }}
restore-keys: cache-dependencies-${{ env.CACHE_VERSION }}-${{ runner.os }}-${{ matrix.ghc }}

- uses: actions/cache@v2
- uses: actions/cache@v3
name: "Cache `dist-newstyle`"
with:
path: |
Expand Down

0 comments on commit 806e4db

Please sign in to comment.