From 0f9aaa4be50c47217ab38f422edc2e66c574a805 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Fri, 28 Oct 2022 16:11:18 -0700 Subject: [PATCH] Use prebuilt binaries in ci (#182) --- .github/workflows/rust.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d7fb0f6b..3a493ff9 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -56,7 +56,10 @@ jobs: - uses: stellar/actions/rust-cache@main - run: rustup update - run: rustup target add ${{ matrix.sys.target }} - - run: cargo install --target-dir ~/.cargo/target --locked --version 0.5.16 cargo-hack + - uses: stellar/binaries@v12 + with: + name: cargo-hack + version: 0.5.16 - if: "github.ref_protected" run: echo 'CARGO_HACK_ARGS=--feature-powerset' >> $GITHUB_ENV - if: "!github.ref_protected" @@ -81,7 +84,10 @@ jobs: - uses: stellar/actions/rust-cache@main - run: rustup update - run: rustup target add ${{ matrix.sys.target }} - - run: cargo install --target-dir ~/.cargo/target --locked --version 0.5.16 cargo-hack + - uses: stellar/binaries@v12 + with: + name: cargo-hack + version: 0.5.16 - if: "github.ref_protected" run: echo 'CARGO_HACK_ARGS=--feature-powerset' >> $GITHUB_ENV - if: "!github.ref_protected"