From 05dba7a00325e540fec203009e97c2991278ccf6 Mon Sep 17 00:00:00 2001 From: Martijn Bastiaan Date: Mon, 19 Feb 2024 16:18:35 +0100 Subject: [PATCH] Update CI to newest docker image --- .github/workflows/ci.yml | 27 ++++++++++++++++++--------- cabal.project | 2 -- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 283ff8a..dbb86af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ # SPDX-FileCopyrightText: 2022 Google LLC -# +# # SPDX-License-Identifier: Apache-2.0 name: CI @@ -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 @@ -77,7 +77,7 @@ jobs: target: riscv32imc-unknown-none-elf components: clippy, rustfmt - - name: Cachign + - name: Caching uses: Swatinem/rust-cache@v2 - name: Build release binaries @@ -85,16 +85,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: @@ -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 @@ -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: | diff --git a/cabal.project b/cabal.project index 33d7755..e250f5e 100644 --- a/cabal.project +++ b/cabal.project @@ -8,8 +8,6 @@ packages: write-ghc-environment-files: always -with-compiler: ghc-9.0.2 - tests: True