add docs
build step
#12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
env: | |
ZIG_VERSION: 0.13.0 | |
LLVM_VERSION: 18 | |
jobs: | |
lint: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install clang-format | |
run: | | |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | |
sudo add-apt-repository 'deb http://apt.llvm.org/noble/ llvm-toolchain-noble main' | |
sudo apt update | |
sudo apt install clang-format-${{env.LLVM_VERSION}} make | |
- name: Install zig | |
run: | | |
curl https://ziglang.org/download/${{env.ZIG_VERSION}}/zig-linux-x86_64-${{env.ZIG_VERSION}}.tar.xz -L -o zig.tar.xz | |
tar -xf zig.tar.xz | |
echo "$(pwd)/zig-linux-x86_64-${{env.ZIG_VERSION}}" >> $GITHUB_PATH | |
- name: Lint Zig | |
run: | | |
zig fmt --check **/*.zig --exclude .zig-cache/**/*.zig |