Skip to content

Commit 940319b

Browse files
committed
Build images for distribution with GitHub Actions.
1 parent 21dd11b commit 940319b

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: mruby-esp32-build
2+
on:
3+
push:
4+
branches: [master]
5+
permissions:
6+
contents: write
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: checkout repo
12+
uses: actions/checkout@v2
13+
with:
14+
submodules: 'recursive'
15+
- name: build
16+
uses: espressif/esp-idf-ci-action@v1
17+
with:
18+
esp_idf_version: v5.0
19+
path: '.'
20+
- name: merge bin
21+
uses: espressif/esp-idf-ci-action@v1
22+
with:
23+
esp_idf_version: v5.0
24+
path: '.'
25+
command: |
26+
esptool.py --chip esp32 merge_bin \
27+
-o mruby-esp32-flash.bin --flash_mode dio --flash_size keep \
28+
0x1000 build/bootloader/bootloader.bin \
29+
0x8000 build/partition_table/partition-table.bin \
30+
0x10000 build/mruby-esp32.bin \
31+
0x190000 build/storage.bin
32+
- name: set variables
33+
id: set_variables
34+
run: echo "suffix=$(date +'%Y%m%d_%H%M%S')" >> $GITHUB_OUTPUT
35+
- name: create release
36+
id: create_release
37+
uses: elgohr/Github-Release-Action@v4
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
with:
41+
title: ${{ steps.set_variables.outputs.suffix }}
42+
- name: upload release asset
43+
id: upload-release-asset
44+
uses: xresloader/upload-to-github-release@v1
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
with:
48+
file: ./mruby-esp32-flash.bin
49+
tags: false
50+
draft: false
51+
update_latest_release: true

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy