Skip to content

Commit

Permalink
Update CI to newest docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnbastiaan committed Feb 26, 2024
1 parent b8bae5c commit 3e1d729
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 22 deletions.
27 changes: 18 additions & 9 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 @@ -77,24 +77,24 @@ jobs:
target: riscv32imc-unknown-none-elf
components: clippy, rustfmt

- name: Cachign
- name: Caching
uses: Swatinem/rust-cache@v2

- name: Build release binaries
uses: actions-rs/cargo@v1
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 @@ -107,8 +107,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 }}-20240221

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

- name: Install build deps
run: |
Expand Down
6 changes: 2 additions & 4 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 Down Expand Up @@ -49,9 +47,9 @@ source-repository-package
source-repository-package
type: git
location: https://github.com/clash-lang/clash-protocols.git
tag: f7ea04834d396669fe4ef404b03541601a68b136
tag: eb76cd1be746ae91beff60c0f16d8c1dd888662c

source-repository-package
type: git
location: https://github.com/cchalmers/circuit-notation.git
tag: 618e37578e699df235f2e7150108b6401731919b
tag: 19b386c4aa3ff690758ae089c7754303f3500cc9
8 changes: 4 additions & 4 deletions clash-vexriscv-sim/clash-vexriscv-sim.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ 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,
containers >= 0.6 && < 0.8,
ghc-typelits-natnormalise,
ghc-typelits-extra,
ghc-typelits-knownnat,
Expand All @@ -83,7 +83,7 @@ library
clash-protocols,
clash-vexriscv,
elf >= 0.31 && < 0.32,
bytestring >= 0.10 && < 0.11,
bytestring >= 0.10 && < 0.13,

executable clash
import: common-options
Expand Down Expand Up @@ -132,6 +132,6 @@ test-suite unittests
containers,
directory,
temporary >=1.1 && <1.4,
tasty >= 1.2 && < 1.5,
tasty >= 1.2 && < 1.6,
tasty-hunit >= 0.10 && < 0.11,
filepath
10 changes: 5 additions & 5 deletions clash-vexriscv/clash-vexriscv.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ common common-options
build-depends:
base >= 4.14 && < 4.16,
clash-prelude >= 1.6 && < 1.10,
containers >= 0.6 && < 0.7,
containers >= 0.6 && < 0.8,
ghc-typelits-natnormalise,
ghc-typelits-extra,
ghc-typelits-knownnat,
Expand All @@ -109,7 +109,7 @@ library
base,
clash-prelude,
clash-protocols,
bytestring >= 0.10 && < 0.11,
bytestring >= 0.10 && < 0.13,
process >= 1.6 && < 1.8,
directory >= 1.3 && < 1.4,
filepath,
Expand All @@ -134,9 +134,9 @@ test-suite unittests
base,
clash-vexriscv,
bytestring,
hedgehog >= 1.0 && < 1.1,
tasty >= 1.4 && < 1.5,
tasty-hedgehog >= 1.2 && < 1.3,
hedgehog >= 1.0 && < 1.5,
tasty >= 1.4 && < 1.6,
tasty-hedgehog >= 1.2 && < 1.5,
tasty-hunit,
tasty-th,
template-haskell,

0 comments on commit 3e1d729

Please sign in to comment.