Skip to content

Commit 6b11c07

Browse files
committed
SWPROT-8953: ci: github: Add rootfs action
Origin: SiliconLabs/UnifySDK#50 Signed-off-by: Philippe Coval <[email protected]>
1 parent 483e110 commit 6b11c07

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/build-rootfs.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# YAML -*- mode: yaml; tab-width: 2; indent-tabs-mode: nil; coding: utf-8 -*-
2+
---
3+
name: Build in rootfs for arch
4+
5+
on: # yamllint disable-line rule:truthy
6+
push:
7+
tags:
8+
- '*'
9+
jobs:
10+
build:
11+
runs-on: ubuntu-24.04
12+
strategy:
13+
matrix:
14+
arch:
15+
- amd64
16+
- arm64
17+
steps:
18+
- uses: actions/[email protected]
19+
with:
20+
fetch-depth: 0
21+
- id: describe
22+
name: Describe HEAD
23+
run: |
24+
echo "describe=$(git describe --tags --always || echo 0)" | tee $GITHUB_OUTPUT
25+
- name: Setup and build
26+
run: |
27+
ARCH=${{ matrix.arch }} ./scripts/build-rootfs.sh
28+
- name: Upload artifacts
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: ${{ github.event.repository.name }}-${{ steps.describe.outputs.describe }}-${{ matrix.arch }}
32+
path: build/dist/
33+
- name: Upload Release Asset
34+
id: upload-release-asset
35+
uses: softprops/action-gh-release@v2
36+
if: startsWith(github.ref, 'refs/tags/')
37+
with:
38+
files: build/dist/*

0 commit comments

Comments
 (0)