Skip to content

Commit 1d24ce9

Browse files
committed
build: add ubuntu release build with build_testing=off
1 parent ebecf62 commit 1d24ce9

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Ubuntu 22.04 (Release build)
2+
3+
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
ubuntu-release-build:
10+
if: >-
11+
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
12+
! contains(toJSON(github.event.commits.*.message), '[skip github]')
13+
runs-on: ubuntu-22.04
14+
strategy:
15+
matrix:
16+
cxx: [g++-12, clang++-14]
17+
steps:
18+
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
19+
- name: Setup Ninja
20+
run: sudo apt-get install ninja-build
21+
- name: Prepare
22+
run: cmake -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -G Ninja -B build
23+
env:
24+
CXX: ${{matrix.cxx}}
25+
- name: Build
26+
run: cmake --build build -j=2
27+
- name: Test
28+
run: ctest --output-on-failure --test-dir build

0 commit comments

Comments
 (0)