Skip to content

Commit

Permalink
Simplify Stack CI (#2579) (#2580)
Browse files Browse the repository at this point in the history
For Stack CI, GHC doesn't need to be installed globally; only the
version installed by Stack is actually used.

Also bump to the latest LTS'es

Fix running of bash snippets/scripts in GitHub Stack CI

Co-authored-by: Peter Lebbing <[email protected]>
  • Loading branch information
mergify[bot] and DigitalBrains1 authored Sep 22, 2023
1 parent 7d99af8 commit f6d0fdb
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .ci/stack-8.10.7.yaml → .ci/stack-8.10.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-18.24
resolver: lts-18.28

packages:
- clash-prelude
Expand All @@ -13,4 +13,3 @@ extra-deps:
- doctest-parallel-0.2.1@sha256:c6c0d095dd6e0b8ce1bd9f6f5fc4e0cf5cf50b6895b557356ac41b8aa2947399,5631
- fakedata-1.0.2@sha256:37c93be9a81acbc9109e2c0b300a793d9c1f5ead1d34330d869d76568191f428,24593
- tasty-1.2.3@sha256:bba67074e5326d57e8f53fc1dabcb6841daa4dc51b053506eb7f40a6f49a0497,2517

File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions .ci/stack-9.0.2.yaml → .ci/stack-9.0.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: nightly-2022-02-19
resolver: lts-19.33

packages:
- clash-prelude
Expand All @@ -11,4 +11,3 @@ packages:

extra-deps:
- tasty-1.2.3@sha256:bba67074e5326d57e8f53fc1dabcb6841daa4dc51b053506eb7f40a6f49a0497,2517

17 changes: 13 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,29 @@ jobs:
fail-fast: false
matrix:
os: ["macOS", "windows"]
ghc: ["8.6.5", "8.8.4", "8.10.7", "9.0.2"]
ghc: ["8.6", "8.8", "8.10", "9.0"]
exclude:
# Some tests fail with a mysterious -11 error code.
- os: macOS
ghc: 8.10.7
ghc: 8.10

# Windows gets non-deterministically gets stuck in infinite loops
# or segfaults while running the testcase.
- os: windows
ghc: 8.8.4
ghc: 8.8

# GHC 9.0 fails to compile clash-cores due to a template haskell
# failure
- os: windows
ghc: 9.0

steps:
- uses: actions/checkout@v3
- uses: haskell/actions/setup@v2
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
enable-stack: true
stack-no-global: true

- name: Install IVerilog (macOS)
if: matrix.os == 'macOS'
Expand All @@ -50,8 +55,11 @@ jobs:
run: choco install --no-progress iverilog

- name: General Setup
shell: bash
run: |
cp .ci/stack-${{ matrix.ghc }}.yaml stack.yaml
# Print out stack.yaml for debugging purposes
cat stack.yaml
- name: Cache (Windows)
if: ${{ runner.os == 'Windows' }}
Expand Down Expand Up @@ -79,6 +87,7 @@ jobs:
# Retry Stack initialization, see:
# https://github.com/commercialhaskell/stack/issues/5770
- name: Initialize Stack
shell: bash
run: ./.ci/initialize_stack.sh

- name: Build with Stack
Expand Down

0 comments on commit f6d0fdb

Please sign in to comment.