-
Notifications
You must be signed in to change notification settings - Fork 8
67 lines (53 loc) · 1.83 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: CMake
on:
workflow_dispatch:
push:
branches: [ "master", "dev" ]
pull_request:
branches: [ "master" ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
cmake_presets:
- "SCan-Sigma"
- "SCan-2CAN"
- "SCan-CSat"
- "SCan-2CAN30"
- "SCan-2CAN2LIN"
- "SCanBoot-Sigma"
- "SCanBoot-CSat"
- "SCanBoot-2CAN2LIN"
steps:
- uses: actions/checkout@v3
- name: Install latest gcc-arm-none-eabi
uses: carlosperate/arm-none-eabi-gcc-action@v1
- name: Install python converter dependencies
run: |
python -m pip install --upgrade pip
pip install intelhex
- name: Run CMake
uses: lukka/run-cmake@v10
with:
# This is the default path to the CMakeLists.txt along side the
# CMakePresets.json. Change if you need have CMakeLists.txt and CMakePresets.json
# located elsewhere.
# cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
# This is the name of the CMakePresets.json's configuration to use to generate
# the project files. This configuration leverages the vcpkg.cmake toolchain file to
# run vcpkg and install all dependencies specified in vcpkg.json.
configurePreset: ${{ matrix.cmake_presets }}
# This is the name of the CMakePresets.json's configuration to build the project.
buildPreset: ${{ matrix.cmake_presets }}
- name: Upload generated binaries
uses: actions/upload-artifact@v3
with:
name: binaries
path: |
build/${{ matrix.cmake_presets }}.dfu
build/${{ matrix.cmake_presets }}.hex
if-no-files-found: ignore