-
Notifications
You must be signed in to change notification settings - Fork 124
82 lines (74 loc) · 2.09 KB
/
build.yml
File metadata and controls
82 lines (74 loc) · 2.09 KB
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
name: Build Firmware
on:
pull_request:
branches:
- main
paths:
- 'ats-mini/**'
- '.github/workflows/build.yml'
push:
# tags:
# - 'v*'
# branches:
# - main
paths:
- 'ats-mini/**'
- '.github/workflows/build.yml'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions: {}
strategy:
fail-fast: true
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Compile firmware
uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
sketch-paths: |
- ats-mini
fqbn: esp32:esp32:esp32s3
cli-compile-flags: |
- --profile
- esp32s3
- --export-binaries
- --board-options
- CDCOnBoot=cdc
- --board-options
- FlashSize=8M
- --board-options
- PSRAM=disabled
- --board-options
- CPUFreq=80
- --board-options
- USBMode=hwcdc
- --board-options
- FlashMode=qio
- --board-options
- PartitionScheme=default_8MB
- --board-options
- DebugLevel=none
- --warnings
- none
enable-deltas-report: true
enable-warnings-report: true
- name: Save sketches report as workflow artifact
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
path: sketches-reports
name: sketches-report
- name: Prepare compiled artifact
run: |
mkdir -p artifact && mv ats-mini/build/esp32.esp32.esp32s3/*.ino.bin ats-mini/build/esp32.esp32.esp32s3/*.ino.*.bin artifact/
- name: Get commit hash
id: slug
run: echo "sha7=$(echo "${GITHUB_SHA}" | cut -c1-7)" >> $GITHUB_OUTPUT
- name: Upload compiled artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-${{ steps.slug.outputs.sha7 }}
path: artifact