Loading files
name: Setup
description: Setup Node.js, ModdableSDK and ESP-IDF environments
inputs:
target-branch:
description: "Target branch to setup environment"
required: false
default: ""
runs:
using: composite
steps:
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ./firmware/node_modules
key: ${{ runner.os }}-npm-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
working-directory: ./firmware
shell: bash
- name: install Moddable
run: |
sudo apt-get update
if [ -z "${{ inputs.target-branch }}" ]; then
npm run setup
else
npm run setup -- --target-branch ${{ inputs.target-branch }}
fi
working-directory: ./firmware
shell: bash
- name: install ESP32
run: |
sudo apt-get update
source $HOME/.local/share/xs-dev-export.sh && npm run setup -- --device=esp32
working-directory: ./firmware
shell: bash
21d738197This file is pinned to the selected release. Download the original to open it in your design tool.