forked from stm32duino/Arduino_Core_STM32
-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (40 loc) · 960 Bytes
/
Cmake.yml
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
43
44
45
name: CMake config and build
on:
push:
branches:
- main
paths-ignore:
- .github/**
- '!.github/workflows/Cmake.yml'
- '*.json'
- '**.md'
- keywords.txt
- CI/**
- tools/**
pull_request:
paths-ignore:
- .github/**
- '!.github/workflows/Arduino-build.yml'
- '*.json'
- '**.md'
- keywords.txt
- CI/**
- tools/**
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
cmake:
name: Check CMake usage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Get latest CMake and Ninja
uses: lukka/get-cmake@latest
- name: Configure
run: |
mkdir build
cmake -S CI/build/examples/BareMinimum -B ./build -G Ninja
- name: Build example
working-directory: '${{ github.workspace }}/build'
run: ninja