-
Notifications
You must be signed in to change notification settings - Fork 10
32 lines (28 loc) · 1.09 KB
/
build-release.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
name: Build Firmware
on:
workflow_dispatch:
push:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout Burnmaster-Firmware
uses: actions/checkout@v3
with:
path: Burnmaster-Firmware
- name: Install EmeddedStudio
run: |
wget https://www.segger.com/downloads/embedded-studio/Setup_EmbeddedStudio_ARM_v622a_linux_x64.tar.gz
tar -xvf Setup_EmbeddedStudio_ARM_v622a_linux_x64.tar.gz
cd arm_segger_embedded_studio_v622a_linux_x64/
sudo ./install_segger_embedded_studio --minimal-install --accept-license --copy-files-to .
- name: Compile Firmware
run: |
cd arm_segger_embedded_studio_v622a_linux_x64/bin
./emBuild -config "Debug" ${{ github.workspace }}//Burnmaster-Firmware/CartReaderApp/GDCartReader.emProject
- uses: actions/upload-artifact@v3
with:
name: Burnmaster-Firmware
path: ${{ github.workspace }}//Burnmaster-Firmware/CartReaderApp/Output/Debug/Exe/GDCartReader.bin