mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-11 05:57:05 +03:00
Update build Workflow Environment variable use
This commit is contained in:
11
.github/workflows/ESP32-A1S.yml
vendored
11
.github/workflows/ESP32-A1S.yml
vendored
@@ -13,11 +13,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set target
|
- name: Set target
|
||||||
run: echo '::set-output name=TARGET_BUILD_NAME::ESP32-A1S'
|
run: echo "TARGET_BUILD_NAME=ESP32-A1S" >> $GITHUB_ENV
|
||||||
id: target-name-generator
|
id: target-name-generator
|
||||||
- name: Get color
|
- name: Show Target
|
||||||
run: echo "Target is ${{steps.target-name-generator.outputs.TARGET_BUILD_NAME}}"
|
run: echo "Target is ${TARGET_BUILD_NAME}"
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
@@ -31,7 +30,7 @@ jobs:
|
|||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ${{github.workspace}}/build
|
path: ${{github.workspace}}/build
|
||||||
key: ${{ runner.os }}-${{ steps.target-name-generator.outputs.TARGET_BUILD_NAME}}
|
key: ${{ runner.os }}-${TARGET_BUILD_NAME}
|
||||||
- name: Build the firmware
|
- name: Build the firmware
|
||||||
run: |
|
run: |
|
||||||
docker run --rm -v $PWD:/project -w /project espressif/idf:release-v4.0 /bin/bash -c "cp build-scripts/${{ steps.target-name-generator.outputs.TARGET_BUILD_NAME}}-sdkconfig.defaults sdkconfig && export PROJECT_VER=${{ steps.target-name-generator.outputs.TARGET_BUILD_NAME}}-${{ steps.buildnumber.outputs.build_number }} && idf.py build"
|
docker run --rm -v $PWD:/project -w /project espressif/idf:release-v4.0 /bin/bash -c "cp build-scripts/${TARGET_BUILD_NAME}-sdkconfig.defaults sdkconfig && export PROJECT_VER=${TARGET_BUILD_NAME}-${{ steps.buildnumber.outputs.build_number }} && idf.py build"
|
||||||
8
.github/workflows/I2S-4MBFlash.yml
vendored
8
.github/workflows/I2S-4MBFlash.yml
vendored
@@ -13,8 +13,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set target
|
- name: Set target
|
||||||
run: echo '::set-output name=TARGET_BUILD_NAME::I2S-4MFlash'
|
run: echo "TARGET_BUILD_NAME=I2S-4MFlash" >> $GITHUB_ENV
|
||||||
id: target-name-generator
|
id: target-name-generator
|
||||||
|
- name: Show Target
|
||||||
|
run: echo "Target is ${TARGET_BUILD_NAME}"
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
@@ -28,7 +30,7 @@ jobs:
|
|||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ${{github.workspace}}/build
|
path: ${{github.workspace}}/build
|
||||||
key: ${{ runner.os }}-${{ steps.target-name-generator.outputs.TARGET_BUILD_NAME}}
|
key: ${{ runner.os }}-${TARGET_BUILD_NAME}
|
||||||
- name: Build the firmware
|
- name: Build the firmware
|
||||||
run: |
|
run: |
|
||||||
docker run --rm -v $PWD:/project -w /project espressif/idf:release-v4.0 /bin/bash -c "cp build-scripts/${{ steps.target-name-generator.outputs.TARGET_BUILD_NAME}}-sdkconfig.defaults sdkconfig && export PROJECT_VER=${{ steps.target-name-generator.outputs.TARGET_BUILD_NAME}}-${{ steps.buildnumber.outputs.build_number }} && idf.py build"
|
docker run --rm -v $PWD:/project -w /project espressif/idf:release-v4.0 /bin/bash -c "cp build-scripts/${TARGET_BUILD_NAME}-sdkconfig.defaults sdkconfig && export PROJECT_VER=${TARGET_BUILD_NAME}-${{ steps.buildnumber.outputs.build_number }} && idf.py build"
|
||||||
10
.github/workflows/SqueezeAmp.yml
vendored
10
.github/workflows/SqueezeAmp.yml
vendored
@@ -13,10 +13,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set target
|
- name: Set target
|
||||||
run: echo '::set-output name=TARGET_BUILD_NAME::SqueezeAmp'
|
run: echo "TARGET_BUILD_NAME=SqueezeAmp" >> $GITHUB_ENV
|
||||||
id: target-name-generator
|
id: target-name-generator
|
||||||
- name: Get color
|
- name: Show Target
|
||||||
run: echo "Target is ${{steps.target-name-generator.outputs.TARGET_BUILD_NAME}}"
|
run: echo "Target is ${TARGET_BUILD_NAME}"
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: ${{github.workspace}}/build
|
path: ${{github.workspace}}/build
|
||||||
key: ${{ runner.os }}-${{ steps.target-name-generator.outputs.TARGET_BUILD_NAME}}
|
key: ${{ runner.os }}-${TARGET_BUILD_NAME}
|
||||||
- name: Build the firmware
|
- name: Build the firmware
|
||||||
run: |
|
run: |
|
||||||
docker run --rm -v $PWD:/project -w /project espressif/idf:release-v4.0 /bin/bash -c "cp build-scripts/${{ steps.target-name-generator.outputs.TARGET_BUILD_NAME}}-sdkconfig.defaults sdkconfig && export PROJECT_VER=${{ steps.target-name-generator.outputs.TARGET_BUILD_NAME}}-${{ steps.buildnumber.outputs.build_number }} && idf.py build"
|
docker run --rm -v $PWD:/project -w /project espressif/idf:release-v4.0 /bin/bash -c "cp build-scripts/${TARGET_BUILD_NAME}-sdkconfig.defaults sdkconfig && export PROJECT_VER=${TARGET_BUILD_NAME}-${{ steps.buildnumber.outputs.build_number }} && idf.py build"
|
||||||
Reference in New Issue
Block a user