-
Notifications
You must be signed in to change notification settings - Fork 152
48 lines (48 loc) · 1.3 KB
/
build.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
name: build-target
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Build web dist
working-directory: ./main/http_server/axe-os
run: |
npm ci
npm run build
- name: esp-idf build
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: v5.1
target: esp32s3
command: GITHUB_ACTIONS="true" idf.py build
path: '.'
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies
- run: pip install esptool
- name: "Create factory/merged image"
run: "./merge_bin.sh ./esp-miner-merged.bin"
- name: upload esp-miner-merged.bin
uses: actions/upload-artifact@v3
with:
name: esp-miner-factory.bin
path: ./esp-miner-merged.bin
- name: upload esp-miner.bin
uses: actions/upload-artifact@v3
with:
name: esp-miner-ota.bin
path: ./build/esp-miner.bin
- name: upload www.bin
uses: actions/upload-artifact@v3
with:
name: www.bin
path: ./build/www.bin