From cdad25a193eabdfbaa449f0eb70ea965d4d102b8 Mon Sep 17 00:00:00 2001 From: "Azzam S.A" <17734314+azzamsa@users.noreply.github.com> Date: Tue, 2 Jul 2024 18:50:56 +0700 Subject: [PATCH] chore(ci): use pre-compiled binary on CI (#2429) ## Description Quoting from #2394 > Compiling `cross` on CI takes more time compared to pulling the binary directly from a GitHub release. > We can use [taiki-e/install-action](https://github.com/taiki-e/install-action) to pull the binary directly from the GitHub release. This action supports tagging a specific release or using the latest version. ## Breaking Changes No. ## Notes & open questions ## Change checklist - [ ] Self-review. - [ ] Documentation updates if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. Closes #2394 Co-authored-by: Asmir Avdicevic --- .github/workflows/ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd4823458e..8ad9b6283d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,9 +57,8 @@ jobs: run: | docker kill $(docker ps -q) - - name: Install cross # See https://github.com/cross-rs/cross/issues/1222 - run: cargo install cross --git https://github.com/cross-rs/cross + - uses: taiki-e/install-action@cross - name: build # cross tests are currently broken vor armv7 and aarch64 @@ -139,9 +138,8 @@ jobs: run: | docker kill $(docker ps -q) - - name: Install cross # See https://github.com/cross-rs/cross/issues/1222 - run: cargo install cross --git https://github.com/cross-rs/cross + - uses: taiki-e/install-action@cross - name: test run: cross test --all --target ${{ matrix.target }} -- --test-threads=12