Skip to content

Commit

Permalink
chore: install cadical in CI (#58)
Browse files Browse the repository at this point in the history
We install cadical in the doc-gen CI to prevent build failures:
https://github.com/leanprover/LNSym/actions/runs/10252790764/job/28363964048
  • Loading branch information
bollu authored Aug 5, 2024
1 parent d71d7bc commit ca03cad
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: docs

on:
push:
branches:
- "main"

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
Expand All @@ -12,20 +12,26 @@ permissions:

jobs:
build:
name: build and deploy documentation.
name: Documentation
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: leanprover/[email protected]
with:
use-mathlib-cache: false
use-github-cache: true
- uses: DeterminateSystems/nix-installer-action@main

- name: Install cadical
run: nix profile install nixpkgs#cadical

- uses: actions/checkout@v4

- uses: leanprover/[email protected]
with:
use-mathlib-cache: false
use-github-cache: true

- name: Generate docs
run: |
./docgen.sh
- name: Generate docs
run: |
./docgen.sh || true # allow documentation generation to fail, as a test.
# Disable documentation uploading until we are happy with our docs.
# stolen from mathlib: https://github.com/leanprover-community/mathlib4_docs/blob/1f4ea7657bc377b4298fd400e567471d3a248b2d/.github/workflows/docs.yaml#L79-L86
Expand Down

0 comments on commit ca03cad

Please sign in to comment.