forked from firefly/pixie-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.19 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
name: Build
on:
push:
workflow_dispatch:
inputs:
memory:
description: 'Max memory size available to docker'
required: true
default: '1g'
jobs:
build:
runs-on: ubuntu-latest
env:
MAX_MEMORY_SIZE: '100m'
steps:
- name: Checkout pixie-firmware
uses: actions/checkout@v3
with:
ref: chore/add-submodules
submodules: 'recursive'
- name: Setup node version
uses: actions/setup-node@v4
with:
node-version: 20
- name: Verify user
run: echo $UID
- name: Set maximum memory for 'workflow_dispatch' trigger
if: github.event_name == 'workflow_dispatch'
env:
MAX_MEMORY_SIZE: ${{ inputs.memory }}
run: echo $MAX_MEMORY_SIZE
- name: Build pixie-firmware using Docker
run: |
echo $MAX_MEMORY_SIZE
docker run -m $MAX_MEMORY_SIZE --rm -v $PWD:/project -w /project -u $UID -e HOME=/tmp espressif/idf idf.py build
- name: Verify assets
run: |
ls -l ${{ github.workspace }}/build/pixie.bin
ls -l ${{ github.workspace }}/build/bootloader/bootloader.bin
ls -l ${{ github.workspace }}/build/partition_table/partition-table.bin