-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
163 additions
and
318 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
updates: | ||
- directory: / | ||
package-ecosystem: github-actions | ||
schedule: | ||
interval: weekly | ||
version: 2 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
jobs: | ||
build: | ||
name: GHC ${{ matrix.ghc }} on ${{ matrix.platform }} ${{ matrix.version }} | ||
runs-on: ${{ matrix.platform }}-${{ matrix.version }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: mkdir artifact | ||
- id: haskell | ||
uses: haskell-actions/setup@v2 | ||
with: | ||
ghc-version: ${{ matrix.ghc }} | ||
- run: ghc-pkg list | ||
- run: cabal sdist --output-dir artifact | ||
- run: cabal configure --enable-tests --flags=pedantic --jobs --test-show-details=direct | ||
- run: cat cabal.project.local | ||
- run: cp cabal.project.local artifact | ||
- run: cabal freeze | ||
- run: cat cabal.project.freeze | ||
- run: cp cabal.project.freeze artifact | ||
- run: cabal outdated --v2-freeze-file | ||
- uses: actions/cache@v4 | ||
with: | ||
key: ${{ matrix.platform }}-${{ matrix.version }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }} | ||
path: ${{ steps.haskell.outputs.cabal-store }} | ||
restore-keys: ${{ matrix.platform }}-${{ matrix.version }}-${{ matrix.ghc }}- | ||
- run: cabal build --only-download | ||
- run: cabal build --only-dependencies | ||
- run: cabal build | ||
- run: tar --create --file artifact.tar --verbose artifact | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: imp-${{ github.sha }}-${{ matrix.platform }}-${{ matrix.version }}-${{ matrix.ghc }} | ||
path: artifact.tar | ||
- run: cabal run -- imp-test-suite --randomize --strict | ||
strategy: | ||
matrix: | ||
include: | ||
- ghc: 9.10 | ||
platform: macos | ||
version: 13 | ||
- ghc: 9.10 | ||
platform: macos | ||
version: 14 | ||
- ghc: 9.6 | ||
platform: ubuntu | ||
version: 22.04 | ||
- ghc: 9.8 | ||
platform: ubuntu | ||
version: 22.04 | ||
- ghc: 9.10 | ||
platform: ubuntu | ||
version: 22.04 | ||
- ghc: 9.10 | ||
platform: windows | ||
version: 2022 | ||
cabal: | ||
name: Cabal | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: cabal check | ||
gild: | ||
name: Gild | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: tfausak/cabal-gild-setup-action@v2 | ||
- run: cabal-gild --input imp.cabal --mode check | ||
hlint: | ||
name: HLint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: haskell-actions/hlint-setup@v2 | ||
- uses: haskell-actions/hlint-run@v2 | ||
with: | ||
fail-on: status | ||
ormolu: | ||
name: Ormolu | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: haskell-actions/run-ormolu@v15 | ||
release: | ||
if: ${{ github.event_name == 'release' }} | ||
name: Release | ||
needs: build | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: imp-${{ github.sha }}-ubuntu-22.04-9.10 | ||
- run: tar --extract --file artifact.tar --verbose | ||
- uses: softprops/action-gh-release@v1 | ||
with: | ||
files: artifact/imp-${{ github.event.release.tag_name }}.tar.gz | ||
- run: cabal upload --publish --username '${{ secrets.HACKAGE_USERNAME }}' --password '${{ secrets.HACKAGE_PASSWORD }}' artifact/imp-${{ github.event.release.tag_name }}.tar.gz | ||
name: CI | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
release: | ||
types: | ||
- created | ||
schedule: | ||
- cron: 0 0 * * 1 |
This file was deleted.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.