CI #30
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
name: CI | |
on: | |
schedule: | |
- cron: '10 20 * * *' | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- '**.zig' | |
- '**.yml' | |
push: | |
branches: | |
- main | |
paths: | |
- '**.zig' | |
- '**.yml' | |
jobs: | |
test: | |
timeout-minutes: 10 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
# os: [ubuntu-latest, macos-latest] | |
zig-version: [0.12.0, master] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: goto-bus-stop/setup-zig@v2 | |
with: | |
version: ${{ matrix.zig-version }} | |
- name: Install deps | |
run: | | |
make install-deps | |
- name: Run tests | |
run: | | |
make test | |
- name: Run examples | |
run: | | |
make run | |
- name: Memory leak detect | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
make valgrind |