Skip to content

Commit

Permalink
SWPROT-8953: ci: github: Add rootfs action
Browse files Browse the repository at this point in the history
Origin: SiliconLabs#50
Signed-off-by: Philippe Coval <[email protected]>
  • Loading branch information
rzr committed Jan 27, 2025
1 parent 34c3fb3 commit 1564144
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-rootfs.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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/*

0 comments on commit 1564144

Please sign in to comment.