ci (pandoc) #24
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
name: EasyCrypt Unit Examples Compilation | |
on: [push,pull_request] | |
env: | |
HOME: /home/charlie | |
OPAMYES: true | |
OPAMJOBS: 2 | |
jobs: | |
check-unit-examples: | |
name: Check Unit Examples | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/easycrypt/ec-build-box | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install EasyCrypt | |
run: | | |
opam pin add -n easycrypt git+https://github.com/EasyCrypt/easycrypt | |
opam install easycrypt | |
- name: Detect SMT provers | |
run: | | |
opam exec -- easycrypt why3config | |
- name: Check Unit Tests | |
run: | | |
opam exec -- easycrypt runtest config/tests.config units | |
generate-html: | |
name: Generate HTML | |
runs-on: ubuntu-latest | |
container: | |
image: docker://pandoc/core:2.9 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install build tools | |
run: | | |
apk --no-cache add make python3 py3-pip | |
pip3 install 'panflute==1.12' | |
- name: Run pandoc | |
run: | | |
make tactics.html | |
- name: Archive document | |
uses: actions/upload-artifact@v4 | |
with: | |
name: tactics | |
path: | | |
tactics.html | |
css/styling.css |