Merge pull request #329 from srwalter/workflow

Enable a workflow to build rust-hello-world
This commit is contained in:
Steven Walter
2021-03-28 17:16:44 -04:00
committed by GitHub

23
.github/workflows/main.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
on: [pull_request]
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
with:
path: 'meta-rust'
- name: Fetch poky
run: |
mv poky/build/sstate-cache . || true
rm -rf poky meta-openembedded
git clone -b gatesgarth --single-branch git://git.yoctoproject.org/poky
git clone -b gatesgarth --single-branch git://git.openembedded.org/meta-openembedded
- name: Run bitbake
run: |
cd poky
. oe-init-build-env
mv ../../sstate-cache . || true
bitbake-layers add-layer ../../meta-openembedded/meta-oe
bitbake-layers add-layer ../../meta-rust
echo 'PARALLEL_MAKE_pn-rust-llvm-native = "-j2"' >> conf/local.conf
bitbake rust-hello-world