mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-26 23:55:18 +00:00
e685854f16
The release one is always skipped for PRs which can be confusing for e.g. dependabot. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
26 lines
565 B
YAML
26 lines
565 B
YAML
name: Cloud Hypervisor Build
|
|
on: [pull_request, create]
|
|
|
|
jobs:
|
|
build:
|
|
if: github.event_name == 'pull_request'
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
rust:
|
|
- stable
|
|
- beta
|
|
- nightly
|
|
steps:
|
|
- name: Code checkout
|
|
uses: actions/checkout@v2
|
|
- name: Install Rust toolchain (${{ matrix.rust }})
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: ${{ matrix.rust }}
|
|
override: true
|
|
|
|
- name: Build
|
|
run: cargo build --release
|