Squashed 'vendor/zglfw/' content from commit f04fdbf
git-subtree-dir: vendor/zglfw git-subtree-split: f04fdbfc5b6d8c9a12025013992ac1d48653931e
This commit is contained in:
32
.github/workflows/main.yml
vendored
Normal file
32
.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: ci
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
concurrency:
|
||||
# Cancels pending runs when a PR gets updated.
|
||||
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
lint-and-build-and-test:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
zig-version: ["0.14.1", "0.15.2", "0.16.0"]
|
||||
runs-on: ${{matrix.os}}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Install Zig
|
||||
uses: mlugg/setup-zig@v2
|
||||
with:
|
||||
version: ${{matrix.zig-version}}
|
||||
- name: Check format
|
||||
continue-on-error: true
|
||||
run: zig fmt --check .
|
||||
- name: Build and run tests
|
||||
run: zig build test
|
||||
Reference in New Issue
Block a user