This repository has been archived by the owner on Dec 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (59 loc) · 1.77 KB
/
ci.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
name: CI
on:
push:
branches:
- master*
pull_request:
branches:
- master*
jobs:
release:
runs-on: ubuntu-22.04
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
with:
path: firmware-uhk80
submodules: recursive
token: '${{ secrets.FIRMWARE80_BUILD }}'
- name: Install build dependencies
run: sudo apt-get install -y gcc-arm-none-eabi
- name: Install west
run: pip3 install --user -U west
- name: Install python dependencies of scripts
run: |
cd firmware-uhk80/scripts
pip install -r requirements.txt
- name: Setup Zephyr project
uses: zephyrproject-rtos/action-zephyr-setup@v1
with:
app-path: firmware-uhk80
toolchains: arm-zephyr-eabi
sdk-version: 0.16.8
- name: Git user setup
run: |
git config --global user.email "git-patch@uhk.com"
git config --global user.name "Git Patch"
- name: West patch
run: west patch
- name: West config
run: west config --local build.cmake-args -- "-Wno-dev"
- name: Use Node.js (.nvmrc)
uses: actions/setup-node@v4
with:
node-version-file: firmware-uhk80/scripts/.nvmrc
- name: Install node dependencies in scripts folder
run: |
cd firmware-uhk80/scripts
npm install
- name: Create firmware tarball
run: |
cd firmware-uhk80
scripts/make-release.mjs --allowSha
- name: Upload firmware artifacts
uses: actions/upload-artifact@v4
with:
name: firmware
path: firmware-uhk80/scripts/uhk-firmware-*.tar.gz
compression-level: 0
retention-days: 10