37 lines
1,015 B
YAML
37 lines
1,015 B
YAML
# 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 libvulkan1
|
|
- name: build docs
|
|
run: zig build docs
|
|
- name: archive docs
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: docs
|
|
path: |
|
|
zig-out/docs
|