Add support for build all images to build train (#3785)

* Extend build capacity

* Update build-train.yml

* Update build-train.yml

* Update build-train.yml

* Update build-images.yml

* Update build-images.yml

* Update build-images.yml

* Update build-images.yml
This commit is contained in:
Igor Pečovnik 2022-06-01 17:12:11 +02:00 committed by GitHub
parent 9a491c50c5
commit 9a661d7af9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 88 additions and 21 deletions

View File

@ -20,6 +20,11 @@ on:
description: Source repository
required: true
default: 'nightly'
advanced:
description: 'Single board (grep -w tinkerboard |)'
required: false
default: ''
jobs:
fake:
@ -74,7 +79,7 @@ jobs:
runner: '${{ github.event.inputs.runner }}'
part: 1
of: 1
include: 'grep uefi-x86 | '
include: 'grep uefi-x86 | ${{ github.event.inputs.advanced }}'
exclude: ''
uploading: false
@ -98,7 +103,7 @@ jobs:
runner: "big"
part: 1
of: 1
include: 'grep uefi-x86 | '
include: 'grep uefi-x86 | ${{ github.event.inputs.advanced }}'
exclude: ''
uploading: false
@ -111,7 +116,7 @@ jobs:
SSH_KEY_TORRENTS: ${{ secrets.KEY_TORRENTS }}
KNOWN_HOSTS_UPLOAD: ${{ secrets.KNOWN_HOSTS_UPLOAD }}
cli:
cli1:
needs: [ merge ]
uses: armbian/scripts/.github/workflows/build-with-docker.yml@master
@ -121,8 +126,8 @@ jobs:
sourcerepo: '${{ github.event.inputs.sourcerepo }}'
runner: '${{ github.event.inputs.runner }}'
part: 1
of: 1
include: ''
of: 2
include: '${{ github.event.inputs.advanced }}'
exclude: 'grep -v uefi-x86 | '
uploading: false
@ -136,7 +141,31 @@ jobs:
KNOWN_HOSTS_UPLOAD: ${{ secrets.KNOWN_HOSTS_UPLOAD }}
desktop:
cli2:
needs: [ merge ]
uses: armbian/scripts/.github/workflows/build-with-docker.yml@master
with:
variant: 'cli:${{ github.event.inputs.choice }}'
sourcerepo: '${{ github.event.inputs.sourcerepo }}'
runner: '${{ github.event.inputs.runner }}'
part: 2
of: 2
include: '${{ github.event.inputs.advanced }}'
exclude: 'grep -v uefi-x86 | '
uploading: false
secrets:
GPG_KEY1: ${{ secrets.GPG_KEY1 }}
GPG_PASSPHRASE1: ${{ secrets.GPG_PASSPHRASE1 }}
GPG_KEY2: ${{ secrets.GPG_KEY2 }}
GPG_PASSPHRASE2: ${{ secrets.GPG_PASSPHRASE2 }}
SCRIPTS_ACCESS_TOKEN: ${{ secrets.SCRIPTS_ACCESS_TOKEN }}
SSH_KEY_TORRENTS: ${{ secrets.KEY_TORRENTS }}
KNOWN_HOSTS_UPLOAD: ${{ secrets.KNOWN_HOSTS_UPLOAD }}
desktop1:
needs: [ merge ]
uses: armbian/scripts/.github/workflows/build-with-docker.yml@master
@ -145,8 +174,31 @@ jobs:
sourcerepo: '${{ github.event.inputs.sourcerepo }}'
runner: "big"
part: 1
of: 1
include: ''
of: 2
include: '${{ github.event.inputs.advanced }}'
exclude: 'grep -v uefi-x86 | '
uploading: false
secrets:
GPG_KEY1: ${{ secrets.GPG_KEY1 }}
GPG_PASSPHRASE1: ${{ secrets.GPG_PASSPHRASE1 }}
GPG_KEY2: ${{ secrets.GPG_KEY2 }}
GPG_PASSPHRASE2: ${{ secrets.GPG_PASSPHRASE2 }}
SCRIPTS_ACCESS_TOKEN: ${{ secrets.SCRIPTS_ACCESS_TOKEN }}
SSH_KEY_TORRENTS: ${{ secrets.KEY_TORRENTS }}
KNOWN_HOSTS_UPLOAD: ${{ secrets.KNOWN_HOSTS_UPLOAD }}
desktop2:
needs: [ merge ]
uses: armbian/scripts/.github/workflows/build-with-docker.yml@master
with:
variant: 'desktop:${{ github.event.inputs.choice }}'
sourcerepo: '${{ github.event.inputs.sourcerepo }}'
runner: "big"
part: 2
of: 2
include: '${{ github.event.inputs.advanced }}'
exclude: 'grep -v uefi-x86 | '
uploading: false
@ -161,7 +213,7 @@ jobs:
jobsend:
name: finish
needs: [x86,x86-desktop,cli,desktop]
needs: [x86,x86-desktop,cli1,desktop1,cli2,desktop2]
runs-on: [ubuntu-latest]
if: ${{ github.repository_owner == 'Armbian' }}
steps:

View File

@ -2,6 +2,11 @@ name: Build train
on:
workflow_dispatch:
inputs:
sourcerepo:
description: Source repository
required: true
default: 'nightly'
push:
branches:
- master
@ -14,7 +19,7 @@ jobs:
# #
##########################################################################################
Cancel:
Cancel:
if: ${{ github.repository_owner == 'Armbian' }}
runs-on: small
steps:
@ -55,7 +60,7 @@ jobs:
uses: armbian/scripts/.github/workflows/check-for-changes.yml@master
with:
reference: nightly
reference: '${{ github.event.inputs.sourcerepo }}'
runner: small
##########################################################################################
@ -72,7 +77,7 @@ jobs:
with:
uploading: true
runner: fast
reference: nightly
reference: '${{ github.event.inputs.sourcerepo }}'
secrets:
GPG_KEY1: ${{ secrets.GPG_KEY1 }}
@ -95,7 +100,8 @@ jobs:
uses: armbian/scripts/.github/workflows/build-firmware.yml@master
with:
reference: nightly
reference: '${{ github.event.inputs.sourcerepo }}'
uploading: true
runner: small
secrets:
@ -116,6 +122,7 @@ jobs:
with:
uploading: true
runner: small
reference: '${{ github.event.inputs.sourcerepo }}'
secrets:
GPG_KEY1: ${{ secrets.GPG_KEY1 }}
@ -143,7 +150,7 @@ jobs:
include: 'grep legacy | '
exclude: ''
uploading: false
destref: 'nightly'
destref: '${{ github.event.inputs.sourcerepo }}'
secrets:
GPG_KEY1: ${{ secrets.GPG_KEY1 }}
@ -165,7 +172,7 @@ jobs:
include: 'grep current | '
exclude: ''
uploading: false
destref: 'nightly'
destref: '${{ github.event.inputs.sourcerepo }}'
secrets:
GPG_KEY1: ${{ secrets.GPG_KEY1 }}
@ -188,7 +195,7 @@ jobs:
include: 'grep edge | '
exclude: ''
uploading: false
destref: 'nightly'
destref: '${{ github.event.inputs.sourcerepo }}'
secrets:
GPG_KEY1: ${{ secrets.GPG_KEY1 }}
@ -204,9 +211,17 @@ jobs:
# Store build hashes for future comparission #
# #
##########################################################################################
Deploycheck:
needs: [Kernel,Desktop,Firmware,legacy,current,edge]
if: ${{ inputs.sourcerepo != 'nightly' }}
runs-on: ubuntu-latest
steps:
- name: Early exit
run: exit_with_success
Deploy:
needs: [Kernel,Desktop,Firmware,legacy,current,edge]
needs: [Deploycheck]
if: ${{ success() && github.repository_owner == 'Armbian' }}
uses: armbian/scripts/.github/workflows/deploy.yml@master
@ -282,7 +297,7 @@ jobs:
variant: 'cli:beta'
runner: "small"
sourcerepo: 'nightly'
sourcerepo: '${{ github.event.inputs.sourcerepo }}'
part: 1
of: 1
include: 'grep uefi-x86 | '
@ -312,7 +327,7 @@ jobs:
variant: 'desktop:beta'
runner: "big"
sourcerepo: 'nightly'
sourcerepo: '${{ github.event.inputs.sourcerepo }}'
part: 1
of: 1
include: 'grep uefi-x86 | '
@ -342,7 +357,7 @@ jobs:
variant: 'cli:beta'
runner: "small"
sourcerepo: 'nightly'
sourcerepo: '${{ github.event.inputs.sourcerepo }}'
part: 1
of: 1
include: ''
@ -371,7 +386,7 @@ jobs:
with:
variant: 'desktop:beta'
runner: "big"
sourcerepo: 'nightly'
sourcerepo: '${{ github.event.inputs.sourcerepo }}'
part: 1
of: 1
include: ''