Try another pointer alignment workaround #80
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: Docs | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'src/**/*.zig' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| deploy: | |
| name: Deploy | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-zig | |
| - name: Build docs | |
| run: | | |
| # I don't know why this is needed for the docs to succeed on CI, but otherwise it consistently fails with: | |
| # error: unable to open directory '...': FileNotFound | |
| # See https://github.com/mxpv/luaz/actions/runs/16698403816/job/47265761593 | |
| for i in {1..3}; do | |
| if zig build docs; then | |
| break | |
| fi | |
| echo "Attempt $i failed, retrying..." | |
| sleep 2 | |
| done | |
| - uses: actions/configure-pages@v5 | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./zig-out/docs/ | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 |