-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.08 KB
/
cmake.yml
File metadata and controls
42 lines (39 loc) · 1.08 KB
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: CMake CI
on:
push:
branches: [master]
pull_request:
branches: [master]
paths:
- "CMakeLists.txt"
- "cmake/**"
- "include/**"
- "src/**"
- "test/**"
- ".github/actions/**"
- ".github/workflows/cmake.yml"
env:
CXX: /usr/bin/clang++-18
CC: /usr/bin/clang-18
CMAKE_URL: https://cmake.org/files/v3.15/cmake-3.15.7-Linux-x86_64.sh
CMAKE_VERSION: 3.15.7
jobs:
min-req:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- name: Install cmake
run: |
wget ${{ env.CMAKE_URL }}
chmod +x cmake-${{ env.CMAKE_VERSION }}-Linux-x86_64.sh
./cmake-${{ env.CMAKE_VERSION }}-Linux-x86_64.sh --skip-license
- name: Build & Install
run: |
cmake -S . -B build -D ASYNCPP_BUILD_TEST=OFF
cmake --build build
cmake --install build --prefix install
- name: Run Tests
run: |
cmake -S . -B test_build -D CMAKE_PREFIX_PATH=../install
cmake --build test_build
ctest --test-dir test_build --no-tests=error