feat: support multiple part #16
Workflow file for this run
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: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- '**.zig' | |
- '**.yml' | |
push: | |
branches: | |
- main | |
paths: | |
- '**.zig' | |
- '**.yml' | |
jobs: | |
test-linux: | |
timeout-minutes: 10 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: goto-bus-stop/setup-zig@v2 | |
with: | |
version: master | |
- name: Install deps | |
run: | | |
sudo apt update && sudo apt install -y valgrind libcurl4-openssl-dev | |
- name: Run tests | |
run: | | |
make build test | |
- name: Run examples | |
run: | | |
make run-examples | |
- name: Memory leak detect | |
# Wait https://github.com/ziglang/zig/issues/15547 | |
if: false | |
run: | | |
zig build -Dcpu=baseline --verbose | |
BINS=("./zig-out/bin/basic" "./zig-out/bin/advanced") | |
for bin in ${BINS[@]}; do | |
valgrind --leak-check=full --tool=memcheck \ | |
--show-leak-kinds=all --error-exitcode=1 ${bin} | |
done | |
test-macos: | |
timeout-minutes: 10 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: goto-bus-stop/setup-zig@v1 | |
with: | |
version: master | |
- name: Run examples | |
run: | | |
make run-examples |