-
Notifications
You must be signed in to change notification settings - Fork 6
61 lines (57 loc) · 2.1 KB
/
ci.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
name: 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:
- uses: actions/checkout@v3
with:
path: 'meta-slint'
- 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
- run: |
git clone -b kirkstone git://git.yoctoproject.org/poky
git clone -b kirkstone git://git.openembedded.org/meta-openembedded
git clone -b master https://github.com/rust-embedded/meta-rust-bin.git
git clone -b kirkstone https://github.com/kraj/meta-clang.git
- run: |
cd poky
. oe-init-build-env
bitbake-layers add-layer ../../meta-openembedded/meta-oe
bitbake-layers add-layer ../../meta-rust-bin
bitbake-layers add-layer ../../meta-clang
bitbake-layers add-layer ../../meta-slint
echo 'PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"' >> conf/local.conf
echo 'MACHINE = "qemuarm64"' >> conf/local.conf
echo 'CLANGSDK = "1"' >> conf/local.conf
echo 'PACKAGECONFIG:append:pn-slint-cpp = " backend-linuxkms renderer-skia system-testing"' >> conf/local.conf
- run: |
cd poky
. oe-init-build-env
bitbake -c compile slint-hello-world
bitbake -c compile slint-demos
- run: |
for dir in poky meta-openembedded meta-clang; do
pushd $dir
git checkout -f scarthgap
popd
done
- run: |
cd poky
. oe-init-build-env
bitbake -c compile slint-hello-world
bitbake -c compile slint-demos