test #48
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: Test | |
| on: [push, pull_request, workflow_dispatch] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| # Check-out the repository under $GITHUB_WORKSPACE | |
| - uses: actions/checkout@v4 | |
| - name: Environment setup | |
| run: | | |
| sudo apt-get update -qq | |
| # install latex | |
| sudo apt-get install --no-install-recommends --yes texlive-latex-base texlive-latex-extra | |
| # install dependecies for diff-pdf | |
| sudo apt-get install --yes make automake g++ libpoppler-glib-dev poppler-utils libwxgtk3.0-gtk3-dev | |
| # build diff-pdf | |
| wget https://github.com/vslavik/diff-pdf/archive/master.tar.gz | |
| tar xf master.tar.gz | |
| pushd diff-pdf-master && ./bootstrap && ./configure && make && sudo make install && popd | |
| - name: Compile and run | |
| run: | | |
| cd $GITHUB_WORKSPACE | |
| pdflatex -halt-on-error -interaction=nonstopmode karnaugh-map.ins | |
| pdflatex -halt-on-error -interaction=nonstopmode karnaugh-map.dtx | |
| pdflatex -halt-on-error -interaction=nonstopmode karnaugh-map.dtx | |
| ./test.sh | |
| - name: Archival of test results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results | |
| path: | | |
| test/result | |
| test/actual | |
| - name: Archival of package documentation | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: package-documentation | |
| path: karnaugh-map.pdf |