generated from RCMgames/RCMv2
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.24 KB
/
build.yaml
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
name: compile
on:
workflow_dispatch:
concurrency:
group: Compile
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build PlatformIO Project
run: pio run
- name: build littlefs
run: |
pwd
ls
pio run --target buildfs
- name: copy firmware
run: |
pwd
ls
cd .pio/build
for folder in ./*; do
if [ -d "$folder" ]; then
echo "Folder is $folder"
mkdir ../../docs/programmer/$folder
cp -rf $folder/firmware.bin ../../docs/programmer/$folder/firmware.bin
cp -rf $folder/LittleFS.bin ../../docs/programmer/$folder/LittleFS.bin
fi
done
pwd
ls
cd ../../docs/programmer
pwd
ls