Skip to content

Docs: Snap instructions #19

Docs: Snap instructions

Docs: Snap instructions #19

Workflow file for this run

name: 🐧 Linux
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [g++, clang++]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install CMake
run: |
sudo apt-get update
sudo apt-get install -y cmake gdb clang g++
- name: Configure CMake
run: cmake -S . -B build -DCMAKE_CXX_COMPILER=${{ matrix.compiler }}
- name: Build CMake
run: cmake --build build -- -j
- name: Run
run: |
set -e
./build/git-kudos || (
echo "\n\nRun failed, getting backtrace from gdb...\n\n" &&
cmake -S . -B build -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} -DCMAKE_BUILD_TYPE=Debug &&
cmake --build build -- -j &&
gdb -batch -ex "run" -ex "bt" --args ./build/git-kudos; exit 1
)