mirror of https://github.com/arendst/Tasmota.git
Delete Tasmota_build_devel.yml.old
This commit is contained in:
parent
f0b5839408
commit
385cd45f60
|
@ -1,332 +0,0 @@
|
||||||
|
|
||||||
name: Build_development
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch: # Start a workflow
|
|
||||||
push:
|
|
||||||
branches: development
|
|
||||||
paths-ignore:
|
|
||||||
- '.github/**' # Ignore changes towards the .github directory
|
|
||||||
- '**.md' # Do no build if *.md files changes
|
|
||||||
|
|
||||||
# Ensures that only one deploy task per branch/environment will run at a time.
|
|
||||||
concurrency:
|
|
||||||
group: environment-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
be_solidify:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.repository == 'arendst/Tasmota'
|
|
||||||
continue-on-error: true
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: '3.x'
|
|
||||||
- name: Install clang compiler
|
|
||||||
run: |
|
|
||||||
sudo apt-get install -f clang
|
|
||||||
- name: Run coc
|
|
||||||
run: |
|
|
||||||
cd lib/libesp32/berry
|
|
||||||
./gen.sh
|
|
||||||
- name: Make Berry and Tasmota Berry code
|
|
||||||
run: |
|
|
||||||
cd lib/libesp32/berry
|
|
||||||
make
|
|
||||||
cd ../berry_tasmota
|
|
||||||
../berry/berry -s -g solidify_all.be
|
|
||||||
- name: Matter Berry Code
|
|
||||||
run: |
|
|
||||||
cd lib/libesp32/berry_matter
|
|
||||||
../berry/berry -s -g solidify_all.be
|
|
||||||
- name: LVGL Berry Code
|
|
||||||
run: |
|
|
||||||
cd lib/libesp32_lvgl/lv_binding_berry
|
|
||||||
../../libesp32/berry/berry -s -g solidify_all.be
|
|
||||||
- uses: jason2866/upload-artifact@v2.0.2
|
|
||||||
with:
|
|
||||||
name: '["berry_tasmota", "berry_matter", "berry_lvgl", "berry_header"]'
|
|
||||||
path: '["./lib/libesp32/berry_tasmota/src/solidify", "./lib/libesp32/berry_matter/src/solidify", "./lib/libesp32_lvgl/lv_binding_berry/src/solidify", "./lib/libesp32/berry/generate"]'
|
|
||||||
|
|
||||||
push_solidified:
|
|
||||||
needs: be_solidify
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.repository == 'arendst/Tasmota'
|
|
||||||
continue-on-error: true
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: '3.x'
|
|
||||||
- uses: jason2866/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: |
|
|
||||||
berry_tasmota
|
|
||||||
berry_matter
|
|
||||||
berry_lvgl
|
|
||||||
berry_header
|
|
||||||
path: |
|
|
||||||
./lib/libesp32/berry_tasmota/src/solidify
|
|
||||||
./lib/libesp32/berry_matter/src/solidify
|
|
||||||
./lib/libesp32_lvgl/lv_binding_berry/src/solidify
|
|
||||||
./lib/libesp32/berry/generate
|
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
|
||||||
with:
|
|
||||||
commit_message: Solidified Code updated
|
|
||||||
|
|
||||||
safeboot-images:
|
|
||||||
needs: push_solidified
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.repository == 'arendst/Tasmota'
|
|
||||||
continue-on-error: true
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
variant:
|
|
||||||
- tasmota32solo1-safeboot
|
|
||||||
- tasmota32-safeboot
|
|
||||||
- tasmota32c3-safeboot
|
|
||||||
- tasmota32c3cdc-safeboot
|
|
||||||
- tasmota32s2-safeboot
|
|
||||||
- tasmota32s2cdc-safeboot
|
|
||||||
- tasmota32s3-safeboot
|
|
||||||
- tasmota32s3cdc-safeboot
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
ref: development
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: '3.x'
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
pip install wheel
|
|
||||||
pip install -U platformio
|
|
||||||
- name: Run PlatformIO
|
|
||||||
run: platformio run -e ${{ matrix.variant }}
|
|
||||||
- name: Upload safeboot firmware artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: firmware_safeboot
|
|
||||||
path: ./build_output
|
|
||||||
|
|
||||||
base-images:
|
|
||||||
needs: push_solidified
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.repository == 'arendst/Tasmota'
|
|
||||||
continue-on-error: true
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
variant:
|
|
||||||
- tasmota
|
|
||||||
- tasmota-4M
|
|
||||||
- tasmota-minimal
|
|
||||||
- tasmota-display
|
|
||||||
- tasmota-ir
|
|
||||||
- tasmota-knx
|
|
||||||
- tasmota-lite
|
|
||||||
- tasmota-sensors
|
|
||||||
- tasmota-zbbridge
|
|
||||||
- tasmota-zigbee
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
ref: development
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: '3.x'
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
pip install wheel
|
|
||||||
pip install -U platformio
|
|
||||||
- name: Run PlatformIO
|
|
||||||
run: platformio run -e ${{ matrix.variant }}
|
|
||||||
- name: Upload firmware artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: firmware
|
|
||||||
path: ./build_output
|
|
||||||
|
|
||||||
base32-images:
|
|
||||||
needs: safeboot-images
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.repository == 'arendst/Tasmota'
|
|
||||||
continue-on-error: true
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
variant:
|
|
||||||
- tasmota32
|
|
||||||
- tasmota32-zbbrdgpro
|
|
||||||
- tasmota32-webcam
|
|
||||||
- tasmota32-bluetooth
|
|
||||||
- tasmota32-nspanel
|
|
||||||
- tasmota32-display
|
|
||||||
- tasmota32-ir
|
|
||||||
- tasmota32-lvgl
|
|
||||||
- tasmota32c3
|
|
||||||
- tasmota32c3cdc
|
|
||||||
- tasmota32s2
|
|
||||||
- tasmota32s2cdc
|
|
||||||
- tasmota32s3
|
|
||||||
- tasmota32s3cdc
|
|
||||||
- tasmota32solo1
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
ref: development
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: '3.x'
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
pip install wheel
|
|
||||||
pip install -U platformio
|
|
||||||
- name: Download safeboot firmwares
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: firmware_safeboot
|
|
||||||
path: ./firmware
|
|
||||||
- name: Display downloaded files
|
|
||||||
run: |
|
|
||||||
ls -R ./firmware/
|
|
||||||
- name: Run PlatformIO
|
|
||||||
run: platformio run -e ${{ matrix.variant }}
|
|
||||||
- name: Upload firmware artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: firmware
|
|
||||||
path: ./build_output
|
|
||||||
|
|
||||||
language-images:
|
|
||||||
needs: safeboot-images
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.repository == 'arendst/Tasmota'
|
|
||||||
continue-on-error: true
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
variant: [ tasmota, tasmota32 ]
|
|
||||||
language: [ AD, AF, BG, BR, CN, CZ, DE, ES, FR, FY, GR, HE, HU, IT, KO, NL, PL, PT, RO, RU, SE, SK, TR, TW, UK, VN ]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
ref: development
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: '3.x'
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
pip install wheel
|
|
||||||
pip install -U platformio
|
|
||||||
- name: Download safeboot firmwares
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: firmware_safeboot
|
|
||||||
path: ./firmware
|
|
||||||
- name: Display downloaded files
|
|
||||||
run: |
|
|
||||||
ls -R ./firmware/
|
|
||||||
- name: Run PlatformIO
|
|
||||||
run: platformio run -e ${{ matrix.variant }}-${{ matrix.language }}
|
|
||||||
- name: Upload language firmware artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: firmware
|
|
||||||
path: ./build_output
|
|
||||||
|
|
||||||
Upload:
|
|
||||||
needs: [base-images, base32-images, language-images]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
continue-on-error: true
|
|
||||||
steps:
|
|
||||||
- name: Download firmware
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: firmware
|
|
||||||
path: ./mv_firmware
|
|
||||||
- name: Downlaod safeboot firmware
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: firmware_safeboot
|
|
||||||
path: ./mv_firmware
|
|
||||||
- name: Display structure of downloaded files
|
|
||||||
run: ls -R
|
|
||||||
working-directory: ./mv_firmware
|
|
||||||
- name: Move firmware files in sub-folders
|
|
||||||
run: |
|
|
||||||
mkdir -p ./firmware/tasmota/languages
|
|
||||||
mkdir -p ./firmware/tasmota32/languages
|
|
||||||
mkdir -p ./firmware/map
|
|
||||||
[ ! -f ./mv_firmware/map/* ] || mv ./mv_firmware/map/* ./firmware/map/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota.* ] || mv ./mv_firmware/firmware/tasmota.* ./firmware/tasmota/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota-4M.* ] || mv ./mv_firmware/firmware/tasmota-4M.* ./firmware/tasmota/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota-sensors.* ] || mv ./mv_firmware/firmware/tasmota-sensors.* ./firmware/tasmota/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota-minimal.bin.gz ] || mv ./mv_firmware/firmware/tasmota-minimal.bin.gz ./firmware/tasmota/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota-lite.* ] || mv ./mv_firmware/firmware/tasmota-lite.* ./firmware/tasmota/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota-ir*.* ] || mv ./mv_firmware/firmware/tasmota-ir*.* ./firmware/tasmota/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota-display.* ] || mv ./mv_firmware/firmware/tasmota-display.* ./firmware/tasmota/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota-knx.* ] || mv ./mv_firmware/firmware/tasmota-knx.* ./firmware/tasmota/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota-zbbridge.* ] || mv ./mv_firmware/firmware/tasmota-zbbridge.* ./firmware/tasmota/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota-zigbee.* ] || mv ./mv_firmware/firmware/tasmota-zigbee.* ./firmware/tasmota/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota32.* ] || mv ./mv_firmware/firmware/tasmota32.* ./firmware/tasmota32/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota32solo1*.* ] || mv ./mv_firmware/firmware/tasmota32solo1*.* ./firmware/tasmota32/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota32-ir*.* ] || mv ./mv_firmware/firmware/tasmota32-ir*.* ./firmware/tasmota32/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota32-display.* ] || mv ./mv_firmware/firmware/tasmota32-display.* ./firmware/tasmota32/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota32-lvgl.* ] || mv ./mv_firmware/firmware/tasmota32-lvgl.* ./firmware/tasmota32/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota32-web*.* ] || mv ./mv_firmware/firmware/tasmota32-web*.* ./firmware/tasmota32/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota32-odroidgo.* ] || mv ./mv_firmware/firmware/tasmota32-odroidgo.* ./firmware/tasmota32/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota32-zbbrdgpro.* ] || mv ./mv_firmware/firmware/tasmota32-zbbrdgpro.* ./firmware/tasmota32/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota32-nspanel.* ] || mv ./mv_firmware/firmware/tasmota32-nspanel.* ./firmware/tasmota32/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota32-core2.* ] || mv ./mv_firmware/firmware/tasmota32-core2.* ./firmware/tasmota32/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota32-bluetooth.* ] || mv ./mv_firmware/firmware/tasmota32-bluetooth.* ./firmware/tasmota32/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota32c3*.* ] || mv ./mv_firmware/firmware/tasmota32c3*.* ./firmware/tasmota32/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota32s2*.* ] || mv ./mv_firmware/firmware/tasmota32s2*.* ./firmware/tasmota32/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota32s3*.* ] || mv ./mv_firmware/firmware/tasmota32s3*.* ./firmware/tasmota32/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota32-safeboot* ] || mv ./mv_firmware/firmware/tasmota32-safeboot* ./firmware/tasmota32/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota32-* ] || mv ./mv_firmware/firmware/tasmota32-* ./firmware/tasmota32/languages/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota32* ] || mv ./mv_firmware/firmware/tasmota32* ./firmware/tasmota32/
|
|
||||||
[ ! -f ./mv_firmware/firmware/tasmota-minimal.bin ] || rm -rf ./mv_firmware/firmware/tasmota-minimal.bin
|
|
||||||
[ ! -f ./mv_firmware/firmware/* ] || mv ./mv_firmware/firmware/* ./firmware/tasmota/languages/
|
|
||||||
- name: Display files to transfer
|
|
||||||
run: ls -R ./*
|
|
||||||
- name: Push tasmota files to tmp_copy repo
|
|
||||||
uses: Jason2866/copy_file_to_another_repo_action@http408_fix
|
|
||||||
env:
|
|
||||||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
|
||||||
with:
|
|
||||||
source_file: 'firmware'
|
|
||||||
destination_repo: 'arendst/tmp_copy'
|
|
||||||
destination_branch_create: 'firmware'
|
|
||||||
user_email: 'github-actions@github.com'
|
|
||||||
user_name: 'github-actions'
|
|
||||||
Start_final_copy:
|
|
||||||
needs: Upload
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Creat trigger.txt
|
|
||||||
run: |
|
|
||||||
echo ${GITHUB_SHA} &> trigger.txt
|
|
||||||
echo "$(<trigger.txt)"
|
|
||||||
- name: Push trigger.txt to start workflow copy in tmp repo
|
|
||||||
uses: Jason2866/copy_file_to_another_repo_action@http408_fix
|
|
||||||
env:
|
|
||||||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
|
||||||
with:
|
|
||||||
source_file: 'trigger.txt'
|
|
||||||
destination_repo: 'arendst/tmp_copy'
|
|
||||||
destination_branch: 'action-development'
|
|
||||||
user_email: 'github-actions@github.com'
|
|
||||||
user_name: 'github-actions'
|
|
||||||
- name: Dispatch worflow in Jason2866/Tasmota-firmware
|
|
||||||
run: |
|
|
||||||
curl -X POST https://api.github.com/repos/Jason2866/Tasmota-firmware/actions/workflows/fetch_deploy.yml/dispatches \
|
|
||||||
-H 'Accept: application/vnd.github.everest-preview+json' \
|
|
||||||
-u ${{ secrets.API_TOKEN_GITHUB }} \
|
|
||||||
--data '{"ref": "main"}'
|
|
Loading…
Reference in New Issue