Skip to content

Fucking GitHub

Fucking GitHub #16

Workflow file for this run

name: Test workflow
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
tests:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@main
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install deps
run: |
sudo apt update && sudo apt upgrade -y
sudo apt install -y uuid-dev libasio-dev libpq-dev postgresql
python3 -m pip install cmake --break-system-packages
- name: Print environment
run: |
cmake --version
- name: Run build
run: |
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j $(nproc)
- name: Run test
run: |
cd build
cmake --build . --target test
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@main
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install deps
run: |
sudo apt update && sudo apt upgrade -y
sudo apt install -y uuid-dev libasio-dev libpq-dev postgresql
python3 -m pip install cmake --break-system-packages
- name: Print environment
run: |
cmake --version
- name: Run build
run: |
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DLINT=ON -DLINT_WARNINGS_AS_ERRORS=ON
make -j $(nproc)