2
0

I2S-4MBFlash.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. name: I2S-4MBFlash
  2. on:
  3. push:
  4. branches: [ master-cmake ]
  5. pull_request:
  6. branches: [ master-cmake ]
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Set target
  12. run: echo '::set-output name=TARGET_BUILD_NAME::I2S-4MBFlash'
  13. id: target-name-generator
  14. - name: Get color
  15. run: echo "Target is ${{steps.target-name-generator.outputs.TARGET_BUILD_NAME}}"
  16. - uses: actions/checkout@v2
  17. with:
  18. submodules: true
  19. - name: Generate build number
  20. id: buildnumber
  21. uses: einaregilsson/build-number@v2
  22. with:
  23. token: ${{secrets.github_token}}
  24. - name: Cache build
  25. id: cache-build
  26. uses: actions/cache@v1
  27. with:
  28. path: ${{github.workspace}}/build
  29. key: ${{ runner.os }}-${{ steps.target-name-generator.outputs.TARGET_BUILD_NAME}}
  30. - name: Build the firmware
  31. run: |
  32. 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"