Skip to content

Commit 9283782

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

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Diff for: .github/workflows/Cmake.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
cmake -S CI/build/examples/BareMinimum -B ./build -G Ninja
26+
27+
- name: Build example
28+
working-directory: '${{ github.workspace }}/build'
29+
run: ninja

0 commit comments

Comments
 (0)