1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-21 07:34:08 +00:00

Create main.yml for CI

Intended to run nightly to check if we're still compatible with zig master
This commit is contained in:
Rene Schallner 2023-04-28 21:02:54 +02:00 committed by GitHub
parent 81e6149d83
commit e080f0ccd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

35
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,35 @@
name: CI & nightly Zig check
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
ci:
strategy:
matrix:
# platform: [ubuntu-latest, windows-latest]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
#- name: Setup Linux dependencies
# if: runner.os == 'Linux'
# run: |
# sudo apt-get update
# sudo apt-get install libgtk-3-dev
- uses: goto-bus-stop/setup-zig@v2
with:
version: master
- name: Check formatting
run: zig fmt --check .
- name: Build simple endpoint example
run: zig build endpoint
- name: Build tests
run: zig build test