-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release-v0.6.5: (58 commits) Bump version and update changelog Use rzk.yaml in a GitHub workflow Remove stack-8.6.5.yaml Update recId example (fix deprecation warnings and hints) Use rzk.yaml if it exists Update docs, add CONTRIBUTORS.md Support snippet/code param in Rzk playground Override BNFC-generated printTree with a more suitable one (avoid newlines for curly braces) Remove unnecessary output Remove unnecessary stack build steps Use .tar.gz for rzk binaries Fix path to extracted rzk binary Remove unnecessary stack steps, try download-artifact@v1 Fix rzk job Update .gitattributes Make rzk artifact name valid Remove unnecessary cache option for Setup Stack Add rzk checks to GHC workflow Improve names of workflows Increase upper bound for Cabal ...
- Loading branch information
Showing
90 changed files
with
7,772 additions
and
1,175 deletions.
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 |
---|---|---|
@@ -1,2 +1,9 @@ | ||
use flake | ||
eval "$shellHook" | ||
if ! type "nix" > /dev/null; then | ||
use nix -A default | ||
eval "$shellHook" | ||
use nix -A ghcjs | ||
else | ||
use flake .#default | ||
eval "$shellHook" | ||
use flake .#ghcjs | ||
fi |
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=EBNF linguist-detectable=true | ||
rzk/src/Language/Rzk/Syntax/* linguist-generated=true | ||
docs/** linguist-documentation=true |
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,106 @@ | ||
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 | ||
|
||
steps: | ||
- name: 📥 Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🧰 Setup Stack | ||
uses: freckle/stack-action@v4 | ||
|
||
- name: Tar and strip the binary | ||
run: | | ||
mkdir -p bin/ | ||
cp $(stack exec -- which rzk) bin/. | ||
tar -cvzf rzk-bin.tar.gz bin/ | ||
- name: Upload rzk binary as Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: rzk-bin.tar.gz | ||
name: rzk-bin | ||
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 | ||
|
||
- 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 | ||
id: download | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: rzk-bin | ||
|
||
- name: Unpack rzk-bin.tar.gz | ||
run: | | ||
tar xzf ${{ steps.download.outputs.download-path}}/rzk-bin.tar.gz | ||
- name: Check Rzk files | ||
run: ./bin/rzk typecheck | ||
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
Oops, something went wrong.