Skip to content

fix ci test

fix ci test #7

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"
jobs:
memory-leak:
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: goto-bus-stop/setup-zig@v2
with:
version: master
- 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