Berry code solidifying with GH actions (#18611)

This commit is contained in:
Jason2866 2023-05-08 20:44:31 +02:00 committed by GitHub
parent faff39ca11
commit efc464e998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 112 additions and 2 deletions

View File

@ -15,7 +15,62 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
jobs: 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: safeboot-images:
needs: push_solidified
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'arendst/Tasmota' if: github.repository == 'arendst/Tasmota'
continue-on-error: true continue-on-error: true

View File

@ -14,7 +14,62 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
jobs: 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: safeboot-images:
needs: push_solidified
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'arendst/Tasmota' if: github.repository == 'arendst/Tasmota'
continue-on-error: true continue-on-error: true

View File

@ -72,7 +72,7 @@ be_local_closure(AXP192_get_bat_power, /* name */
1, /* has constants */ 1, /* has constants */
( &(const bvalue[ 2]) { /* constants */ ( &(const bvalue[ 2]) { /* constants */
/* K0 */ be_nested_str(read24), /* 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_get_bat_power,
&be_const_str_solidified, &be_const_str_solidified,

View File

@ -172,7 +172,7 @@ be_local_closure(AXP202_get_bat_power, /* name */
1, /* has constants */ 1, /* has constants */
( &(const bvalue[ 2]) { /* constants */ ( &(const bvalue[ 2]) { /* constants */
/* K0 */ be_nested_str(read24), /* 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_get_bat_power,
&be_const_str_solidified, &be_const_str_solidified,