-
Notifications
You must be signed in to change notification settings - Fork 18
106 lines (92 loc) · 2.5 KB
/
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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: firmware
# For now, this workflow is used for checks, not for releases.
# So all release stuff is commented out.
on:
push:
branches:
- main
# tags:
# - 'v[0-9]+.[0-9]+.[0-9]+'
pull_request: {}
permissions:
contents: write
jobs:
keira:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
./firmware/keira/.pio
key: ${{ runner.os }}-keira
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build PlatformIO Project
working-directory: ./firmware/keira
run: pio run -e v2
- name: Copy firmware
working-directory: ./firmware/keira
run: |
cp .pio/build/v2/firmware.bin keira.bin
# - name: Upload firmware artifact
# uses: actions/upload-artifact@v4
# with:
# name: keira-firmware
# path: ./firmware/keira/keira.bin
doom:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
./firmware/doom/.pio
key: ${{ runner.os }}-doom
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build PlatformIO Project
working-directory: ./firmware/doom
run: pio run -e v2
- name: Copy firmware
working-directory: ./firmware/doom
run: |
cp .pio/build/v2/firmware.bin doom.bin
# - name: Upload firmware artifact
# uses: actions/upload-artifact@v4
# with:
# name: doom-firmware
# path: ./firmware/doom/doom.bin
# release:
# runs-on: ubuntu-latest
# needs:
# - keira
# - doom
#
# steps:
# - name: Download keira artifact
# uses: actions/download-artifact@v4
# with:
# name: keira-firmware
# path: .
# - name: Download doom artifact
# uses: actions/download-artifact@v4
# with:
# name: doom-firmware
# path: .
# - name: Release
# uses: softprops/action-gh-release@v2
# with:
# files: |
# keira.bin
# doom.bin