build fix pią, 25 paź 2024, 15:27:34 CEST #70
Workflow file for this run
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
name: Build and commit snapcast binaries | |
on: | |
push: | |
branches: | |
- 'features/**' | |
paths-ignore: | |
- 'installer/**' | |
- 'doc/**' | |
- 'docs/**' | |
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 | |
steps: | |
- name: Checkout code | |
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/bin/$config | |
cp build/snapclient.bin ./docs/artifacts/bin/$config/$config-snapclient-$datestring-snapclient.bin | |
cp build/storage.bin ./docs/artifacts/bin/$config/$config-snapclient-$datestring-storage.bin | |
cp build/ota_data_initial.bin ./docs/artifacts/bin/$config/$config-snapclient-$datestring-ota_data_initial.bin | |
cp build/bootloader/bootloader.bin ./docs/artifacts/bin/$config/$config-snapclient-$datestring-bootloader.bin | |
cp build/partition_table/partition-table.bin ./docs/artifacts/bin/$config/$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 | |
- run: | | |
git add ./docs/artifacts | |
git commit -m "Latest binaries by github-actions" | |
git push origin HEAD:$GITHUB_REF |