-
Notifications
You must be signed in to change notification settings - Fork 28
49 lines (41 loc) · 1.22 KB
/
build_firmware.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
name: Keyboard Firmware CI
on:
push:
branches: [ main ]
paths:
- '.github/workflows/build_firmware.yml'
- 'firmware/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/build_firmware.yml'
- 'firmware/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Cache toolchain
id: cache
uses: actions/cache@v1
with:
path: /opt/riscv64-unknown-elf
key : ${{runner.OS}}-riscv64-unknown-elf-caches-v1-${{ hashFiles('bin/riscv64-unknown-elf-gcc') }}
- name: Download toolchain
if: steps.cache.outputs.cache-hit != 'true'
run: |
git clone https://gitee.com/bouffalolab/toolchain_gcc_sifive_linux.git
mv -f toolchain_gcc_sifive_linux /opt/riscv64-unknown-elf
- name: Make firmware
run: |
PATH="$PATH:/opt/riscv64-unknown-elf/bin"
cd firmware/bl_mcu_sdk
make build BOARD=sipeed_keyboard APP=sipeed_keyboard_68 APP_DIR=../keyboard
- name: Archive keyboard firmware
uses: actions/upload-artifact@v2
with:
name: sipeed_keyboard_firmware
path: |
firmware/bl_mcu_sdk/out/*