2020-05-14 08:12:31 +00:00
|
|
|
name: Cloud Hypervisor Cross Build
|
|
|
|
on: [pull_request, create]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
if: github.event_name == 'pull_request'
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
rust:
|
2020-10-09 00:00:26 +00:00
|
|
|
- 1.46.0
|
2020-05-14 08:12:31 +00:00
|
|
|
target:
|
|
|
|
- aarch64-unknown-linux-gnu
|
|
|
|
- aarch64-unknown-linux-musl
|
|
|
|
steps:
|
|
|
|
- name: Code checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Rust toolchain (${{ matrix.rust }})
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: ${{ matrix.rust }}
|
|
|
|
target: ${{ matrix.target }}
|
|
|
|
override: true
|
2020-06-03 06:38:17 +00:00
|
|
|
- name: Install arm64 libfdt
|
2021-01-20 12:00:52 +00:00
|
|
|
run: wget http://ftp.us.debian.org/debian/pool/main/d/device-tree-compiler/libfdt-dev_1.6.0-1_arm64.deb && dpkg-deb -xv libfdt-dev_1.6.0-1_arm64.deb ./tlibfdtdev && mkdir -p target/debug/deps && cp ./tlibfdtdev/usr/lib/aarch64-linux-gnu/libfdt.a target/debug/deps/ && echo "libfdt copied into build tree"
|
2020-05-14 08:12:31 +00:00
|
|
|
- name: Build
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
use-cross: true
|
|
|
|
command: build
|
2020-10-15 12:15:41 +00:00
|
|
|
args: --target=${{ matrix.target }} --no-default-features --features "kvm"
|