Ubuntu v3 ctest #186
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: matrix (ubuntu, macos, windows) ctes | |
on: | |
push: | |
paths-ignore: | |
- docs/** | |
- "**.md" | |
- "**.markdown" | |
branches: | |
- master | |
pull_request: | |
paths-ignore: | |
- docs/** | |
- "**.md" | |
- "**.markdown" | |
branches: | |
- master | |
env: | |
BUILD_TYPE: Release | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
# checkout full depth of history. | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Run Linux Build | |
if: matrix.os == 'ubuntu-latest' | |
run: echo "Ubuntu Latest" > release_ubuntu | |
- name: Run Mac Build | |
if: matrix.os == 'macos-latest' | |
run: echo "MacOS Latest" > release_mac | |
- name: Run Windows Build | |
if: matrix.os == 'windows-latest' | |
run: echo "Windows Latest" > release_windows | |
- name: Create Build Environment | |
run: cmake -E make_directory ${{github.workspace}}/build | |
- name: Configure CMake | |
shell: bash | |
working-directory: ${{github.workspace}}/build | |
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE | |
-DADD_G3LOG_UNIT_TEST=ON | |
- name: Build | |
working-directory: ${{github.workspace}}/build | |
shell: bash | |
run: cmake --build . --config $BUILD_TYPE | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
shell: bash | |
run: ctest -C $BUILD_TYP | |
- name: Fatal Exit Example Linux/OSX | |
working-directory: ${{github.workspace}}/build | |
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' | |
shell: bash | |
run: ./g3log-FATAL-sigsegv || true && echo -e | |
"\n\n=======================\n\nverifying SIGSEGV existed in | |
stackdump\n\n\n\n" && cat /tmp/g3log*FATAL*.log | grep "SIGSEGV" | |
- name: Fatal Exit Example Windows | |
working-directory: ${{github.workspace}}/build | |
if: matrix.os == 'windows-latest' | |
shell: bash | |
run: ls -alh > lsout.txt && cat lsout.txt && ./Release/g3log-FATAL-sigsegv.exe $> output.txt || true && cat output.txt && echo -e | |
"\n\n=======================\n\nverifying SIGSEGV existed in | |
stackdump\n\n\n\n" && cat *3log*FATAL*.log | grep "SIGSEGV" |