Skip to content

Zig

Zig #203

Workflow file for this run

name: Zig
on:
push:
branches: [ main, staging, trying ]
paths:
- 'zig/**'
- '.github/workflows/zig.yml'
pull_request:
branches: [ main, staging, trying ]
paths:
- 'zig/**'
- '.github/workflows/zig.yml'
schedule:
- cron: '0 0 * * 5'
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: zig
steps:
- uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.13.0
- uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/zig/zig-*
key: ${{ runner.os }}-zig-${{ github.sha }}
restore-keys: |
${{ runner.os }}-zig-
- run: zig build --cache-dir "$PWD/zig-local-cache" --global-cache-dir "$PWD/zig-global-cache" test --verbose
shell: bash
ci-success:
name: ci
if: ${{ success() }}
needs:
- build
runs-on: ubuntu-latest
steps:
- name: CI succeeded
run: exit 0