build-stm32mp157-sdk-images #43
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-stm32mp157-sdk-images | |
on: | |
workflow_dispatch: | |
inputs: | |
yocto-image: | |
description: "The yocto image to build" | |
required: false | |
default: "st-image-weston" | |
jobs: | |
build-yocto: | |
runs-on: [self-hosted, build] | |
container: | |
image: ghcr.io/avnet-iotconnect/meta-iotconnect/stm32mp157-iotc-sdk-kirkstone:latest | |
options: --user pokyuser | |
credentials: | |
username: ${{github.actor}} | |
password: ${{secrets.GHCR_PAT}} | |
steps: | |
- uses: webfactory/ssh-agent@v0.9.0 | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: "Run yocto build" | |
run: | | |
cd /home/pokyuser | |
cd STM32MP157_IoTC_kirkstone/ | |
set -x | |
set +e | |
ls -lrth layers/meta-st/scripts/envsetup.sh | |
MACHINE=stm32mp1 DISTRO=openstlinux-weston EULA_stm32mp1=1 source layers/meta-st/scripts/envsetup.sh | |
cd ../ | |
source layers/openembedded-core/oe-init-build-env build-openstlinuxweston-stm32mp1 | |
git config --global user.email "ci-avnet@example.com" | |
git config --global user.name "CI Avnet" | |
ssh-keyscan github.com >> ~/.ssh/known_hosts | |
git clone https://github.com/avnet-iotconnect/meta-iotconnect.git -b kirkstone ../layers/meta-iotconnect | |
bitbake-layers add-layer ../layers/meta-iotconnect | |
bitbake ${{ github.event.inputs.yocto-image }} | |
ls -lrth /home/pokyuser/STM32MP157_IoTC_kirkstone/build-openstlinuxweston-stm32mp1/tmp-glibc/deploy/images/stm32mp1/${{ github.event.inputs.yocto-image }}-stm32mp157.tsv | |
ls -lrth /home/pokyuser/STM32MP157_IoTC_kirkstone/build-openstlinuxweston-stm32mp1/tmp-glibc/deploy/images/stm32mp1 | |
shell: bash {0} | |
- uses: hkusu/s3-upload-action@v2.1.0 | |
id: s3-upload | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: 'us-east-1' | |
aws-bucket: 'iotconnect-sdk-images' | |
file-path: /home/pokyuser/STM32MP157_IoTC_kirkstone/build-openstlinuxweston-stm32mp1/tmp-glibc/deploy/images/stm32mp1/flashlayout_st-image-weston/trusted/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv | |
destination-dir: '/' | |
bucket-root: 'sdk-images' | |
public: true | |
output-file-url: 'true' |