From c2027fb3775f5b92a4ef1e457cf033b4d497cdfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Fija=C5=82kowski?= Date: Sun, 4 Dec 2022 01:18:13 +0100 Subject: [PATCH] Install precompiled `cross` tool instead of building it --- .github/workflows/ci.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b6681fd..5073406 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -63,10 +63,11 @@ jobs: env: VAULT_ADDR: "http://127.0.0.1:8200" VAULT_TOKEN: "test-token" + - uses: taiki-e/install-action@cross + if: ${{ matrix.target }} != 'x86_64-unknown-linux-gnu' - name: "cargo test" run: | if [[ "${{ matrix.target }}" != 'x86_64-unknown-linux-gnu' ]]; then - cargo install cross --git https://github.com/cross-rs/cross --tag v0.2.4 tool=cross else tool=cargo @@ -131,10 +132,11 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: target: ${{ matrix.target }} + - uses: taiki-e/install-action@cross + if: ${{ matrix.target }} != 'x86_64-unknown-linux-gnu' - name: Build run: | if [[ "${{ matrix.target }}" != 'x86_64-unknown-linux-gnu' ]]; then - cargo install cross --git https://github.com/cross-rs/cross --tag v0.2.4 tool=cross else tool=cargo