mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-27 19:57:38 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
129 lines
4.0 KiB
YAML
129 lines
4.0 KiB
YAML
# Checks whether the pushed commit can be build with PIO. Only triggered on normal push to the mega branch without tag and with pull requests targeting mega
|
|
|
|
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [mega]
|
|
tags-ignore: ['**']
|
|
paths-ignore:
|
|
- 'dist/Release_notes.txt'
|
|
- 'docs/**'
|
|
pull_request:
|
|
branches: [mega]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
documentation:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.13'
|
|
- name: Build documentation
|
|
run: |
|
|
cd docs
|
|
sudo apt install imagemagick zip
|
|
pip install uv
|
|
uv pip install --system -r requirements.txt
|
|
python ./builds_overview.py
|
|
make html
|
|
cd ..
|
|
zip -r -qq ESPEasy_docs.zip docs/build/*
|
|
- uses: actions/upload-artifact@v7
|
|
with:
|
|
name: Documentation
|
|
path: ESPEasy_docs.zip
|
|
generate-matrix:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.13'
|
|
- id: set-matrix
|
|
run: |
|
|
pip install uv
|
|
uv pip install --system pioarduino
|
|
python tools/ci/generate-matrix.py
|
|
|
|
build:
|
|
needs: generate-matrix
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.13'
|
|
- name: Dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt install binutils build-essential libffi-dev libgit2-dev
|
|
pip install uv
|
|
uv pip install --system -r requirements.txt
|
|
pio pkg update -e ${{ matrix.env }}
|
|
- name: Get current date
|
|
id: date
|
|
run: |
|
|
echo "builddate=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
|
|
- name: Build and archive
|
|
id: build-and-archive
|
|
env:
|
|
CHIP: ${{ matrix.chip }}
|
|
ENV: ${{ matrix.env }}
|
|
run: |
|
|
python tools/ci/build-and-archive.py
|
|
- id: string
|
|
uses: Entepotenz/change-string-case-action-min-dependencies@v1
|
|
with:
|
|
string: ${{ matrix.chip }}
|
|
- uses: actions/upload-artifact@v7
|
|
with:
|
|
# FIXME Workaround to (temporarily) not use # in the artifact name, see https://github.com/actions/upload-artifact/issues/473
|
|
name: Bin-${{ steps.string.outputs.uppercase }}-${{ matrix.env }}-${{ steps.date.outputs.builddate }}_PR_${{ github.event.number }}_${{ github.run_id }} # Sort by ESP type
|
|
path: |
|
|
bin
|
|
if-no-files-found: ignore
|
|
|
|
# Package all ESP82xx and ESP32 into a single ESPEasy-all-Binaries-<date>_PR#<pr_nr>_<runnr>.zip
|
|
combine_package:
|
|
needs: build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.13'
|
|
- name: Get current date
|
|
id: date
|
|
run: |
|
|
echo "builddate=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
|
|
- name: Download all artifacts
|
|
uses: actions/download-artifact@v8
|
|
with:
|
|
path: artifacts/Binaries/bin/
|
|
pattern: Bin-*
|
|
merge-multiple: true
|
|
- name: List all files in the package for single-archive upload
|
|
run: |
|
|
cd artifacts/Binaries/
|
|
ls -R
|
|
- uses: actions/upload-artifact@v7
|
|
with:
|
|
# FIXME Workaround to (temporarily) not use # in the artifact name, see https://github.com/actions/upload-artifact/issues/473
|
|
name: ESPEasy-all-Binaries-${{ steps.date.outputs.builddate }}_PR_${{ github.event.number }}_${{ github.run_id }}
|
|
path: |
|
|
artifacts/Binaries/
|
|
if-no-files-found: ignore
|