Update prebuilt objects [skip actions]

This commit is contained in:
Sebastien L
2022-10-07 14:25:30 -04:00
parent 3f4df9a348
commit 08ff02dc3c
20 changed files with 883 additions and 703 deletions

View File

@@ -10,12 +10,17 @@ on:
description: 'Force a Release build. When not forced, the system will check for release word in the last commit message to trigger a release'
required: true
type: boolean
update_installer:
description: 'Skip the build and only update the web installer'
required: true
type: boolean
# push:
# branches:
# - '**4.3'
jobs:
bootstrap:
if: ${{ inputs.update_installer != true }}
name: Global setup
runs-on: ubuntu-latest
container:
@@ -98,6 +103,7 @@ jobs:
components/wifi-manager/webapp/dist/*
components/wifi-manager/webapp/*.cmake
build:
if: ${{ inputs.update_installer != true }}
runs-on: ubuntu-latest
container:
image: sle118/squeezelite-esp32-idfv43
@@ -191,16 +197,6 @@ jobs:
build/bootloader/bootloader.bin
build/partition_table/partition-table.bin
build_output.zip
- name: Save Last Build Parameters
if: ${{ needs.bootstrap.outputs.mock == 0 }}
uses: actions/upload-artifact@v3
with:
name: build_parms
path: |
build/flash_project_args
build/flasher_args.json
partitions.csv
sdkconfig
- name: Create Release
if: ${{ needs.bootstrap.outputs.release_flag == 1 && needs.bootstrap.outputs.mock == 0 }}
id: create_release
@@ -236,9 +232,10 @@ jobs:
asset_name: ${{ env.artifact_file_name }}
asset_content_type: application/octet-stream
update_web_installer:
name: Web Installer
if: ${{ needs.bootstrap.outputs.release_flag == 1 && needs.bootstrap.outputs.mock == 0 }}
needs: [build, bootstrap]
name: Update Web Installer After Release
if: ${{ ( always() && !cancelled() ) && ( ( inputs.update_installer == true ) || needs.bootstrap.outputs.release_flag == 1 && needs.bootstrap.outputs.mock == 0 ) }}
env:
WEB_INSTALLER: ${{ secrets.WEB_INSTALLER }}
runs-on: ubuntu-latest
container:
image: sle118/squeezelite-esp32-idfv43
@@ -247,13 +244,9 @@ jobs:
with:
fetch-depth: 0
submodules: true
- uses: actions/download-artifact@master
name: Restore last build
with:
name: build_parms
- name: Update Web Installer Project
run: |
. /opt/esp/python_env/idf4.3_py3.8_env/bin/activate
git config --global --add safe.directory /__w/squeezelite-esp32/squeezelite-esp32
build_tools.py manifest --flash_file "./build/flasher_args.json" --outdir "./bin_files" --manif_name "manifest" --max_count 3
build_tools.py pushinstaller --source "./bin_files" --manif_name "manifest" --target "web-installer" --url "https://github.com/sle118/squeezelite-esp32-installer.git" --artifacts "artifacts" --web_installer_branch "main" --token "${{secrets.github_token}}"
build_tools.py manifest --flash_file "/build/flash_project_args" --outdir "./bin_files" --manif_name "manifest" --max_count 3
build_tools.py pushinstaller --source "./bin_files" --manif_name "manifest" --target "web-installer" --url "https://github.com/sle118/squeezelite-esp32-installer.git" --artifacts "artifacts" --web_installer_branch "main" --token "${{env.WEB_INSTALLER}}"