added github workflow to generate docs

This commit is contained in:
Lorenzo Torres 2025-08-01 21:42:52 +02:00
parent e7e0927a83
commit 2bb599aac0

37
.workflows/docs.yml Normal file
View file

@ -0,0 +1,37 @@
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
docs:
runs-on: ubuntu-latest
name: Build and Test
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup
uses: mlugg/setup-zig@v2
with:
version: master
- name: install dependencies
run: sudo apt install -y libwayland-dev libxkbcommon-dev xorg-dev glslc
- name: build docs
run: zig build docs
- name: archive docs
uses: actions/upload-artifact@v4
with:
name: docs
path: |
zig-out/docs