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:
parent
81e6149d83
commit
e080f0ccd1
1 changed files with 35 additions and 0 deletions
35
.github/workflows/main.yml
vendored
Normal file
35
.github/workflows/main.yml
vendored
Normal 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
|
Loading…
Add table
Reference in a new issue