diff --git a/.github/workflows/build-native.yml b/.github/workflows/build-native.yml index 148ee749b..47378b86e 100644 --- a/.github/workflows/build-native.yml +++ b/.github/workflows/build-native.yml @@ -46,8 +46,10 @@ jobs: - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable - with: - targets: ${{ matrix.target }} + + - name: Add Rust cross-compilation target + if: matrix.cross + run: rustup target add ${{ matrix.target }} - name: Cache Rust build artifacts uses: Swatinem/rust-cache@v2