Skip to content

Upgrade to ghc 9.12 #456

Upgrade to ghc 9.12

Upgrade to ghc 9.12 #456

Workflow file for this run

name: CI
on: ['pull_request', 'push']
jobs:
build:
name: Build on ${{ matrix.os }} with GHC ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
ghc: ["9.8", "9.10", "9.12"]
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
id: setup
with:
ghc-version: ${{ matrix.ghc }}
- uses: actions/cache@v3
with:
path: ${{ steps.setup.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-v2-${{ hashFiles('*.cabal') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-v2-
- run: make build
- run: make test
- if: startsWith(github.ref, 'refs/tags') && startsWith(matrix.ghc, '9.8')
run: make artifact
- uses: actions/upload-artifact@v4
if: startsWith(github.ref, 'refs/tags') && startsWith(matrix.ghc, '9.8')
with:
path: artifacts/*
name: artifacts-${{ runner.os }}
release:
name: Release
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/download-artifact@v4
with:
pattern: artifacts-*
- run: ls -R
- run: 'sha256sum artifacts-*/*'
- uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: 'artifacts-*/stylish-haskell-*'