Skip to content

Commit

Permalink
CI: Build binaries
Browse files Browse the repository at this point in the history
With a pipeline and generated build environments in place, lets build our
binaries from the CI!

Signed-off-by: Olliver Schinagl <[email protected]>
  • Loading branch information
oliv3r committed Aug 8, 2024
1 parent 47c3d4b commit 9900582
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/container-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}

0 comments on commit 9900582

Please sign in to comment.