Skip to content
Merged
Show file tree
Hide file tree
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
11 changes: 6 additions & 5 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
build:
name: Semantic release
runs-on: ubuntu-latest
if: >-
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'push'
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -26,26 +29,24 @@ jobs:
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}"
HACKAGE_KEY: "${{ secrets.HACKAGE_TOKEN }}"

with:
ci: ${{ github.ref == github.event.repository.default_branch }}
extra_plugins: |
conventional-changelog-conventionalcommits
@semantic-release/changelog
@semantic-release/git
github:haskell-github-trust/semantic-release-haddock-since
semantic-release-stack-upload

- name: Semantic release output
env:
RELEASE_NOTES: "${{ steps.semantic.outputs.new_release_notes }}"
run: |
echo ref: ${{ github.ref }}
echo dry_run: ${{ github.ref_name != github.event.repository.default_branch }}
echo published: ${{ steps.semantic.outputs.new_release_published }}
echo last_release: ${{ steps.semantic.outputs.last_release_version }}
echo new_version: ${{ steps.semantic.outputs.new_release_version }}
echo git_head: ${{ steps.semantic.outputs.new_release_git_head }}

echo release_notes:
echo "${{ steps.semantic.outputs.new_release_notes }}"
echo "$RELEASE_NOTES"
...
15 changes: 10 additions & 5 deletions .github/workflows/stack-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,21 @@ jobs:
- id: generate
uses: freckle/stack-action/generate-matrix@v5

single-constraints:
name: Single constraint per line
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: "! grep -rnPzo '\\([^()]*,[^()]*\\)\\s*=>' src test"

build:
name: ${{ matrix.stack-yaml }} / ${{ matrix.os }}
needs: generate
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.os == 'macos' && 'macos-15' || format('{0}-latest', matrix.os) }}
strategy:
fail-fast: false
matrix:
# macos-15 pinned, macos-latest breaks GHC linking
# https://github.com/actions/runner-images/issues/14940
os: [ubuntu-latest, macos-15, windows-latest]
os: [ubuntu, macos, windows]
stack-yaml: ${{ fromJSON(needs.generate.outputs.stack-yamls) }}
env:
STACK_YAML: ${{ matrix.stack-yaml }}
Expand All @@ -43,5 +48,5 @@ jobs:
continue-on-error: true

- name: Build documentation
run: stack haddock
run: stack haddock --no-haddock-deps
...
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
megaparsec-time.cabal
.stack-work/
*~
dist-newstyle/
11 changes: 8 additions & 3 deletions .releaserc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ export default {
},
],
"@semantic-release/release-notes-generator",
"semantic-release-haddock-since",
[
"semantic-release-haddock-since",
{
versionFiles: ["package.yaml"],
baseline: "api/megaparsec-time.api",
},
],
[
"@semantic-release/changelog",
{
Expand All @@ -24,10 +30,9 @@ export default {
[
"@semantic-release/git",
{
assets: ["CHANGELOG.md", "*.cabal", "package.yaml", "api/*.api", "src/**/*.hs"],
assets: ["package.yaml", "CHANGELOG.md", "api/*.api", "src/**/*.hs"],
},
],
"@semantic-release/github",
"semantic-release-stack-upload",
],
}
9 changes: 9 additions & 0 deletions api/megaparsec-time.api
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Text.Megaparsec.Time.DayResult
Text.Megaparsec.Time.dateParser
Text.Megaparsec.Time.dayParser
Text.Megaparsec.Time.durationParser
Text.Megaparsec.Time.gregorianDayParser
Text.Megaparsec.Time.hoursParser
Text.Megaparsec.Time.minutesParser
Text.Megaparsec.Time.secondsParser
Text.Megaparsec.Time.timeParser
67 changes: 0 additions & 67 deletions megaparsec-time.cabal

This file was deleted.

19 changes: 19 additions & 0 deletions stack-lts-22.yaml.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file was autogenerated by Stack.
# You should not edit this file by hand.
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/topics/lock_files

packages:
- completed:
hackage: megaparsec-utils-0.2.0.0@sha256:6934c23b0ae24392ad21fd5c9382e4466ce75223244ca4d6fcb235c36bc8f39b,2262
pantry-tree:
sha256: 99b4518330360212e34c17ee59c0b942ded2861d541375997e9484564142be29
size: 661
original:
hackage: megaparsec-utils-0.2.0.0
snapshots:
- completed:
sha256: 238fa745b64f91184f9aa518fe04bdde6552533d169b0da5256670df83a0f1a9
size: 721141
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/44.yaml
original: lts-22.44
19 changes: 19 additions & 0 deletions stack-lts-23.yaml.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file was autogenerated by Stack.
# You should not edit this file by hand.
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/topics/lock_files

packages:
- completed:
hackage: megaparsec-utils-0.2.0.0@sha256:6934c23b0ae24392ad21fd5c9382e4466ce75223244ca4d6fcb235c36bc8f39b,2262
pantry-tree:
sha256: 99b4518330360212e34c17ee59c0b942ded2861d541375997e9484564142be29
size: 661
original:
hackage: megaparsec-utils-0.2.0.0
snapshots:
- completed:
sha256: 7e724f347d5969cb5e8dde9f9aae30996e3231c29d1dafd45f21f1700d4c4fcb
size: 684460
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/23/28.yaml
original: lts-23.28
Loading