mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-19 16:56:34 +00:00
Berry code solidifying with GH actions (#18611)
This commit is contained in:
parent
faff39ca11
commit
efc464e998
55
.github/workflows/Tasmota_build_devel.yml
vendored
55
.github/workflows/Tasmota_build_devel.yml
vendored
@ -15,7 +15,62 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
be_solidify:
|
||||
runs-on: ubuntu-20.04
|
||||
if: github.repository == 'arendst/Tasmota'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- 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
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: berry_matter
|
||||
path: ./lib/libesp32/berry_matter/src/solidify
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: berry_tasmota
|
||||
path: ./lib/libesp32/berry_tasmota/src/solidify
|
||||
|
||||
push_solidified:
|
||||
needs: be_solidify
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'arendst/Tasmota'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- name: Remove old solidified code
|
||||
run: |
|
||||
rm ./lib/libesp32/berry_matter/src/solidify/*
|
||||
rm ./lib/libesp32/berry_tasmota/src/solidify/*
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: berry_matter
|
||||
path: ./lib/libesp32/berry_matter/src/solidify
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: berry_tasmota
|
||||
path: ./lib/libesp32/berry_tasmota/src/solidify
|
||||
- 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
|
||||
|
55
.github/workflows/Tasmota_build_master.yml
vendored
55
.github/workflows/Tasmota_build_master.yml
vendored
@ -14,7 +14,62 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
be_solidify:
|
||||
runs-on: ubuntu-20.04
|
||||
if: github.repository == 'arendst/Tasmota'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- 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
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: berry_matter
|
||||
path: ./lib/libesp32/berry_matter/src/solidify
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: berry_tasmota
|
||||
path: ./lib/libesp32/berry_tasmota/src/solidify
|
||||
|
||||
push_solidified:
|
||||
needs: be_solidify
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'arendst/Tasmota'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- name: Remove old solidified code
|
||||
run: |
|
||||
rm ./lib/libesp32/berry_matter/src/solidify/*
|
||||
rm ./lib/libesp32/berry_tasmota/src/solidify/*
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: berry_matter
|
||||
path: ./lib/libesp32/berry_matter/src/solidify
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: berry_tasmota
|
||||
path: ./lib/libesp32/berry_tasmota/src/solidify
|
||||
- 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
|
||||
|
@ -72,7 +72,7 @@ be_local_closure(AXP192_get_bat_power, /* name */
|
||||
1, /* has constants */
|
||||
( &(const bvalue[ 2]) { /* constants */
|
||||
/* K0 */ be_nested_str(read24),
|
||||
/* K1 */ be_const_real_hex(0x3A102DE1),
|
||||
/* K1 */ be_const_real_hex(0x3A102DE0),
|
||||
}),
|
||||
&be_const_str_get_bat_power,
|
||||
&be_const_str_solidified,
|
||||
|
@ -172,7 +172,7 @@ be_local_closure(AXP202_get_bat_power, /* name */
|
||||
1, /* has constants */
|
||||
( &(const bvalue[ 2]) { /* constants */
|
||||
/* K0 */ be_nested_str(read24),
|
||||
/* K1 */ be_const_real_hex(0x3A102DE1),
|
||||
/* K1 */ be_const_real_hex(0x3A102DE0),
|
||||
}),
|
||||
&be_const_str_get_bat_power,
|
||||
&be_const_str_solidified,
|
||||
|
Loading…
x
Reference in New Issue
Block a user