.github: Use correct toolchain version for release builds

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2022-04-13 14:55:07 +01:00 committed by Bo Chen
parent a63d526423
commit cd2b167b33

View File

@ -24,9 +24,17 @@ jobs:
toolchain: 1.58 toolchain: 1.58
target: x86_64-unknown-linux-musl target: x86_64-unknown-linux-musl
- name: Build - name: Build
run: cargo build --all --release --target=x86_64-unknown-linux-gnu uses: actions-rs/cargo@v1
with:
toolchain: 1.58
command: build
args: --all --release --target=x86_64-unknown-linux-gnu
- name: Static Build - name: Static Build
run: cargo build --all --release --target=x86_64-unknown-linux-musl uses: actions-rs/cargo@v1
with:
toolchain: 1.58
command: build
args: --all --release --target=x86_64-unknown-linux-musl
- name: Strip cloud-hypervisor binaries - name: Strip cloud-hypervisor binaries
run: strip target/*/release/cloud-hypervisor run: strip target/*/release/cloud-hypervisor
- name: Install Rust toolchain (aarch64-unknown-linux-musl) - name: Install Rust toolchain (aarch64-unknown-linux-musl)