Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: build-uefi-sb workflow #231

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/build-uefi-sb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: Build DTS with UEFI SB
on:
workflow_call:
inputs:
cacheless:
type: boolean
required: true

jobs:
build:
runs-on:
labels: dts-builder
env:
FAILED_ATTEMPTS: 0
steps:
- name: Checkout meta-dts repo
uses: actions/checkout@v4
with:
path: "meta-dts"
- name: Prepare cache-less build configuration
if: ${{ inputs.cacheless }}
shell: bash
run: |
sed -i '/cache.yml/d' meta-dts/kas-uefi-sb.yml
- name: Build DTS image
shell: bash
id: build_image
run: |
for attempt in {1..5}; do
if kas-container build meta-dts/kas-uefi-sb.yml; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe modify original build.yml and just add aditional input which is path to kas file?

echo "Build command succeeded on attempt $attempt"
break
else
echo "Build command failed on attempt $attempt"
echo "FAILED_ATTEMPTS=$attempt" >> $GITHUB_ENV
if [ $attempt -lt 5 ]; then
sleep 5
else
exit 1
fi
fi
done
- name: Report build command
if: always()
run: |
echo "$FAILED_ATTEMPTS build attempts failed"