forked from Niuslar/Multichannel-Temperature-Control
-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (60 loc) · 2.19 KB
/
Copy pathc-cpp.yml
File metadata and controls
65 lines (60 loc) · 2.19 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: STM32 C/C++ CI
on:
push:
branches: [develop, master]
pull_request:
branches: [develop, master]
jobs:
doxygen:
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Generate Doxygen Doc
run: docker run --rm -v $PWD:/stm32-app $(docker build -q -f Doxygen/Dockerfile .) /bin/sh -c "doxygen Doxygen/config/Doxyfile"
- uses: actions/upload-artifact@v3
with:
name: Doxygen Doc
path: Doxygen/html
build:
runs-on: ubuntu-latest
container: niuslar/stm32-cubeide-headless:latest
steps:
- uses: actions/checkout@v3
- name: Build App
run: |
chmod +x /opt/st/stm32cubeide_1.9.0/headless-build.sh
cd /opt/st/stm32cubeide_1.9.0
./headless-build.sh -data /workspace -import /__w/Multichannel-Temperature-Control/Multichannel-Temperature-Control -cleanBuild 'Multichannel temperature sensor' -markerType cdt || { echo "Build Failed"; exit 1; }
- uses: actions/upload-artifact@v3
with:
name: debug_build
path: /__w/Multichannel-Temperature-Control/Multichannel-Temperature-Control/Debug/Multichannel\ temperature\ sensor.bin
- uses: actions/upload-artifact@v3
with:
name: release_build
path: /__w/Multichannel-Temperature-Control/Multichannel-Temperature-Control/Release/Multichannel\ temperature\ sensor.bin
flash_debug:
runs-on: self-hosted
needs: build
steps:
- name: Download debug artifact
uses: actions/download-artifact@v3
with:
name: debug_build
- shell: bash
run: |
python3 ../../../stm32_flash_loader.py "Multichannel temperature sensor.bin"
rm "Multichannel temperature sensor.bin"
flash_release:
runs-on: self-hosted
needs: build
steps:
- name: Download release artifact
uses: actions/download-artifact@v3
with:
name: release_build
- shell: bash
run: |
python3 ../../../stm32_flash_loader.py "Multichannel temperature sensor.bin"
rm "Multichannel temperature sensor.bin"