Fucking GitHub #16
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: 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) |