Skip to content

Commit

Permalink
Update CI configuration to use latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
christiaanb committed Jan 4, 2025
1 parent 72f579e commit 2df9252
Showing 1 changed file with 28 additions and 20 deletions.
48 changes: 28 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Haskell
uses: haskell/actions/setup@v2
uses: haskell-actions/setup@v2
id: setup-haskell
with:
enable-stack: true
Expand All @@ -39,16 +39,16 @@ jobs:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Haskell
uses: haskell/actions/setup@v2
uses: haskell-actions/setup@v2
id: setup-haskell
with:
enable-stack: true

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.setup-haskell.outputs.stack-root }}/snapshots
key:
Expand All @@ -66,29 +66,37 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
ghc: ["8.6.5", "8.8.4", "8.10.7", "9.0.2"]
ghc: ["8.6.5", "8.8.4", "8.10.7", "9.0.2", "9.2.8", "9.4.8", "9.6.6", "9.8.4", "9.10.1"]

# Windows missing; no cross-platform CI scripts available yet.
os: ["ubuntu-latest", "macos-latest"]

# Unsupported by Clash:
exclude:
# Unsupported by Clash:
- os: macos-latest
ghc: 8.10.7
# Unsupported on ARM64
- os: macos-latest
ghc: 8.6.5
- os: macos-latest
ghc: 8.8.4
- os: macos-latest
ghc: 9.0.2

fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Haskell
uses: haskell/actions/setup@v2
uses: haskell-actions/setup@v2
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
enable-stack: true

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key:
Expand All @@ -107,11 +115,11 @@ jobs:
strategy:
matrix:
tools:
- {ghc: "9.4.7", cabal: "3.8.1.0", hls: "2.4.0.0", ghcup: "0.1.20.0"}
- {ghc: "9.4.8", cabal: "3.12.1.0", hls: "2.9.0.1", ghcup: "0.1.40.0"}
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Haskell
run: |
Expand All @@ -129,7 +137,7 @@ jobs:
echo "${HOME}/.ghcup/bin/" >> $GITHUB_PATH
ls "${HOME}/.ghcup/bin/"
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cabal/store
key: ${{ runner.os }}-cachebust1-hls-${{ matrix.tools.ghc }}-${{ matrix.tools.cabal }}-${{ matrix.tools.hls }}-${{ matrix.tools.ghcup }}-${{ hashFiles('**/*.cabal', '**/stack.yaml') }}
Expand All @@ -146,13 +154,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v23
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-23.05

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

- name: Enable cachix
run: |
Expand Down Expand Up @@ -192,7 +200,7 @@ jobs:

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

- name: Publish
run: |
Expand All @@ -213,13 +221,13 @@ jobs:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v23
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-23.05

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

- name: Enable cachix
run: |
Expand Down

0 comments on commit 2df9252

Please sign in to comment.