generate the TeX deck #73
This file contains hidden or 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: check | |
| on: push | |
| jobs: | |
| # Ensure make output is up to date. | |
| make: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - run: make | |
| - name: check for uncommitted changes | |
| run: | | |
| if [[ -n $(git status --porcelain) ]]; then | |
| echo "Error: Generated files are out of date!" | |
| echo "The following files have changes:" | |
| git status --porcelain | |
| echo "" | |
| echo "Please run 'make' locally and commit the updated files." | |
| exit 1 | |
| else | |
| echo "Success: All generated files are up to date." | |
| fi | |
| - run: make clean | |
| # Check card integrity. | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: clone hashcards repo locally | |
| run: git clone https://github.com/eudoxia0/hashcards.git | |
| - name: install hashcards | |
| run: | | |
| make | |
| sudo make install | |
| working-directory: ./hashcards | |
| - run: make check |