forked from CarlosDerSeher/snapclient
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build fix pią, 25 paź 2024, 15:34:33 CEST
- Loading branch information
Andriy Malyshenko
committed
Oct 25, 2024
1 parent
be3c76d
commit 29b754d
Showing
1 changed file
with
22 additions
and
41 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,20 +12,6 @@ on: | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
config_file: | ||
- configs/sdkconfig.hifi-esp | ||
- configs/sdkconfig.hifi-esparagus | ||
# - configs/sdkconfig.loud-esp | ||
# - configs/sdkconfig.loud-esparagus | ||
# - configs/sdkconfig.louder-esp | ||
# - configs/sdkconfig.louder-esparagus | ||
# - configs/sdkconfig.esp-ai-thinker | ||
# - configs/sdkconfig.lyra-t-mini | ||
# - configs/sdkconfig.lyra-t-4.2 | ||
# - configs/sdkconfig.lyra-t-4.3 | ||
# - configs/sdkconfig.korvo | ||
container: | ||
image: espressif/idf:v5.1.1 | ||
|
||
|
@@ -34,41 +20,36 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'true' | ||
|
||
- run: | | ||
git config --global --add safe.directory /__w/esparagus-snapclient/esparagus-snapclient | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
- run: | | ||
datestring=$(date '+%Y-%m-%d') | ||
config_file=${{ matrix.config_file }} | ||
config=${config_file#configs/sdkconfig.} | ||
if [[ "$config" == "old" ]]; then | ||
echo "Skipping $config_file" | ||
exit 0 | ||
fi | ||
echo Building $config_file | ||
cp ${{ matrix.config_file }} sdkconfig | ||
. $IDF_PATH/export.sh | ||
idf.py build | ||
mkdir -p ./docs/artifacts/binaries | ||
cp build/snapclient.bin ./docs/artifacts/binaries/$config-snapclient-$datestring-snapclient.bin | ||
cp build/storage.bin ./docs/artifacts/binaries/$config-snapclient-$datestring-storage.bin | ||
cp build/ota_data_initial.bin ./docs/artifacts/binaries/$config-snapclient-$datestring-ota_data_initial.bin | ||
cp build/bootloader/bootloader.bin ./docs/artifacts/binaries/$config-snapclient-$datestring-bootloader.bin | ||
cp build/partition_table/partition-table.bin ./docs/artifacts/binaries/$config-snapclient-$datestring-partition-table.bin | ||
sed -e "s/latest/$datestring/g" ./docs/artifacts/templates/manifest-$config-template.json > ./docs/artifacts/manifest-$config-latest.json | ||
- run: | | ||
git pull --rebase origin HEAD:$GITHUB_REF | ||
for config_file in configs/sdkconfig.*; do | ||
config=${config_file#configs/sdkconfig.} | ||
if [[ "$config" == "old" ]]; then | ||
continue | ||
fi | ||
echo Building $config | ||
cp $config_file sdkconfig | ||
idf.py build | ||
cp build/snapclient.bin ./docs/artifacts/binaries/$config-snapclient-$datestring-snapclient.bin | ||
cp build/storage.bin ./docs/artifacts/binaries/$config-snapclient-$datestring-storage.bin | ||
cp build/ota_data_initial.bin ./docs/artifacts/binaries/$config-snapclient-$datestring-ota_data_initial.bin | ||
cp build/bootloader/bootloader.bin ./docs/artifacts/binaries/$config-snapclient-$datestring-bootloader.bin | ||
cp build/partition_table/partition-table.bin ./docs/artifacts/binaries/$config-snapclient-$datestring-partition-table.bin | ||
sed -e "s/latest/$datestring/g" ./docs/artifacts/templates/manifest-$config-template.json > ./docs/artifacts/manifest-$config-latest.json | ||
done | ||
- run: | | ||
git add ./docs/artifacts | ||
git commit -m "Latest binaries by github-actions" | ||
|