From cd2b167b339119560ae733aad1d2e224ea1bb337 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 13 Apr 2022 14:55:07 +0100 Subject: [PATCH] .github: Use correct toolchain version for release builds Signed-off-by: Rob Bradford --- .github/workflows/release.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d0ec0cfc7..7365e7eac 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -24,9 +24,17 @@ jobs: toolchain: 1.58 target: x86_64-unknown-linux-musl - 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 - 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 run: strip target/*/release/cloud-hypervisor - name: Install Rust toolchain (aarch64-unknown-linux-musl)