-
Notifications
You must be signed in to change notification settings - Fork 36
59 lines (49 loc) · 1.27 KB
/
ubuntu-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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: ubuntu-build
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
concurrency:
group: ci-${{github.workflow}}-${{ github.ref }}
cancel-in-progress: true
jobs:
cmake:
runs-on: ubuntu-22.04
steps:
- name: Show env
run: env
- name: Checkout
uses: actions/checkout@v3
- name: Install Build Dependencies
shell: bash
run: |
sudo apt update && sudo apt install --no-install-recommends -y \
cmake \
make
- name: Show Python version and platform info
run: |
python --version
python -m platform
- name: Show CMake version
run: cmake --version
- name: CMake Configure
shell: bash
run: |
cmake -S . -B build -DCMAKE_VERBOSE_MAKEFILE=ON
- name: CMake Build
shell: bash
run: |
cmake --build build -j$(nproc)
bazel:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: bazel-contrib/[email protected]
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- run: BAZEL_CXXOPTS="-std=c++17" bazel test //...
- run: BAZEL_CXXOPTS="-std=c++20" bazel test //...