Skip to content

Build SDKs for Slint CI #6

Build SDKs for Slint CI

Build SDKs for Slint CI #6

Workflow file for this run

name: Build SDKs for Slint CI
on:
workflow_dispatch:
jobs:
prepare_env:
runs-on: ubuntu-latest
name: Create new Hetzner Cloud instance for build
steps:
- uses: stonemaster/hetzner-github-runner@v2
with:
github-api-key: ${{ secrets.GH_API_KEY }}
hetzner-api-key: ${{ secrets.HETZNER_API_KEY }}
hetzner-instance-type: cpx41
build:
runs-on: self-hosted
needs: prepare_env
steps:
- name: "Set up build env"
run: |
sudo apt-get update
sudo apt-get install -y chrpath diffstat lz4 locales build-essential wget cpio file gawk zstd python3 python3-distutils
sudo locale-gen en_US.UTF-8
sudo update-locale
- name: "Fetch Yocto Sources"
run: |
git clone -b scarthgap git://git.yoctoproject.org/poky
git clone -b scarthgap git://git.openembedded.org/meta-openembedded
git clone -b scarthgap https://github.com/kraj/meta-clang.git
- name: "Set up Layers, local.conf"
run: |
cd poky
. oe-init-build-env
bitbake-layers add-layer ../../meta-openembedded/meta-oe
bitbake-layers add-layer ../../meta-clang
echo 'MACHINE = "qemuarm"' >> conf/local.conf
- name: Initial build (without clang)
run: |
cd poky
. oe-init-build-env
bitbake core-image-weston-sdk -c populate_sdk
- name: Second build, but with clang (to avoid OOM)
run: |
cd poky
. oe-init-build-env
echo 'CLANGSDK = "1"' >> conf/local.conf
bitbake core-image-weston-sdk -c populate_sdk
- run: |
cd poky
. oe-init-build-env
for file in tmp/deploy/images/poky-glibc-*-core-image-weston*toolchain*; do
curl -T $file -H "X-Requested-With: XMLHttpRequest" -u ${{ secrets.NEXTCLOUD_SDK_FOLDER_TOKEN }}: "${{ secrets.NEXTCLOUD_SDK_URL }}/$file"
done