Skip to content

Commit f17548f

Browse files
committed
ci: craate new workflow to test cmake
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 62eabec commit f17548f

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Diff for: .github/workflows/Cmake.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CMake config and build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
jobs:
11+
cmake:
12+
name: Check CMake usage
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@main
18+
19+
- name: Get latest CMake and Ninja
20+
uses: lukka/get-cmake@latest
21+
22+
- name: Configure
23+
run: |
24+
mkdir build
25+
cd build
26+
cmake -S ${{ env.GITHUB_WORKSPACE }}/CI/build/examples/BareMinimum -B . -G Ninja
27+
28+
- name: Build example
29+
working-directory: '${{ env.GITHUB_WORKSPACE }}/build'
30+
run: ninja

0 commit comments

Comments
 (0)