Skip to content

test: add string test #116

test: add string test

test: add string test #116

Workflow file for this run

---
name: CI
"on": [push, pull_request]
permissions:
contents: read
env:
ZIG_VERSION: 0.12.0
jobs:
build:
name: Build
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}
- name: Set Zig version
run: |
echo "zig_version=$ZIG_VERSION" >> $GITHUB_OUTPUT
- name: Build
run: zig build
lint:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2
- run: zig fmt --check .
release:
needs: [build]
permissions:
contents: write
if: github.repository_owner == 'charlesrocket' && startsWith(github.ref, 'refs/tags/')
uses: ./.github/workflows/cd.yml
with:
tag_name: ${{ github.ref_name }}
zig_version: ${{ needs.build.outputs.zig_version }}