-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1004 Bytes
/
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
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
- name: Ensure deps are installed
run: |
cmake --version
g++ --version
make --version
ninja --version
- name: Build & run CText flow
run: |
mkdir cmake-build-debug && cd cmake-build-debug
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=ON
export TESTS_BOT_TOKEN=${{ secrets.TESTS_BOT_TOKEN }}
ninja tests/all -j$(nproc)
ninja test