2020-04-23 10:59:18 +00:00
|
|
|
name: Cloud Hypervisor Build
|
2020-03-12 09:03:27 +00:00
|
|
|
on: [pull_request, create]
|
2020-03-05 11:16:51 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-03-12 09:03:27 +00:00
|
|
|
if: github.event_name == 'pull_request'
|
2020-03-05 11:16:51 +00:00
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
2020-03-13 09:45:50 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
rust:
|
|
|
|
- stable
|
|
|
|
- beta
|
2020-04-20 06:07:17 +00:00
|
|
|
target:
|
|
|
|
- x86_64-unknown-linux-gnu
|
|
|
|
- x86_64-unknown-linux-musl
|
2020-03-05 11:16:51 +00:00
|
|
|
steps:
|
|
|
|
- name: Code checkout
|
|
|
|
uses: actions/checkout@v2
|
2020-03-13 09:45:50 +00:00
|
|
|
- name: Install Rust toolchain (${{ matrix.rust }})
|
2020-03-05 11:16:51 +00:00
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2020-03-13 09:45:50 +00:00
|
|
|
toolchain: ${{ matrix.rust }}
|
2020-04-20 06:07:17 +00:00
|
|
|
target: ${{ matrix.target }}
|
2020-03-05 11:16:51 +00:00
|
|
|
override: true
|
|
|
|
|
|
|
|
- name: Build
|
2020-04-20 06:07:17 +00:00
|
|
|
run: cargo build --release --target=${{ matrix.target }}
|