From b1637751124eb970b849465303a1d6f080e4b563 Mon Sep 17 00:00:00 2001 From: Fahmi Akbar Wildana Date: Mon, 7 Oct 2019 02:53:23 +0700 Subject: [PATCH] =?UTF-8?q?ci(github):=20install=20cross=20from=20release?= =?UTF-8?q?=20page=20=E2=9A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of compiling `cross` via `cargo install`, downloading binary executable from release page will speedup the CI --- .github/workflows/docker-publish.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 34c40d5ced..a0a027ff53 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -14,7 +14,11 @@ jobs: - x86_64-unknown-linux-gnu steps: - uses: actions/checkout@v1 - - run: cargo install cross + - name: Install rust-embedded/cross + env: { VERSION: v0.1.16 } + run: >- + wget -nv https://github.com/rust-embedded/cross/releases/download/${VERSION}/cross-${VERSION}-x86_64-unknown-linux-gnu.tar.gz + -O- | sudo tar xz -C /usr/local/bin/ - name: compile for specific target env: { arch: '${{ matrix.arch }}' } run: |