Skip to content

Commit f3e656a

Browse files
committed
renaming tests.yml to pipeline.yml
1 parent 74b2750 commit f3e656a

2 files changed

Lines changed: 65 additions & 38 deletions

File tree

‎.github/workflows/pipeline.yml‎

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Libdbc Tests
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
7+
BUILD_TYPE: Release
8+
9+
jobs:
10+
linux-builds:
11+
name: ${{matrix.cxx}}, C++${{matrix.std}}, ${{matrix.build_type}}
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
cxx:
16+
- g++-13
17+
- clang++-16
18+
build_type: [Debug, Release]
19+
std: [11]
20+
include:
21+
- cxx: g++-13
22+
other_pkgs: g++-13
23+
- cxx: clang++-16
24+
other_pkgs: clang-16
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: Prepare environment
30+
run: |
31+
sudo apt-get update
32+
sudo apt-get install -y ninja-build ${{matrix.other_pkgs}}
33+
34+
- name: Configure build
35+
working-directory: ${{runner.workspace}}
36+
env:
37+
CXX: ${{matrix.cxx}}
38+
CXXFLAGS: ${{matrix.cxxflags}}
39+
run: |
40+
cmake -Bbuild -H$GITHUB_WORKSPACE \
41+
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
42+
-DCMAKE_CXX_STANDARD=${{matrix.std}} \
43+
-DCMAKE_CXX_STANDARD_REQUIRED=ON \
44+
-DCMAKE_CXX_EXTENSIONS=ON \
45+
-DDBC_TEST_LOCALE_INDEPENDENCE=ON
46+
47+
- name: Build tests + lib
48+
working-directory: ${{runner.workspace}}
49+
run: cmake --build build
50+
51+
- name: Run tests
52+
env:
53+
CTEST_OUTPUT_ON_FAILURE: 1
54+
working-directory: ${{runner.workspace}}
55+
run: ctest --output-on-failure --test-dir build -j `nproc`
56+
57+
format-check:
58+
runs-on: ubuntu-latest
59+
60+
steps:
61+
- uses: actions/checkout@v3
62+
63+
- name: Test format with clang format
64+
run: ./scripts/fmt.sh
65+

‎.github/workflows/tests.yml‎

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)