Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify Stack CI (copy #2579) #2580

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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