PDF cleanup 282: hide use of open
for records in pdf
#1356
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: Formal Ledger Specs | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v20 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= | |
substituters = https://cache.iog.io https://cache.nixos.org/ | |
- name: Build formalLedger | |
id: formalLedger | |
run: | | |
mkdir -p outputs | |
nix-build -A formalLedger -j1 -o outputs/formalLedger | |
rsync -r --include={'**/*.time'} outputs/formalLedger*/* docs/ | |
- name: Build ledger | |
id: ledger | |
run: | | |
nix-build -A ledger -j1 -o outputs/ledger | |
rsync -r --exclude={'**/nix-support','**/lib'} outputs/ledger*/* docs/ | |
- name: Build midnight | |
id: midnight | |
run: | | |
nix-build -A midnight -j1 -o outputs/midnight | |
rsync -r --exclude={'**/nix-support','**/lib'} outputs/midnight*/* docs/ | |
- name: Upload PDF artifacts | |
if: github.event_name == 'pull_request' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: PDF specs | |
path: docs/pdfs/*.pdf | |
- name: Upload typechecking times | |
if: github.event_name == 'pull_request' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Typechecking durations | |
path: docs/*.time | |
- name: Generate main website | |
if: github.ref == 'refs/heads/master' | |
run: | | |
echo "** Generated PDF files:"; find -L docs/ -name '*.pdf' | |
echo "** Generated HTML files:"; find -L docs/ -name '*.html' | |
echo "** Generated Haskell files:"; find -L docs/ -name '*.hs' | |
OUT_DIR=../docs/ make staticWebsite | |
- name: Add files | |
if: github.ref == 'refs/heads/master' | |
run: | | |
git config user.name 'github-actions[bot]' | |
git config user.email 'github-actions[bot]@users.noreply.github.com' | |
git add -f docs/ | |
git commit -m "Updated for ${{ github.sha }}" | |
- name: Push to gh-pages | |
if: github.ref == 'refs/heads/master' | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |
force: true | |
directory: . |