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 05dba7a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 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
2 changes: 0 additions & 2 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

0 comments on commit 05dba7a

Please sign in to comment.