added github workflow to generate docs
This commit is contained in:
parent
e7e0927a83
commit
2bb599aac0
1 changed files with 37 additions and 0 deletions
37
.workflows/docs.yml
Normal file
37
.workflows/docs.yml
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue