Skip to content

Commit

Permalink
Only use cross for non-host targets
Browse files Browse the repository at this point in the history
  • Loading branch information
adamspofford-dfinity committed Oct 31, 2024
1 parent 172bad7 commit c09ebd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,14 @@ jobs:
if: ${{ matrix.target }}
run: rustup target add ${{ matrix.target }}

- uses: taiki-e/install-action@v2
- if: ${{ matrix.target }}
uses: taiki-e/install-action@v2
with:
tool: cross@0.2.5

- name: Build
run: >
cross build
${{ matrix.target && 'cross' || 'cargo' }} build
${{ matrix.target && format('--target {0}', matrix.target) }}
${{ matrix.features && format('--no-default-features --features "{0}"', join(matrix.features)) }}
--release --locked
Expand Down

0 comments on commit c09ebd0

Please sign in to comment.