ci(github): install cross from release page

Instead of compiling `cross` via `cargo install`,
downloading binary executable from release page will speedup the CI
This commit is contained in:
Fahmi Akbar Wildana 2019-10-07 02:53:23 +07:00
parent 8bd035f51d
commit b163775112
No known key found for this signature in database
GPG Key ID: 86D1FDF35E9D3807

View File

@ -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: |