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

support ghc 9.2 #260

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
73 changes: 1 addition & 72 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,77 +14,6 @@ on:
- cron: '0 0 1 * *'

jobs:
stack:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
# Check that the build passes with the recommended snapshot.
- name: stable
stack_yaml: "stack.yaml"
os: ubuntu-latest

# Check that the lower bounds are still correct by building with the
# lowest-supported version of all our dependencies.
- name: oldest
stack_yaml: "oldest-supported-lts.yaml"
os: ubuntu-latest

steps:
- uses: actions/checkout@v2

# see https://github.com/actions/cache/issues/403
- name: Work around actions/cache bug
if: matrix.os == 'macos-latest'
run: |
brew update && brew install gnu-tar
echo PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" >> $GITHUB_ENV

- uses: actions/cache@v2
name: Cache Stack Artifacts
with:
path: |
~/.stack
~/.local/bin
.stack-work
key: ${{ runner.os }}-stack-${{ hashFiles(matrix.stack_yaml) }}-6

- uses: haskell/actions/setup@v1
id: setup-haskell-stack
name: Setup Stack
with:
enable-stack: true
stack-setup-ghc: true
stack-no-global: true

# For some reason, installing happy from lts-9.0 fails unless some other
# version of happy is already in the PATH. So let's install a version of
# happy from an lts which does not have this problem.
- name: Install happy
if: matrix.stack_yaml == 'oldest-supported-lts.yaml'
run: |
stack --stack-yaml=stack.yaml install happy

- name: Build with happy hack
if: matrix.stack_yaml == 'oldest-supported-lts.yaml'
run: |
PATH="$HOME/.local/bin:$PATH" stack --stack-yaml=${{ matrix.stack_yaml }} install --test --bench --no-run-tests --no-run-benchmarks

- name: Build
if: matrix.stack_yaml == 'stack.yaml'
run: |
stack --stack-yaml=${{ matrix.stack_yaml }} install --test --bench --no-run-tests --no-run-benchmarks

- name: Test
run: |
stack --stack-yaml=${{ matrix.stack_yaml }} test

- name: Run installed exe
run: |
stack run '2+2'
~/.local/bin/hawk '2+2'

cabal:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
Expand All @@ -95,7 +24,7 @@ jobs:
# version of everything. We use cabal because it uses the latest
# versions of our dependencies allowed by our upper bounds.
- name: newest
ghc: latest
ghc: 9.2
os: ubuntu-latest

steps:
Expand Down