Skip to content

Commit

Permalink
Install precompiled cross tool instead of building it
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubfijalkowski committed Dec 4, 2022
1 parent 9dab6af commit c2027fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c2027fb

Please sign in to comment.