.gitlab-ci.yml: Fix the issue that release job does not trigger. #91
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: m5stack port | |
on: | |
push: {} | |
pull_request: | |
paths: | |
- '.github/workflows/*.yml' | |
- 'tools/**' | |
- 'micropython/py/**' | |
- 'micropython/extmod/**' | |
- 'micropython/lib/**' | |
- 'micropython/drivers/**' | |
- 'm5stack/**' | |
- "third-party/**" | |
workflow_dispatch: {} | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
outputs: | |
cache-hit: ${{ steps.cache-esp-idf.outputs.cache-hit }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y git wget flex bison gperf quilt python3 python3-pip \ | |
python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0 | |
- name: Cache esp-idf | |
uses: actions/cache@v4 | |
id: cache-esp-idf | |
with: | |
path: | | |
~/.espressif | |
${{ github.workspace }}/esp-idf | |
key: ${{ runner.os }}-idf-v5.4.1 | |
- name: Install ESP-IDF | |
if: steps.cache-esp-idf.outputs.cache-hit != 'true' | |
run: | | |
git clone --depth=1 -b $IDF_VERSION https://github.com/espressif/esp-idf.git | |
./esp-idf/install.sh | |
env: | |
IDF_VERSION: "v5.4.1" | |
- name: Setup environment | |
run: | | |
source tools/ci.sh && ci_esp32_idf541_setup | |
source esp-idf/export.sh | |
pip install future | |
make -C m5stack submodules | |
make -C m5stack patch | |
make -C m5stack littlefs | |
build: | |
needs: setup | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
board: | |
- M5STACK_AirQ | |
- M5STACK_Atom_Echo | |
- M5STACK_Atom_Lite | |
- M5STACK_Atom_Matrix | |
- M5STACK_AtomS3 | |
- M5STACK_AtomS3_Lite | |
- M5STACK_AtomS3R | |
- M5STACK_AtomS3R_CAM | |
- M5STACK_AtomS3U | |
- M5STACK_AtomU | |
- M5STACK_Basic | |
- M5STACK_Basic_4MB | |
- M5STACK_Capsule | |
- M5STACK_Cardputer | |
- M5STACK_Core2 | |
- M5STACK_CoreInk | |
- M5STACK_CoreS3 | |
- M5STACK_Dial | |
- M5STACK_DinMeter | |
- M5STACK_Fire | |
- M5STACK_NanoC6 | |
- M5STACK_Paper | |
- M5STACK_PaperS3 | |
- M5STACK_Stamp_PICO | |
- M5STACK_StamPLC | |
- M5STACK_StampS3 | |
- M5STACK_Station | |
- M5STACK_StickC | |
- M5STACK_StickC_PLUS | |
- M5STACK_StickC_PLUS2 | |
- M5STACK_Tab5 | |
- M5STACK_Tough | |
max-parallel: 3 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y git wget flex bison gperf quilt python3 python3-pip \ | |
python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0 | |
- name: Restore ESP-IDF cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.espressif | |
${{ github.workspace }}/esp-idf | |
key: ${{ runner.os }}-idf-v5.4.1 | |
- name: Prepare environment | |
run: | | |
source esp-idf/export.sh | |
- name: Build ${{ matrix.board }} | |
run: | | |
source esp-idf/export.sh | |
pip install future | |
make -C m5stack submodules | |
make -C m5stack patch | |
make -C m5stack littlefs | |
make -C m5stack BOARD=${{ matrix.board }} pack_all | |
- name: Upload firmware artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: firmware-${{ matrix.board }} | |
path: m5stack/build-${{ matrix.board }}/uiflow-*-*.bin |