Skip to content

Commit

Permalink
Add GHC 9.2, 9.4, and 9.6 to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnbastiaan committed Feb 16, 2024
1 parent 4d9eee4 commit 1c5b9a5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 18 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: 2022 Google LLC
#
#
# SPDX-License-Identifier: Apache-2.0

name: CI
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --target riscv32imc-unknown-none-elf --all-features

rust-build-programs:
name: Build Programs
runs-on: ubuntu-22.04
Expand All @@ -81,16 +81,16 @@ jobs:
with:
command: build
args: --release

- name: Build debug binaries
uses: actions-rs/cargo@v1
with:
command: build

- name: Archive Integration Test Binaries
run: |
cd clash-vexriscv-sim; sh bundle_test_binaries.sh
- name: Upload Integration Test Binaries
uses: actions/upload-artifact@v3
with:
Expand All @@ -103,8 +103,17 @@ jobs:
runs-on: ubuntu-22.04
needs: [rust-build-programs]

strategy:
fail-fast: false
matrix:
ghc:
- "9.0.2"
- "9.2.8"
- "9.4.8"
- "9.6.4"

container:
image: ghcr.io/clash-lang/clash-ci-9.0.2:2022-12-13
image: ghcr.io/clash-lang/clash-ci-${{ matrix.ghc }}:2024-02-15

steps:
- name: Checkout
Expand All @@ -120,7 +129,7 @@ jobs:
with:
path: |
~/.cabal/store
key: packages-cachebust-1-${{ hashFiles('cabal.project.freeze', 'cabal.project') }}
key: packages-cachebust-1-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze', 'cabal.project') }}
restore-keys: packages-cachebust-1-

- name: Install build deps
Expand Down
14 changes: 6 additions & 8 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ packages:

write-ghc-environment-files: always

with-compiler: ghc-9.0.2

tests: True


Expand All @@ -25,33 +23,33 @@ index-state: 2023-09-28T08:48:26Z
source-repository-package
type: git
location: https://github.com/clash-lang/clash-compiler.git
tag: 149885cef097ecfdb910797f73f0c1f54fc5b191
tag: b96bf079061b9a534b39c9ecb751195be05c657c
subdir: clash-prelude

source-repository-package
type: git
location: https://github.com/clash-lang/clash-compiler.git
tag: 149885cef097ecfdb910797f73f0c1f54fc5b191
tag: b96bf079061b9a534b39c9ecb751195be05c657c
subdir: clash-ghc

source-repository-package
type: git
location: https://github.com/clash-lang/clash-compiler.git
tag: 149885cef097ecfdb910797f73f0c1f54fc5b191
tag: b96bf079061b9a534b39c9ecb751195be05c657c
subdir: clash-lib

source-repository-package
type: git
location: https://github.com/clash-lang/clash-compiler.git
tag: 149885cef097ecfdb910797f73f0c1f54fc5b191
tag: b96bf079061b9a534b39c9ecb751195be05c657c
subdir: clash-cores

source-repository-package
type: git
location: https://github.com/clash-lang/clash-protocols.git
tag: f7ea04834d396669fe4ef404b03541601a68b136
tag: f25bc2a293af9f5f1e9068c70df61ce8e20bb543

source-repository-package
type: git
location: https://github.com/cchalmers/circuit-notation.git
tag: 618e37578e699df235f2e7150108b6401731919b
tag: f0c3c678326abf4907e875175632e826ad8fc866
6 changes: 3 additions & 3 deletions clash-vexriscv/clash-vexriscv.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ common common-options
-fno-worker-wrapper
-- clash-prelude will set suitable version bounds for the plugins
build-depends:
base >= 4.14 && < 4.16,
base >= 4.14 && < 4.19,
clash-prelude >= 1.6 && < 1.10,
containers >= 0.6 && < 0.7,
ghc-typelits-natnormalise,
Expand Down Expand Up @@ -134,9 +134,9 @@ test-suite unittests
base,
clash-vexriscv,
bytestring,
hedgehog >= 1.0 && < 1.1,
hedgehog >= 1.0 && < 1.5,
tasty >= 1.4 && < 1.5,
tasty-hedgehog >= 1.2 && < 1.3,
tasty-hedgehog >= 1.2 && < 1.5,
tasty-hunit,
tasty-th,
template-haskell,

0 comments on commit 1c5b9a5

Please sign in to comment.