Add a CI step to check if the game compiles on Linux and Windows #967
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
# This is a basic workflow that is manually triggered | |
name: CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
name: Compilation Check | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: mlugg/setup-zig@v1 | |
with: | |
version: 0.14.0-dev.1550+4fba7336a | |
- run: sudo apt install libgl-dev libasound2-dev libx11-dev | |
- run: zig build | |
format_check: | |
runs-on: ubuntu-latest | |
name: Format Check | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- run: python3 "format_check.py" |