diff --git a/.github/workflows/container-build.yaml b/.github/workflows/container-build.yaml index c4b3250..3923ed1 100644 --- a/.github/workflows/container-build.yaml +++ b/.github/workflows/container-build.yaml @@ -13,6 +13,7 @@ on: env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} + TEST_TAG: ${{ github.repository }}:${{github.run_id}} jobs: build-and-push-image: @@ -76,3 +77,32 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} load: true + + firmware-build: + runs-on: ubuntu-latest + + strategy: + matrix: + target_board: + - CC1352P_2_LAUNCHXL + - CC26X2R1_LAUNCHXL + - LP_CC2652R7 + - LP_CC2652RB + - LP_CC2652RB + + steps: + - name: Build + run: | + echo "Hello World" + ls -laF /build || true + find / + docker container run \ + --rm \ + --volume "$(pwd)/coordinator/Z-Stack_3.x.0/:/src" \ + ${{ env.TEST_TAG }} \ + '/bin/sh' -c ' \ + eclipse -noSplash -data "${HOME}/workspace" -application com.ti.ccstudio.apps.projectImport -ccs.location "${SLF2_SDK}/examples/rtos/${{ matrix.target_board }}/zstack/znp/tirtos7/ticlang/znp_${{ matrix.target_board }}_tirtos7_ticlang.projectspec" \ + cp "/src/znp_${{ matrix.target_board }}_tirtos7_ticlang.syscfg" "${HOME}/workspace/znp_${{ matrix.target_board }}/znp.syscfg" \ + eclipse -noSplash -data "${HOME}/workspace" -application com.ti.ccstudio.apps.projectBuild -ccs.projects "znp_${{ matrix.target_board }}_tirtos7_ticlang" \ + '; \ + docker container rm ${{ env.TEST_TAG }}