mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-11 14:07:11 +03:00
Update BuildTest.yml [skip actions]
This commit is contained in:
45
.github/workflows/BuildTest.yml
vendored
45
.github/workflows/BuildTest.yml
vendored
@@ -1,3 +1,4 @@
|
|||||||
|
# This is a basic workflow to help you get started with Actions
|
||||||
name: Manually executable test for ESP-IDF v4.3.1
|
name: Manually executable test for ESP-IDF v4.3.1
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -10,10 +11,14 @@ on:
|
|||||||
description: 'Release'
|
description: 'Release'
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
|
# push:
|
||||||
|
# branches:
|
||||||
|
# - '**4.3'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bootstrap:
|
bootstrap:
|
||||||
name: Preparation
|
name: Global setup
|
||||||
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: sle118/squeezelite-esp32-idfv43
|
image: sle118/squeezelite-esp32-idfv43
|
||||||
outputs:
|
outputs:
|
||||||
@@ -22,9 +27,15 @@ jobs:
|
|||||||
release_flag: ${{ steps.build_flags.outputs.release_flag }}
|
release_flag: ${{ steps.build_flags.outputs.release_flag }}
|
||||||
mock: ${{ steps.build_flags.outputs.mock }}
|
mock: ${{ steps.build_flags.outputs.mock }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Set Build options from workflow dispatch event
|
||||||
|
run: |
|
||||||
|
ui_build_option="" && [[ ${{ inputs.ui_build }} ]] && ui_build_option="--ui_build"
|
||||||
|
release_build_option="" && [[ ${{ inputs.release_build }} ]] && release_build_option="--force"
|
||||||
|
echo "ui_build_option=$ui_build_option" >> $GITHUB_ENV
|
||||||
|
echo "release_build_option=$release_build_option" >> $GITHUB_ENV
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 15
|
fetch-depth: 0
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Generate common build number
|
- name: Generate common build number
|
||||||
id: buildnumber
|
id: buildnumber
|
||||||
@@ -34,16 +45,19 @@ jobs:
|
|||||||
- name: Set build flags
|
- name: Set build flags
|
||||||
id: build_flags
|
id: build_flags
|
||||||
run: |
|
run: |
|
||||||
|
git config --global --add safe.directory /__w/squeezelite-esp32/squeezelite-esp32
|
||||||
|
echo "Dumping environment"
|
||||||
|
env
|
||||||
. /opt/esp/python_env/idf4.3_py3.8_env/bin/activate
|
. /opt/esp/python_env/idf4.3_py3.8_env/bin/activate
|
||||||
# build_flags support the following options
|
# build_flags support the following options
|
||||||
# --mock - to mock the compilation part - this is to be used for testing only
|
# --mock - to mock the compilation part - this is to be used for testing only
|
||||||
# --force - to force a release build even if the last commit message doesn't contain the word "release"
|
# --force - to force a release build even if the last commit message doesn't contain the word "release"
|
||||||
# --ui_build - to force a ui_build even if the last commit message doesn't contain "[ui-build]"
|
# --ui_build - to force a ui_build even if the last commit message doesn't contain "[ui-build]"
|
||||||
build_tools.py build_flags --ui_build
|
build_tools.py build_flags ${{ env.ui_build_option }} ${{ env.release_build_option }}
|
||||||
|
|
||||||
preparation:
|
preparation:
|
||||||
name: Preparation
|
name: Preparation
|
||||||
needs: bootstrap
|
needs: bootstrap
|
||||||
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: sle118/squeezelite-esp32-idfv43
|
image: sle118/squeezelite-esp32-idfv43
|
||||||
steps:
|
steps:
|
||||||
@@ -53,14 +67,11 @@ jobs:
|
|||||||
echo "Web Build Flag=${{needs.bootstrap.outputs.ui_build}}"
|
echo "Web Build Flag=${{needs.bootstrap.outputs.ui_build}}"
|
||||||
echo "Mock flag=${{needs.bootstrap.outputs.mock}}"
|
echo "Mock flag=${{needs.bootstrap.outputs.mock}}"
|
||||||
echo "Release Flag=${{needs.bootstrap.outputs.release_flag}}"
|
echo "Release Flag=${{needs.bootstrap.outputs.release_flag}}"
|
||||||
|
git config --global --add safe.directory /__w/squeezelite-esp32/squeezelite-esp32
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 15
|
fetch-depth: 0
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Pull latest
|
|
||||||
run: |
|
|
||||||
git pull
|
|
||||||
git submodule update
|
|
||||||
- name: Refresh certificates
|
- name: Refresh certificates
|
||||||
run: |
|
run: |
|
||||||
git update-index --chmod=+x ./server_certs/getcert.sh
|
git update-index --chmod=+x ./server_certs/getcert.sh
|
||||||
@@ -81,7 +92,6 @@ jobs:
|
|||||||
- name: Update repository with prebuilt items
|
- name: Update repository with prebuilt items
|
||||||
if: ${{ needs.bootstrap.outputs.ui_build == 1 || needs.bootstrap.outputs.release_flag == 1 }}
|
if: ${{ needs.bootstrap.outputs.ui_build == 1 || needs.bootstrap.outputs.release_flag == 1 }}
|
||||||
run: |
|
run: |
|
||||||
git fetch
|
|
||||||
git config user.name github-actions
|
git config user.name github-actions
|
||||||
git config user.email github-actions@github.com
|
git config user.email github-actions@github.com
|
||||||
git add server_certs
|
git add server_certs
|
||||||
@@ -102,16 +112,14 @@ jobs:
|
|||||||
components/wifi-manager/webapp/dist/*
|
components/wifi-manager/webapp/dist/*
|
||||||
components/wifi-manager/webapp/*.cmake
|
components/wifi-manager/webapp/*.cmake
|
||||||
build:
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: sle118/squeezelite-esp32-idfv43
|
image: sle118/squeezelite-esp32-idfv43
|
||||||
needs: [preparation,bootstrap]
|
needs: [preparation,bootstrap]
|
||||||
strategy:
|
strategy:
|
||||||
max-parallel: 3
|
|
||||||
matrix:
|
matrix:
|
||||||
#node: [I2S-4MFlash, SqueezeAmp, Muse]
|
node: [I2S-4MFlash, SqueezeAmp, Muse]
|
||||||
#depth: [16, 32]
|
depth: [16, 32]
|
||||||
node: [I2S-4MFlash]
|
|
||||||
depth: [16]
|
|
||||||
exclude:
|
exclude:
|
||||||
- node: Muse
|
- node: Muse
|
||||||
depth: 32
|
depth: 32
|
||||||
@@ -120,7 +128,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 15
|
fetch-depth: 0
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Show Build Flags
|
- name: Show Build Flags
|
||||||
run: |
|
run: |
|
||||||
@@ -132,6 +140,8 @@ jobs:
|
|||||||
- name: Set build parameters
|
- name: Set build parameters
|
||||||
run: |
|
run: |
|
||||||
. /opt/esp/python_env/idf4.3_py3.8_env/bin/activate
|
. /opt/esp/python_env/idf4.3_py3.8_env/bin/activate
|
||||||
|
git config --global --add safe.directory /__w/squeezelite-esp32/squeezelite-esp32
|
||||||
|
git status
|
||||||
build_tools.py environment --build ${{ needs.bootstrap.outputs.build_number }} --env_file "$GITHUB_ENV" --node "${{matrix.node}}" --depth ${{matrix.depth}} --major 2 --docker sle118/squeezelite-esp32-idfv43
|
build_tools.py environment --build ${{ needs.bootstrap.outputs.build_number }} --env_file "$GITHUB_ENV" --node "${{matrix.node}}" --depth ${{matrix.depth}} --major 2 --docker sle118/squeezelite-esp32-idfv43
|
||||||
|
|
||||||
- uses: actions/download-artifact@master
|
- uses: actions/download-artifact@master
|
||||||
@@ -240,12 +250,13 @@ jobs:
|
|||||||
name: Web Installer
|
name: Web Installer
|
||||||
if: ${{ needs.bootstrap.outputs.release_flag == 1 && needs.bootstrap.outputs.mock == 0 }}
|
if: ${{ needs.bootstrap.outputs.release_flag == 1 && needs.bootstrap.outputs.mock == 0 }}
|
||||||
needs: [build, preparation,bootstrap]
|
needs: [build, preparation,bootstrap]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: sle118/squeezelite-esp32-idfv43
|
image: sle118/squeezelite-esp32-idfv43
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 15
|
fetch-depth: 0
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: actions/download-artifact@master
|
- uses: actions/download-artifact@master
|
||||||
name: Restore last build
|
name: Restore last build
|
||||||
|
|||||||
Reference in New Issue
Block a user