Skip to content

Images Build

Images Build #1

Workflow file for this run

name: Images Build
on:
workflow_dispatch:
inputs:
DISTRO_CODENAME:
type: choice
description: DISTRO_CODENAME Selection
required: true
default: scarthgap
options:
- kirkstone
- scarthgap
DISTRO:
type: choice
description: DISTRO Selection
required: true
default: distro-core
options:
- distro-core
- distro-core-gui
- distro-musl
- distro-musl-gui
MACHINE:
type: choice
description: MACHINE Selection
required: true
default: sbc-gene-bt05
options:
- com-express-bt
- com-express-sl
- sbc-gene-bt05
- sbc-raspberrypi5
- sbc-xavier-nx-devkit
env:
MANIFEST_URI: https://github.com/distro-core/distro-manifest.git
BITBAKE_TARGETS: distro-image distro-sdk-image
permissions:
actions: write
jobs:
execute:
runs-on: [ ubuntu-latest ]
steps:
- shell: bash
run: |
:
mkdir -p ${HOME}/.local/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ${HOME}/.local/bin/repo
chmod a+rx ${HOME}/.local/bin/repo
echo PATH="${HOME}/.local/bin:${PATH}" >> $GITHUB_ENV
- shell: bash
run: |
:
repo init -u ${{ env.MANIFEST_URI }} -b main -m distro-head-${{ inputs.DISTRO_CODENAME }}.xml --no-clone-bundle
repo sync
- shell: bash
run: |
:
.repo/manifests/.github/scripts/setup-home-links.sh
.repo/manifests/.github/scripts/setup-host-deps.sh
- shell: bash
run: |
:
distros="${{ inputs.DISTRO }}"
machines="${{ inputs.MACHINE }}"
targets="${{ env.BITBAKE_TARGETS }}"
echo scripts/images-build.sh --distro="${distros}" --machine="${machines}" --target="${targets}" --fetch-downloads
- shell: bash
run: |
:
distros="${{ inputs.DISTRO }}"
machines="${{ inputs.MACHINE }}"
targets="${{ env.BITBAKE_TARGETS }}"
echo scripts/images-build.sh --distro="${distros}" --machine="${machines}" --target="${targets}"
- shell: bash
run: |
:
distros="${{ inputs.DISTRO }}"
machines="${{ inputs.MACHINE }}"
targets="${{ env.BITBAKE_TARGETS }}"
echo s3cmd rm --recursive --force s3://distro-core-downloads
echo s3cmd sync --recursive --progress --acl-public --no-delete-removed \
--exclude 'git2/*' --exclude '*.done' --exclude '*.lock' --exclude 'tmp*' --exclude '*tmp' \
build/downloads/ s3://distro-core-downloads
- shell: bash
run: |
:
distros="${{ inputs.DISTRO }}"
machines="${{ inputs.MACHINE }}"
targets="${{ env.BITBAKE_TARGETS }}"
echo s3cmd rm --recursive --force s3://distro-core-sstate-cache
echo s3cmd sync --recursive --progress --acl-public --no-delete-removed \
build/downloads/ s3://distro-core-sstate-cache