-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (65 loc) · 2.07 KB
/
package.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
68
69
70
71
72
73
74
75
76
77
name: Package
on: push
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
package:
name: Package
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
with:
submodules: recursive
lfs: true
- name: Install dependencies
run: |
sudo apt install ninja-build cmake wget
- name: Install GCC
run: |
wget https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz
tar -xf arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz
ls -la .
ls -la arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi
export PATH="$PATH:$GITHUB_WORKSPACE/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin"
arm-none-eabi-g++ --version
- name: Build firmware
run: |
export PATH="$PATH:$GITHUB_WORKSPACE/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin"
cmake --preset arm-gnu
cmake --build --preset release
- name: Make firmware archive
run: |
mkdir firmware
cp build/src/kyma/Release/kyma.bin firmware
cp build/src/hades/Release/hades.bin firmware
cp build/src/astra/Release/astra.bin firmware
- name: Upload coverage artifacts
uses: actions/upload-artifact@v3
with:
name: firmware
path: firmware
if-no-files-found: error
release:
name: Release
needs: package
if: contains(github.ref, 'tags/v')
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
with:
lfs: true
- name: Get Artifacts
uses: actions/download-artifact@v3
- name: Show artifacts
run: ls -la
- name: Create Release
uses: softprops/action-gh-release@v1
with:
prerelease: false
fail_on_unmatched_files: true
files: |
./LICENSE.txt
./firmware/**