rust 1.91.1 and some fixes #121
Workflow file for this run
This file contains hidden or 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
| on: [pull_request] | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| branch: | |
| - {distro: kirkstone, version: 4.0.1, machine: qemux86-64} | |
| - {distro: langdale, version: 4.1.4, machine: qemux86-64} | |
| - {distro: mickledore, version: 4.2.2, machine: qemux86-64} | |
| - {distro: scarthgap, version: 5.0.7, machine: qemux86-64} | |
| - {distro: scarthgap, version: 5.0.7, machine: qemuarm64} | |
| - {distro: scarthgap, version: 5.0.7, machine: qemuarm} | |
| env: | |
| YOCTO_VERSION: ${{ matrix.branch.version }} | |
| YOCTO_BRANCH: ${{ matrix.branch.distro }} | |
| YOCTO_MACHINE: ${{ matrix.branch.machine }} | |
| 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 $YOCTO_BRANCH --single-branch git://git.yoctoproject.org/poky | |
| git clone -b $YOCTO_BRANCH --single-branch git://git.openembedded.org/meta-openembedded | |
| - name: Configure build | |
| run: | | |
| cd poky | |
| . oe-init-build-env | |
| mv ../../sstate-cache . || true | |
| bitbake-layers add-layer ../../meta-openembedded/meta-oe | |
| sed -ie "/^BBLAYERS/a $(readlink -f ../../meta-rust) \\\\" conf/bblayers.conf | |
| echo "MACHINE = \"$YOCTO_MACHINE\"" >> conf/local.conf | |
| echo 'PARALLEL_MAKE:pn-rust-llvm-native = "-j2"' >> conf/local.conf | |
| echo 'TOOLCHAIN_HOST_TASK:append = " packagegroup-rust-cross-canadian-${MACHINE}"' >> conf/local.conf | |
| echo 'PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"' >> conf/local.conf | |
| echo 'INHERIT:remove = "uninative"' >> conf/local.conf | |
| echo 'require conf/distro/include/rust_versions.inc' >> conf/local.conf | |
| - name: Run bitbake | |
| run: | | |
| cd poky | |
| . oe-init-build-env | |
| bitbake rust-hello-world | |
| if [ "$YOCTO_BRANCH" != kirkstone ]; then | |
| bitbake python3-cryptography | |
| fi |