Add CI #4
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: Build Textbook | |
on: | |
push: | |
branches: ["master", "main"] | |
pull_request: | |
branches: ["master", "main"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run makedist.sh in Docker container | |
run: | | |
cd ./ci | |
./prepare-for-ci.sh | |
docker compose up -d | |
docker compose exec -T ibllinearalgebra ./makedist.sh | |
docker compose down | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: textbook | |
path: ci/dist/ | |
- name: Verifies all PDFs were built | |
run: | | |
cd ./ci | |
./verify-all-compiled.sh |