mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-11 14:07:11 +03:00
Add more targets
This commit is contained in:
37
.github/workflows/ESP32-A1S.yml
vendored
Normal file
37
.github/workflows/ESP32-A1S.yml
vendored
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
|
name: ESP32-A1S
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master-cmake ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master-cmake ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Set target
|
||||||
|
run: echo '::set-output name=TARGET_BUILD_NAME::ESP32-A1S'
|
||||||
|
id: target-name-generator
|
||||||
|
- name: Get color
|
||||||
|
run: echo "Target is ${{steps.target-name-generator.outputs.TARGET_BUILD_NAME}}"
|
||||||
|
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- name: Generate build number
|
||||||
|
id: buildnumber
|
||||||
|
uses: einaregilsson/build-number@v2
|
||||||
|
with:
|
||||||
|
token: ${{secrets.github_token}}
|
||||||
|
- name: Cache build
|
||||||
|
id: cache-build
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ${{github.workspace}}/build
|
||||||
|
key: ${{ runner.os }}-${{ steps.target-name-generator.outputs.TARGET_BUILD_NAME}}
|
||||||
|
- name: Build the firmware
|
||||||
|
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"
|
||||||
36
.github/workflows/SqueezeAmp.yml
vendored
Normal file
36
.github/workflows/SqueezeAmp.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
|
name: SqueezeAmp
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master-cmake ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master-cmake ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Set target
|
||||||
|
run: echo '::set-output name=TARGET_BUILD_NAME::SqueezeAmp'
|
||||||
|
id: target-name-generator
|
||||||
|
- name: Get color
|
||||||
|
run: echo "Target is ${{steps.target-name-generator.outputs.TARGET_BUILD_NAME}}"
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- name: Generate build number
|
||||||
|
id: buildnumber
|
||||||
|
uses: einaregilsson/build-number@v2
|
||||||
|
with:
|
||||||
|
token: ${{secrets.github_token}}
|
||||||
|
- name: Cache build
|
||||||
|
id: cache-build
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ${{github.workspace}}/build
|
||||||
|
key: ${{ runner.os }}-${{ steps.target-name-generator.outputs.TARGET_BUILD_NAME}}
|
||||||
|
- name: Build the firmware
|
||||||
|
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"
|
||||||
Reference in New Issue
Block a user