fix cache? #22
Workflow file for this run
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: Ximera Workflow | |
| on: | |
| push: | |
| branches: | |
| - 'split' | |
| env: | |
| GPG_KEY: ${{ secrets.GPG_KEY }} | |
| GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} | |
| XIMERA_NAME: wimcalc20250904 | |
| XIMERA_URL: "https://xerxes.ximera.org/" | |
| XM_TO_PROCESS: "testxourse.tex" | |
| jobs: | |
| build-ximera-pdfexport: | |
| name: Run pdfexport | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| container: &x-container | |
| image: ghcr.io/ximeraproject/ximeralatex:v2.7.5fix2 | |
| options: >- | |
| --workdir /code | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/cache/restore@v4 | |
| with: | |
| path: | | |
| build/** | |
| **/*.html | |
| **/*.aux | |
| **/*.log | |
| **/*.toc | |
| **/*.xref | |
| **/*.svg | |
| **/*.png | |
| !.git/** | |
| !.github/** | |
| key: ximeraPDF-${{ github.ref_name }}-latest | |
| restore-keys: | | |
| ximeraPDF-${{ github.ref_name }}- | |
| ximeraPDF- | |
| - run: | | |
| git config --global --add safe.directory /code | |
| git config --global --add safe.directory /__w/calculus/calculus | |
| export TEXMFHOME=/root/texmf | |
| export LUA_PATH="/root/texmf/tex/latex/ximeraLatex/luaxake/?.lua;;" | |
| xmlatex bake --compile pdfexport -j 5 $XM_TO_PROCESS | |
| - uses: actions/cache/save@v4 | |
| with: | |
| path: | | |
| build/** | |
| **/*.html | |
| **/*.aux | |
| **/*.log | |
| **/*.toc | |
| **/*.xref | |
| **/*.svg | |
| **/*.png | |
| !.git/** | |
| !.github/** | |
| key: ximeraPDF-${{ github.ref_name }}-latest | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: pdfexport | |
| path: . | |
| build-ximera-htmlexport: | |
| name: Run htmlexport | |
| needs: build-ximera-pdfexport | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| container: *x-container | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/cache/restore@v4 | |
| with: | |
| path: | | |
| build/** | |
| **/*.html | |
| **/*.aux | |
| **/*.log | |
| **/*.toc | |
| **/*.xref | |
| **/*.svg | |
| **/*.png | |
| !.git/** | |
| !.github/** | |
| key: ximeraPDF-${{ github.ref_name }}-latest | |
| restore-keys: | | |
| ximeraPDF-${{ github.ref_name }}- | |
| ximeraPDF- | |
| - run: | | |
| git config --global --add safe.directory /code | |
| git config --global --add safe.directory /__w/calculus/calculus | |
| export TEXMFHOME=/root/texmf | |
| xmlatex bake --compile htmlexport -j 5 $XM_TO_PROCESS | |
| - uses: actions/cache/save@v4 | |
| with: | |
| path: | | |
| build/** | |
| **/*.html | |
| **/*.aux | |
| **/*.log | |
| **/*.toc | |
| **/*.xref | |
| **/*.svg | |
| **/*.png | |
| !.git/** | |
| !.github/** | |
| key: ximeraHTML-${{ github.ref_name }}-latest | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: htmlexport | |
| path: . | |
| build-ximera-serve: | |
| name: Run frost/serve preview | |
| needs: build-ximera-htmlexport | |
| continue-on-error: true | |
| runs-on: ubuntu-latest | |
| container: *x-container | |
| permissions: | |
| actions: read | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/cache/restore@v4 | |
| with: | |
| path: | | |
| build/** | |
| **/*.html | |
| **/*.aux | |
| **/*.log | |
| **/*.toc | |
| **/*.xref | |
| **/*.svg | |
| **/*.png | |
| !.git/** | |
| !.github/** | |
| key: ximeraHTML-${{ github.ref_name }}-latest | |
| restore-keys: | | |
| ximeraHTML-${{ github.ref_name }}- | |
| ximeraHTML- | |
| - run: | | |
| git config --global --add safe.directory /code | |
| git config --global --add safe.directory /__w/calculus/calculus | |
| export TEXMFHOME=/root/texmf | |
| xmlatex name | |
| xmlatex frost $XM_TO_PROCESS | |
| xmlatex serve $XM_TO_PROCESS | |
| echo "✅ Published to $XIMERA_URL$XIMERA_NAME " >> $GITHUB_STEP_SUMMARY | |
| - uses: actions/cache/save@v4 | |
| with: | |
| path: | | |
| xmScripts/** | |
| .git/** | |
| key: ximeraSERVE-${{ github.ref_name }}-latest | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: serve | |
| path: . | |
| publish-ximera: | |
| name: Run serve to mooculus | |
| needs: build-ximera-serve | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| container: *x-container | |
| environment: production | |
| steps: | |
| - uses: actions/cache/restore@v4 | |
| with: | |
| fail-on-cache-miss: true | |
| path: | | |
| xmScripts/** | |
| .git/** | |
| key: ximeraSERVE-${{ github.ref_name }}-latest | |
| - run: | | |
| echo "Serving to $XIMERA_URL$XIMERA_NAME" | |
| git config --global --add safe.directory /code | |
| git config --global --add safe.directory /__w/calculus/calculus | |
| export TEXMFHOME=/root/texmf | |
| xmlatex name | |
| xmlatex serve -t $XM_TO_PROCESS | |
| echo "Recent git log:" | |
| git log --oneline --graph --decorate --all -n 10 | |
| echo "✅ Published to $XIMERA_URL$XIMERA_NAME " >> $GITHUB_STEP_SUMMARY | |
| env: | |
| XIMERA_URL: "https://xerxes.ximera.org/" | |
| XIMERA_NAME: "calculus" |