-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.03 KB
/
build-ubuntu.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
33
34
35
36
37
38
39
40
41
42
name: build-ubuntu
# build on pushes and pull requests on main branch
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
architecture: [x64] #architecture: [x86, x64]
build-platform: [x64] #build-platform: [x86, x64]
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v4
- name: Update apt repositories & install deps
run: |
sudo apt update
sudo apt-get install cmake g++ make ninja-build libssl-dev valgrind
- name: Ensure deps are installed
run: |
cmake --version
g++ --version
make --version
ninja --version
- name: Export TESTS_BOT_TOKEN to env
run: export TESTS_BOT_TOKEN=${{ secrets.TESTS_BOT_TOKEN }}
- name: Build & run CText flow
run: |
mkdir cmake-build-debug && cd cmake-build-debug
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=ON
ninja tests/all -j$(nproc)
ninja test