From c8a6234cbecd7c426aad8820ae1222d5349e449c Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Sun, 26 Jan 2025 22:54:01 +0100 Subject: [PATCH 1/3] SWPROT-8953: build: Add rootfs script Origin: https://github.com/SiliconLabs/UnifySDK/pull/50 Signed-off-by: Philippe Coval --- scripts/build-rootfs.sh | 125 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100755 scripts/build-rootfs.sh diff --git a/scripts/build-rootfs.sh b/scripts/build-rootfs.sh new file mode 100755 index 000000000..c2ee20328 --- /dev/null +++ b/scripts/build-rootfs.sh @@ -0,0 +1,125 @@ +#! /usr/bin/env bash +# -*- mode: Bash; tab-width: 2; indent-tabs-mode: nil; coding: utf-8 -*- +# vim:shiftwidth=4:softtabstop=4:tabstop=4: +# SPDX-License-Identifier: LicenseRef-MSLA +# SPDX-FileCopyrightText: Silicon Laboratories Inc. https://www.silabs.com + +set -e +set -x + +cat< Date: Sun, 26 Jan 2025 22:54:01 +0100 Subject: [PATCH 2/3] SWPROT-8953: ci: github: Add rootfs action Origin: https://github.com/SiliconLabs/UnifySDK/pull/50 Signed-off-by: Philippe Coval --- .github/workflows/build-rootfs.yml | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build-rootfs.yml diff --git a/.github/workflows/build-rootfs.yml b/.github/workflows/build-rootfs.yml new file mode 100644 index 000000000..ac522b565 --- /dev/null +++ b/.github/workflows/build-rootfs.yml @@ -0,0 +1,38 @@ +# YAML -*- mode: yaml; tab-width: 2; indent-tabs-mode: nil; coding: utf-8 -*- +--- +name: 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 + steps: + - uses: actions/checkout@v4.1.1 + with: + fetch-depth: 0 + - 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 }} ./scripts/build-rootfs.sh + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: ${{ github.event.repository.name }}-${{ steps.describe.outputs.describe }}-${{ matrix.arch }} + path: build/dist/ + - name: Upload Release Asset + id: upload-release-asset + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: build/dist/* From 5a969d33eaf217d6e32ec4d2a5d06084cd940af7 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Mon, 27 Jan 2025 13:37:19 +0100 Subject: [PATCH 3/3] SWPROT-8953: ci: github: Disable arm64 rootfs action Origin: https://github.com/SiliconLabs/UnifySDK/pull/50 Signed-off-by: Philippe Coval --- .github/workflows/build-rootfs.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build-rootfs.yml b/.github/workflows/build-rootfs.yml index ac522b565..3cc804137 100644 --- a/.github/workflows/build-rootfs.yml +++ b/.github/workflows/build-rootfs.yml @@ -13,7 +13,6 @@ jobs: matrix: arch: - amd64 - - arm64 steps: - uses: actions/checkout@v4.1.1 with: