mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 19:28:49 -04:00
Add a CI step to check if the game compiles on Linux and Windows (#956)
* Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * Update ci.yml * oops * Update assets.zig
This commit is contained in:
parent
a0d015a07a
commit
2b3f56a33c
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
@ -1,6 +1,6 @@
|
|||||||
# This is a basic workflow that is manually triggered
|
# This is a basic workflow that is manually triggered
|
||||||
|
|
||||||
name: Format Check
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -9,8 +9,21 @@ on:
|
|||||||
branches: [ "master" ]
|
branches: [ "master" ]
|
||||||
|
|
||||||
jobs:
|
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
|
||||||
|
- run: zig build -Dtarget=x86_64-windows-gnu
|
||||||
|
|
||||||
format_check:
|
format_check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
name: Format Check
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -18,5 +31,4 @@ jobs:
|
|||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.10"
|
||||||
- name: Check Format
|
- run: python3 "format_check.py"
|
||||||
run: python3 "format_check.py"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user