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

patch: Add GHA Build Test Deploy workflows #63

Merged
merged 3 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
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
17 changes: 0 additions & 17 deletions .github/workflows/build_and_deploy.yml

This file was deleted.

58 changes: 58 additions & 0 deletions .github/workflows/ucm-imx93.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Compulab UCM-iMX93 Devkit

on:
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#onpushbranchestagsbranches-ignoretags-ignore
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
pull_request:
branches:
- main
- master
# ESR branches glob pattern
#- 20[0-9][0-9].[0-1]?[1470].x
# pull_request_target:
# branches:
# - main
# - master
push:
tags:
# Semver tags glob pattern (includes ESR in format v20YY.MM.PATCH)
- v[0-9]+.[0-9]+.[0-9]+\+?r?e?v?*
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
force-finalize:
description: Force finalize of the build (implicitly enables hostapp and S3 deployments)
required: false
type: boolean
default: false
deploy-environment:
description: Environment to use for build and deploy
required: false
type: string
default: balena-staging.com


jobs:
yocto:
name: Yocto
uses: balena-os/balena-yocto-scripts/.github/workflows/[email protected]
# Prevent duplicate workflow executions for pull_request (PR) and pull_request_target (PRT) events.
# Both PR and PRT will be triggered for the same pull request, whether it is internal or from a fork.
# This condition will prevent the workflow from running twice for the same pull request while
# still allowing it to run for all other event types.
if: (github.event.pull_request.head.repo.full_name == github.repository) == (github.event_name == 'pull_request')
secrets: inherit
with:
machine: ucm-imx93
# worker_type defaults to testbot
# worker_fleets defaults to balena/testbot-rig,balena/testbot-rig-partners,balena/testbot-rig-x86,balena/testbot-rig-partners-x86
test_matrix: >
{
"test_suite": ["os","cloud","hup"],
"environment": ["bm.balena-dev.com"],
"runs_on": [["ubuntu-latest"]]
}
# Allow manual workflow runs to force finalize without checking previous test runs
force-finalize: ${{ inputs.force-finalize || false }}
# Default to balena-staging.com for workflow dispatch, but balena-cloud.com for other events
deploy-environment: ${{ inputs.deploy-environment || 'balena-cloud.com' }}
2 changes: 1 addition & 1 deletion layers/meta-balena
Submodule meta-balena updated 73 files
+3 −0 .github/renovate.json
+34 −0 .github/workflows/bananapi-m1-plus.yml
+34 −0 .github/workflows/beaglebone-ai64.yml
+34 −0 .github/workflows/beaglebone-pocket.yml
+34 −0 .github/workflows/beaglebone.yml
+43 −0 .github/workflows/generic-aarch64.yml
+44 −0 .github/workflows/generic-amd64.yml
+44 −0 .github/workflows/genericx86-64-ext.yml
+36 −0 .github/workflows/genericx86-64.yml
+34 −0 .github/workflows/imx6ul-var-dart.yml
+34 −0 .github/workflows/imx7-var-som.yml
+34 −0 .github/workflows/iot-gate-imx8.yml
+34 −0 .github/workflows/iot-gate-imx8plus.yml
+34 −0 .github/workflows/jetson-agx-orin-devkit.yml
+34 −0 .github/workflows/jetson-nano.yml
+34 −0 .github/workflows/jetson-tx2.yml
+34 −0 .github/workflows/jetson-xavier.yml
+1 −0 .github/workflows/meta-balena-esr.yml
+34 −0 .github/workflows/nanopi-neo-air.yml
+34 −0 .github/workflows/nanopi-r2c.yml
+34 −0 .github/workflows/orangepi-plus2.yml
+34 −0 .github/workflows/owa5x.yml
+34 −0 .github/workflows/raspberrypi.yml
+34 −0 .github/workflows/raspberrypi2.yml
+36 −0 .github/workflows/raspberrypi3-64.yml
+36 −0 .github/workflows/raspberrypi3.yml
+36 −0 .github/workflows/raspberrypi4-64.yml
+34 −0 .github/workflows/revpi-connect-4.yml
+34 −0 .github/workflows/revpi-connect-s.yml
+34 −0 .github/workflows/revpi-connect.yml
+34 −0 .github/workflows/revpi-core-3.yml
+34 −0 .github/workflows/rockpi-4b-rk3399.yml
+34 −0 .github/workflows/surface-go.yml
+34 −0 .github/workflows/surface-pro-6.yml
+1 −0 .github/workflows/update-backports.yml
+34 −0 .github/workflows/var-som-mx6..yml
+2,105 −0 .versionbot/CHANGELOG.yml
+659 −0 CHANGELOG.md
+3 −3 contributing-device-support.md
+9 −0 meta-balena-common/classes/balena-bootloader.bbclass
+0 −83 meta-balena-common/classes/compress-kernel-modules.bbclass
+1 −1 meta-balena-common/classes/image-balena.bbclass
+4 −2 meta-balena-common/classes/image_types_balena.bbclass
+18 −4 meta-balena-common/classes/kernel-balena.bbclass
+4 −1 meta-balena-common/conf/distro/include/balena-os.inc
+281 −0 ...ipes-connectivity/modemmanager/balena-files/0002-quectel-disable-qmi-unsolicited-profile-manager-even.patch
+26 −0 ...ipes-connectivity/modemmanager/balena-files/0003-broadband-modem-qmi-quectel-fix-task-completion-when.patch
+29 −0 meta-balena-common/recipes-connectivity/modemmanager/balena-files/0004-bearer-qmi-Fix-SIM7100E-crash.patch
+3 −0 meta-balena-common/recipes-connectivity/modemmanager/modemmanager_%.bbappend
+14 −4 meta-balena-common/recipes-connectivity/networkmanager/balena-files/90shared
+1 −1 meta-balena-common/recipes-containers/balena-supervisor/balena-supervisor.inc
+1 −1 meta-balena-common/recipes-containers/mkfs-hostapp-native/files/Dockerfile
+3 −3 meta-balena-common/recipes-containers/mkfs-hostapp-native/mkfs-hostapp-native.bb
+123 −20 meta-balena-common/recipes-core/initrdscripts/files/cryptsetup-efi-tpm
+22 −9 meta-balena-common/recipes-core/initrdscripts/files/migrate
+1 −0 meta-balena-common/recipes-kernel/kmod/kmod_%.bbappend
+2 −2 meta-balena-common/recipes-kernel/linux/files/Dockerfile
+2 −2 meta-balena-common/recipes-kernel/linux/kernel-headers-test.bb
+3 −3 meta-balena-common/recipes-support/hostapp-update-hooks/files/95-secureboot/1-fwd_commit_apply-dbx
+38 −7 meta-balena-common/recipes-support/resin-init/resin-init-flasher/resin-init-flasher
+2 −1 meta-balena-rust/recipes-devtools/rust/rust-llvm.inc
+32 −0 meta-balena-rust/recipes-devtools/rust/rust-llvm/0003-Support-Add-missing-cstdint-header-to-Signals.h.patch
+1 −1 tests/leviathan
+2 −2 tests/suites/cloud/config.js
+80 −11 tests/suites/cloud/suite.js
+9 −70 tests/suites/cloud/tests/ssh-auth/index.js
+2 −2 tests/suites/hup/config.js
+4 −5 tests/suites/hup/suite.js
+2 −2 tests/suites/os/config.js
+19 −14 tests/suites/os/suite.js
+3 −18 tests/suites/os/tests/engine-socket/index.js
+86 −0 tests/suites/os/tests/iptables/index.js
+319 −133 tests/suites/os/tests/secureboot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ BALENA_UBOOT_DEVICE_TYPES = "usb mmc"
# revision is used by which balenaOS release
SRCREV="34382c7df25560904a521d3f62bf5768899c55a2"

# WORKAROUND for unblocking builds, because the
# old upstream branch has been renamed.
# This board may need a BSP update after the upstream issue
# https://github.com/compulab-yokneam/u-boot-compulab/issues/6
# is clarified
SRCBRANCH = "to-be-removed/u-boot-compulab_v2022.04"

# Bring in configure step from poky
# to make sure the merge_config script is called
# appropriately, otherwise the build will fail
Expand Down