Some signal safety and refactoring, also don't LD_PRELOAD for the tracer program #61
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: | |
push: | |
branches: [ main ] | |
tags: ['*'] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y ninja-build libunwind-dev | |
- name: Build | |
run: | | |
make release | |
tar -C build -cJf glibc-tools-x86_64.tar.xz libSegFault.so tracer | |
- name: Test | |
run: | | |
build/tracer --help | |
export LIBSEGFAULT_TRACER="$PWD/build/tracer" | |
export LIBSEGFAULT_DEBUG=1 | |
export LD_PRELOAD="$PWD/build/libSegFault.so" | |
build/faulty-example 2>&1 | grep "faulty-example.cpp" | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
fail_on_unmatched_files: true | |
files: | | |
glibc-tools-x86_64.tar.xz |