Skip to content

Commit

Permalink
Bump actions
Browse files Browse the repository at this point in the history
The updated Haskell publish setup action should
hopefully resolve GHC being installed in x86_64
despite running in an aarch64 environment.
  • Loading branch information
samhh committed Apr 25, 2024
1 parent 1381828 commit 0a202fe
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/actions/cabal-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ runs:
using: composite
steps:
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.local/state/cabal/store/
key: cabal-${{ runner.os }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: |
cabal-${{ runner.os }}
- name: Cache incremental build
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ./dist-newstyle/
key: dist-${{ runner.os }}-${{ github.sha }}
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
name: Validate Nix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
- run: nix flake check
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
- run: nix develop -c cabal update
- run: nix develop -c cabal freeze
- uses: ./.github/actions/cabal-cache
Expand All @@ -28,8 +28,8 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
- run: nix develop -c cabal update
- run: nix develop -c cabal freeze
- uses: ./.github/actions/cabal-cache
Expand All @@ -38,15 +38,15 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
- run: nix develop -c hlint lib cli test
fmt:
name: Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
# stylish-haskell doesn't have a check/dry run option, so we'll run it
# against files in place and test if there are any diffs with Git.
- run: |
Expand All @@ -59,9 +59,9 @@ jobs:
run:
working-directory: .golden/ts/
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- uses: actions/cache@v3
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
- uses: actions/cache@v4
with:
path: ~/.cache/yarn/v6
key: yarn-${{ runner.os }}-${{ hashFiles('.golden/ts/yarn.lock') }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# Using Nix causes dynamic linking issues on macOS. It's easier to
# workaround on Linux with patchelf at least. (Yes, building statically
# would be substantially better.)
- uses: haskell/actions/setup@v2
- uses: haskell-actions/setup@v2
with:
ghc-version: 9.4.6
- run: cabal freeze
Expand All @@ -38,7 +38,7 @@ jobs:
cabal build
mv $(find ./dist-newstyle/ -name intlc -type f) dist-newstyle/intlc-${{ github.ref_name }}-${{ matrix.os.name }}
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
dist-newstyle/intlc-${{ github.ref_name }}-${{ matrix.os.name }}

0 comments on commit 0a202fe

Please sign in to comment.