Skip to content

Commit

Permalink
Test, do not merge
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalBrains1 committed Sep 15, 2023
1 parent c4f40fc commit 4b7a503
Showing 1 changed file with 56 additions and 55 deletions.
111 changes: 56 additions & 55 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,68 +10,69 @@ concurrency:
cancel-in-progress: true

jobs:
# Stack
stack:
name: Stack / GHC ${{ matrix.ghc }}
runs-on: ubuntu-latest
strategy:
matrix:
ghc: ["8.6.5", "8.8.4", "8.10.7", "9.0.2", "9.2.5", "9.4.4"]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
with:
show-progress: false

- name: Setup Haskell
uses: haskell/actions/setup@v2
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
enable-stack: true

- name: General Setup
run: cp .ci/stack-${{ matrix.ghc }}.yaml stack.yaml

- name: Restore cached dependencies
uses: actions/cache/restore@v3
id: cache
with:
path: ${{ steps.setup-haskell.outputs.stack-root }}/snapshots
key:
${{ runner.os }}-stack-${{ matrix.ghc }}-${{
hashFiles('prettyprinter-interp.cabal', 'stack.yaml') }}
restore-keys: ${{ runner.os }}-stack-${{ matrix.ghc }}-

- name: Install dependencies
run: stack build --only-dependencies

# Cache dependencies already at this point, so that we do not have to
# rebuild them should the subsequent steps fail.
- name: Save cached dependencies
uses: actions/cache/save@v3
with:
path: ${{ steps.setup-haskell.outputs.stack-root }}/snapshots
key: ${{ steps.cache.outputs.cache-primary-key }}

- name: Build
# Note: the --pedantic switch adds -Wall -Werror to the options passed
# to GHC. Options specified in stack.yaml (like -Wcompat) are still
# passed; it is cumulative. Future versions of Stack might add behavior
# to --pedantic.
run : stack build --pedantic

- name: Test
run : stack test
# # Stack
# stack:
# name: Stack / GHC ${{ matrix.ghc }}
# runs-on: ubuntu-latest
# strategy:
# matrix:
# ghc: ["8.6.5", "8.8.4", "8.10.7", "9.0.2", "9.2.5", "9.4.4"]
# fail-fast: false
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# show-progress: false
#
# - name: Setup Haskell
# uses: haskell/actions/setup@v2
# id: setup-haskell
# with:
# ghc-version: ${{ matrix.ghc }}
# enable-stack: true
#
# - name: General Setup
# run: cp .ci/stack-${{ matrix.ghc }}.yaml stack.yaml
#
# - name: Restore cached dependencies
# uses: actions/cache/restore@v3
# id: cache
# with:
# path: ${{ steps.setup-haskell.outputs.stack-root }}/snapshots
# key:
# ${{ runner.os }}-stack-${{ matrix.ghc }}-${{
# hashFiles('prettyprinter-interp.cabal', 'stack.yaml') }}
# restore-keys: ${{ runner.os }}-stack-${{ matrix.ghc }}-
#
# - name: Install dependencies
# run: stack build --only-dependencies
#
# # Cache dependencies already at this point, so that we do not have to
# # rebuild them should the subsequent steps fail.
# - name: Save cached dependencies
# uses: actions/cache/save@v3
# with:
# path: ${{ steps.setup-haskell.outputs.stack-root }}/snapshots
# key: ${{ steps.cache.outputs.cache-primary-key }}
#
# - name: Build
# # Note: the --pedantic switch adds -Wall -Werror to the options passed
# # to GHC. Options specified in stack.yaml (like -Wcompat) are still
# # passed; it is cumulative. Future versions of Stack might add behavior
# # to --pedantic.
# run : stack build --pedantic
#
# - name: Test
# run : stack test

# Cabal
cabal:
name: Cabal / GHC ${{ matrix.ghc }}
runs-on: ubuntu-latest
strategy:
matrix:
ghc: ["8.6.5", "8.8.4", "8.10.7", "9.0.2", "9.2.5", "9.4.4", "9.6.1"]
# ghc: ["8.6.5", "8.8.4", "8.10.7", "9.0.2", "9.2.5", "9.4.4", "9.6.1"]
ghc: ["9.0.2"]
fail-fast: false
steps:
- name: Checkout
Expand Down

0 comments on commit 4b7a503

Please sign in to comment.