Skip to content

z-wave-protocol-controller Build in rootfs for arch #18

z-wave-protocol-controller Build in rootfs for arch

z-wave-protocol-controller Build in rootfs for arch #18

Workflow file for this run

# YAML -*- mode: yaml; tab-width: 2; indent-tabs-mode: nil; coding: utf-8 -*-
---
name: z-wave-protocol-controller Build in rootfs for arch
on: # yamllint disable-line rule:truthy
push:
# tags:
# - '*'
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
arch:
- amd64
# - arm64
# - armhf # TODO Enable when supported
# - i386
steps:
# - uses: actions/[email protected]
# with:
# fetch-depth: 0
# # Relate-to: https://github.com/actions/checkout/pull/2081#2025
# ref: ${{ github.ref }}
# - id: describe
# name: Describe HEAD
# run: >-
# echo "describe=$(git describe --tags --always || echo 0)"
# | tee $GITHUB_OUTPUT
# - name: Setup and build
# run: >-
# ARCH=${{ matrix.arch }}
# UNIFYSDK_GIT_REPOSITORY=${{ secrets.UNIFYSDK_GIT_REPOSITORY }}
# UNIFYSDK_GIT_TAG=${{ secrets.UNIFYSDK_GIT_TAG }}
# ./scripts/build-rootfs.sh
# - name: Upload artifacts
# uses: actions/upload-artifact@v4
# with:
# # yamllint disable-line rule:line-length
# name: ${{ github.event.repository.name }}-${{ steps.describe.outputs.describe }}-${{ matrix.arch }}
# path: build/dist/
# - name: Build documentation once
# if: startsWith(github.ref, 'refs/tags/') && matrix.arch == 'amd64'
# run: >-
# ./scripts/build-rootfs.sh docs/dist
- name: Upload Release Asset
id: upload-release-asset
env:
token-defined: ${{ secrets.GH_UNIFY_ACCESS_TOKEN != '' }}
if: ${{ env.token-defined == true && startsWith(github.ref, 'refs/tags/') }}
uses: softprops/action-gh-release@v2
with:
files: build/dist/*
# yamllint disable-line rule:line-length
# TODO: Sign asset: https://github.com/softprops/action-gh-release/issues/580#2025
token: ${{ secrets.GH_UNIFY_ACCESS_TOKEN || github.token }}
# - name: Upload pages artifact
# id: deployment
# if: startsWith(github.ref, 'refs/tags/') && matrix.arch == 'amd64'
# uses: actions/[email protected]
# with:
# path: docs/
# deploy:
# needs: build
# permissions:
# pages: write
# id-token: write
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# runs-on: ubuntu-24.04
# steps:
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4
# if: startsWith(github.ref, 'refs/tags/')