-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 863 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Test workflow
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install deps
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt update && sudo apt upgrade -y
sudo apt install -y libuuid-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