Compare commits
2 Commits
8b14844ed1
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d9ea0ed82 | |||
| c2bd58a0ed |
@@ -24,23 +24,24 @@ jobs:
|
||||
echo "$TAG" > version.txt
|
||||
echo "Build version (tag): $TAG"
|
||||
|
||||
- name: Install Arduino CLI
|
||||
run: |
|
||||
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
|
||||
mv bin/arduino-cli /usr/local/bin/
|
||||
arduino-cli config init
|
||||
arduino-cli config add board_manager.additional_urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
|
||||
arduino-cli core update-index
|
||||
arduino-cli core install esp32:esp32
|
||||
|
||||
- name: Compile Arduino Sketch
|
||||
uses: arduino/compile-sketches@v1
|
||||
with:
|
||||
fqbn: esp32:esp32:esp32
|
||||
platforms: |
|
||||
- name: esp32:esp32
|
||||
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
|
||||
sketch-paths: |
|
||||
.
|
||||
cli-compile-flags: |
|
||||
- --export-binaries
|
||||
run: |
|
||||
mkdir -p build
|
||||
arduino-cli compile --fqbn esp32:esp32:esp32 --output-dir build .
|
||||
|
||||
- name: Stage Firmware Binaries
|
||||
run: |
|
||||
mkdir -p dist
|
||||
# The action exports the compiled .bin file into the build directory
|
||||
find build -name "*.bin" -exec cp {} dist/ \;
|
||||
cp build/*.bin dist/
|
||||
|
||||
- name: Create Flashing Instructions Document
|
||||
run: |
|
||||
@@ -56,13 +57,6 @@ jobs:
|
||||
TAG=${GITHUB_REF#refs/tags/}
|
||||
tar -czvf "esp32-aldl-${TAG}.tar.gz" -C dist .
|
||||
|
||||
- name: Upload Firmware Package
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: esp32-aldl-arduino-firmware-${{ github.sha }}
|
||||
path: esp32-aldl-*.tar.gz
|
||||
if-no-files-found: error
|
||||
|
||||
- name: Create Release and Upload Asset
|
||||
env:
|
||||
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user