Skip to content

Reformat log messages, switch from warn to err (#24) #15

Reformat log messages, switch from warn to err (#24)

Reformat log messages, switch from warn to err (#24) #15

Workflow file for this run

name: Simargs CI
on:
workflow_dispatch:
pull_request:
paths:
- 'src/mod/simargs.zig'
- ".github/workflows/simargs.yml"
push:
branches:
- main
paths:
- 'src/mod/simargs.zig'
- ".github/workflows/simargs.yml"
env:
ZIG_VERSION: 0.12.0
jobs:
memory-leak:
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: ${{ env.ZIG_VERSION }}
- name: Memory leak detect
run: |
sudo apt update && sudo apt install -y valgrind
zig build -Dcpu=baseline --verbose -Dis_ci
TEST_BINARY=./zig-out/bin/simargs-demo
valgrind --leak-check=full --tool=memcheck \
--show-leak-kinds=all --error-exitcode=1 ${TEST_BINARY} --output a.out \
hello world