Bump version to v0.15.0.1 #476
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.6.6", "9.8", "9.10"] #using 9.6.6 as ghc-lib-parser-9.10.1.20250103 is not compatible with ghc-9.6.7. Re-enable when sorted | |
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-*' |