-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathaction.yml
More file actions
55 lines (53 loc) · 1.71 KB
/
Copy pathaction.yml
File metadata and controls
55 lines (53 loc) · 1.71 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
name: Setup Build Variant Composite Action
description: Variant build actions for Meshtastic PlatformIO steps
author: meshtastic
inputs:
pio_platform:
description: The PlatformIO platform to build (esp32, nrf52, portduino, rp2xx0, stm32wl)
required: true
pio_env:
description: The PlatformIO environment to build
required: true
pio_target:
description: The PlatformIO run target (default is 'build')
required: false
default: build
# Deprecated
ota_firmware_source:
description: Deprecated - The source binary for OTA firmware
required: false
default: ""
# Deprecated
ota_firmware_target:
description: Deprecated - The target binary for OTA firmware
required: false
default: ""
pio_token:
description: PlatformIO token - Use to help with rate-limiting issues on PlatformIO's registry (optional)
required: false
default: ""
runs:
using: composite
steps:
- id: build_meshtastic
run: |
docker run --rm \
--env GITHUB_ACTIONS \
--env XDG_CACHE_HOME \
--env PLATFORMIO_BUILD_DIR \
--env MT_ENV \
--env MT_PLATFORM \
--env MT_TARGET \
--env MT_VERBOSE \
--env PIO_TOKEN \
-v $GITHUB_WORKSPACE:/workspace \
ghcr.io/meshtastic/gh-action-firmware:master-${{ inputs.pio_platform }}
shell: bash
env:
PLATFORMIO_BUILD_DIR: /workspace/.pio/build
MT_ENV: ${{ inputs.pio_env }}
MT_PLATFORM: ${{ inputs.pio_platform }}
MT_TARGET: ${{ inputs.pio_target }}
# Enable verbose output if "debug logging" is enabled for the run.
MT_VERBOSE: ${{ runner.debug || 0 }}
PIO_TOKEN: ${{ inputs.pio_token }}