diff --git a/.workflows/docs.yml b/.workflows/docs.yml new file mode 100644 index 0000000..13d3c10 --- /dev/null +++ b/.workflows/docs.yml @@ -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