Skip to content

Commit

Permalink
.github: add base workflow for GitHub actions
Browse files Browse the repository at this point in the history
This allows testing master and PRs against master.

Tests are executed on a ubuntu-20.04 default github actions runner.
As runner storage limitations and test duration expectations would be
exceeded significantly, we use a custom pre-generated sstate cache.

Signed-off-by: Enrico Jorns <[email protected]>
  • Loading branch information
ejoerns committed Nov 9, 2020
1 parent 8e04969 commit 9ebe34f
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/meta-rauc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: meta-rauc CI

on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: meta-rauc Build
runs-on: ubuntu-20.04
timeout-minutes: 720
steps:
- name: Install required packages
run: |
sudo apt-get install diffstat
- name: Checkout
uses: actions/checkout@v2
with:
branch: master
path: meta-rauc
- name: Clone poky
run: git clone -b master git://git.yoctoproject.org/poky
- name: Clone meta-openembedded
run: git clone -b master https://github.com/openembedded/meta-openembedded.git
- name: Initialize build directory
run: |
source poky/oe-init-build-env build
bitbake-layers add-layer ../meta-rauc
echo 'INHERIT += "rm_work"' >> conf/local.conf
echo 'DISTRO_FEATURES_remove = "alsa bluetooth usbgadget usbhost wifi nfs zeroconf pci 3g nfc x11 opengl ptest wayland vulkan"' >> conf/local.conf
echo 'SSTATE_MIRRORS = "file://.* http://195.201.147.117/sstate-cache/PATH"' >> conf/local.conf
- name: Build rauc, rauc-native
run: |
source poky/oe-init-build-env build
bitbake rauc rauc-native
- name: Build rauc-hawkbit-updater
run: |
source poky/oe-init-build-env build
bitbake rauc-hawkbit-updater
- name: Build casync, casync-native
run: |
source poky/oe-init-build-env build
bitbake-layers add-layer ../meta-openembedded/meta-oe
bitbake-layers add-layer ../meta-openembedded/meta-filesystems
bitbake casync casync-native
- name: Build rauc-hawkbit
run: |
source poky/oe-init-build-env build
bitbake-layers add-layer ../meta-openembedded/meta-python
bitbake rauc-hawkbit

0 comments on commit 9ebe34f

Please sign in to comment.