-
Notifications
You must be signed in to change notification settings - Fork 21
61 lines (57 loc) · 2.25 KB
/
generic-amd64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# This is an approximate example of a single Yocto device-type workflow
# as it would exist in a device repo.
# It will be duplicated across all device repos with only minor changes
# to the inputs and the defaults.
# TODO: We need a system to keep these inputs aligned across all device repos
name: Generic x86_64 (GPT)
on:
# With these triggers the Yocto jobs will run
# in parallel with the Flowzone jobs, which is fine for now
# and allows us to better control what we want to test and when.
# It is expected that Flowzone could fail, but yocto jobs will run.
pull_request:
branches:
- "main"
- "master"
pull_request_target:
branches:
- "main"
- "master"
# Enable this push trigger on device repos
# push:
# tags:
# - v[0-9]+.[0-9]+.[0-9]+\+?r?e?v?*
# - v20[0-9][0-9].[0-1]?[1470].[0-9]+
# Enable this push trigger on device repos
# workflow_dispatch:
jobs:
yocto:
name: Yocto
uses: ./.github/workflows/yocto-build-deploy.yml
# 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.
# - internal PR (true == true) ok
# - internal PRT (true != false) skip
# - fork PR (false != true) skip
# - fork PRT (false == false) ok
# - push (false == false) ok
# - workflow_dispatch (false == false) ok
# - any trigger other than PR/PRT (false == false) ok
if: (github.event.pull_request.head.repo.full_name == github.repository) == (github.event_name == 'pull_request')
secrets: inherit
with:
machine: generic-amd64
environment: balena-staging.com
# device-repo and device-repo-ref inputs should not be provided on device repos
device-repo: balena-os/balena-generic
device-repo-ref: master
# Use qemu workers for testing
test_matrix: >
{
"test_suite": ["os","cloud","hup"],
"environment": ["balena-cloud.com"],
"worker_type": ["qemu"],
"runs_on": [["self-hosted", "X64", "kvm"]]
}