Skip to content

chore: fractal is now using a buffer #12

chore: fractal is now using a buffer

chore: fractal is now using a buffer #12

Workflow file for this run

name: pages
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: sudo apt-get update && sudo apt-get install -y clang-tidy
- run: make lint
docs:
runs-on: ubuntu-latest
env:
DOXYGEN_VERSION: "1.16.1"
steps:
- uses: actions/checkout@v4
- name: Install doxygen (pinned; Ubuntu's apt package is too old for this Doxyfile)
run: |
curl -sL "https://github.com/doxygen/doxygen/releases/download/Release_${DOXYGEN_VERSION//./_}/doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz" | tar xz
echo "$PWD/doxygen-${DOXYGEN_VERSION}/bin" >> "$GITHUB_PATH"
- run: make docs
- uses: actions/upload-artifact@v4
with:
name: docs
path: docs/generated/html
web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: make web
- run: mkdir -p site && cp index.html web/cub3d.js web/cub3d.wasm web/cub3d.data site/
- uses: actions/upload-artifact@v4
with:
name: web
path: site
deploy:
needs: [lint, docs, web]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
name: web
path: site
- uses: actions/download-artifact@v4
with:
name: docs
path: site/docs
- uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: site