New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to GHC 9.6, latest Stackage Nightly, and use BNFC in setup #116
Merged
Merged
Changes from 7 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
85be97b
Update to GHC 9.6, latest Stackage Nightly, and use BNFC in setup
fizruk a43e354
Add .gitattributes
fizruk d5a70e6
Specify upper bounds for base and Cabal
fizruk 794efb2
Update GitHub workflows
fizruk 7ccaed5
Increase upper bound for Cabal
fizruk 03e0f32
Improve names of workflows
fizruk c163b26
Add rzk checks to GHC workflow
fizruk 1a326f1
Remove unnecessary cache option for Setup Stack
fizruk aa61b93
Make rzk artifact name valid
fizruk 0d194a1
Update .gitattributes
fizruk 93426c7
Fix rzk job
fizruk f618773
Remove unnecessary stack steps, try download-artifact@v1
fizruk 68cc270
Fix path to extracted rzk binary
fizruk 9f5d2df
Use .tar.gz for rzk binaries
fizruk e2a5059
Remove unnecessary stack build steps
fizruk 5690de5
Remove unnecessary output
fizruk 86d28ee
Override BNFC-generated printTree with a more suitable one (avoid new…
fizruk File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
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,3 @@ | ||
rzk/grammar/Syntax.cf linguist-language=grammar | ||
rzk/src/Language/Rzk/Syntax/* linguist-generated=true | ||
docs/** linguist-documentation |
This file was deleted.
Oops, something went wrong.
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,113 @@ | ||
name: GHC (build, test, haddock) | ||
|
||
# Controls when the workflow will run | ||
on: | ||
push: | ||
branches: [main, develop] | ||
tags: [v*] | ||
paths: | ||
- .github/workflows/ghcjs.yml | ||
- rzk/** | ||
- stack.yaml | ||
- rzk.yaml | ||
- "**/*.rzk.md" | ||
- "**/*.rzk" | ||
- "**/*.rzk.tex" | ||
pull_request: | ||
branches: [develop] | ||
paths: | ||
- .github/workflows/ghcjs.yml | ||
- rzk/** | ||
- stack.yaml | ||
- rzk.yaml | ||
- "**/*.rzk.md" | ||
- "**/*.rzk" | ||
- "**/*.rzk.tex" | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
name: "Build and test with GHC" | ||
runs-on: ubuntu-latest | ||
outputs: | ||
rzkPath: ${{ steps.rzkBinary.outputs.rzkPath }} | ||
|
||
steps: | ||
- name: 📥 Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🧰 Setup Stack | ||
uses: freckle/stack-action@v4 | ||
with: | ||
cache-prefix: ${{ runner.os }}-stack- | ||
|
||
- name: 🔨 Build dependencies (with Stack) | ||
run: | | ||
stack build --only-dependencies | ||
|
||
- name: 🔨 Build and test (with Stack) | ||
run: | | ||
stack test | ||
|
||
- name: Tar and strip the binary | ||
id: rzkBinary | ||
run: echo "rzkPath=$(stack exec -- which rzk)" >> "$GITHUB_OUTPUT" | ||
|
||
- name: Upload rzk binary as Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: ${{ steps.rzkBinary.outputs.rzkPath }} | ||
name: "rzk-${{ github.ref_name }}" | ||
if-no-files-found: error | ||
|
||
haddock: | ||
needs: [build] | ||
if: ${{ github.ref_name == 'develop' }} | ||
name: "Build and upload Haddock documentation (develop)" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: 📥 Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🧰 Setup Stack | ||
uses: freckle/stack-action@v4 | ||
with: | ||
cache-prefix: ${{ runner.os }}-stack- | ||
|
||
- name: 🔨 Build Haddock Documentation (with Stack) | ||
run: | | ||
stack haddock | ||
mkdir -p dist/haddock | ||
mv $(stack path --local-doc-root)/* dist/haddock | ||
|
||
- name: 🚀 Publish Haddock Documentation | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
folder: dist/haddock | ||
target-folder: haddock | ||
single-commit: true | ||
|
||
rzk: | ||
needs: [build] | ||
name: "Check Rzk formalizations" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: 📥 Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: 📥 Download rzk | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{ needs.build.outputs.rzkPath }} | ||
|
||
- name: Check Rzk files | ||
run: ./rzk typecheck docs/docs/examples/recId.rzk.md # FIXME: rely on rzk.yaml instead | ||
shell: bash |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see
grammar
as a language identifier inlanguages.yml
. Perhaps it should beABNF
orEBNF
? Note that either would also requirelinguist-detectable
since they havetype: data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to use
EBNF
, thanks!