Skip to content

Sync clusters with custom herdsman addings #156

Sync clusters with custom herdsman addings

Sync clusters with custom herdsman addings #156

Workflow file for this run

name: Build z03mmc firmware
on:
push:
# branches: [ "master" ]
pull_request:
# branches: [ "master" ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
TOOLCHAIN_DIR: ${{github.workspace}}/tc32
SDK_DIR: ${{github.workspace}}/tl_zigbee_sdk
ARTIFACT_DIR: ${{github.workspace}}/build/src/
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get toolchain
run: git clone https://github.com/devbis/tc32.git -b linux --depth 1 ${{ env.TOOLCHAIN_DIR }}
- name: Get SDK
run: git clone https://github.com/devbis/tl_zigbee_sdk.git -b 3.6.8.6 --depth 1 ${{ env.SDK_DIR }}
# - name: Build LYWSD03MMC Telink Code
# id: lywsd03mmc_tl
# run: |
# cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DSDK_PREFIX=${{env.SDK_DIR}} -DTOOLCHAIN_PREFIX=${{env.TOOLCHAIN_DIR}} -DMANUFACTURER_CODE=0x1141
# cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target=z03mmc.zigbee
# mv ${{ env.ARTIFACT_DIR }}/z03mmc.bin ${{ env.ARTIFACT_DIR }}/z03mmc_tl_code.bin
# echo "status=success" >> $GITHUB_OUTPUT
#
# - name: Build LYWSD03MMC
# id: lywsd03mmc
# run: |
# cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DSDK_PREFIX=${{env.SDK_DIR}} -DTOOLCHAIN_PREFIX=${{env.TOOLCHAIN_DIR}} -DMANUFACTURER_CODE=0x1141
# cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target=z03mmc.zigbee
# echo "status=success" >> $GITHUB_OUTPUT
- name: Build LYWSD03MMC Vindriktning
id: lywsd03mmc_vindriktning
run: |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DSDK_PREFIX=${{env.SDK_DIR}} -DTOOLCHAIN_PREFIX=${{env.TOOLCHAIN_DIR}}
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target=zvindriktning.zigbee
echo "status=success" >> $GITHUB_OUTPUT
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
if: steps.lywsd03mmc_vindriktning.outputs.status == 'success' && !cancelled()
with:
# Artifact name
name: firmware
# A file, directory or wildcard pattern that describes what to upload
path: |
${{ env.ARTIFACT_DIR }}/*.bin
${{ env.ARTIFACT_DIR }}/*.zigbee