diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f2f1829c..13b409a8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,7 @@ jobs: - target: aarch64-unknown-linux-gnu os: ubuntu-latest name: linux-amd64.tar.gz + cross: true # - target: x86_64-apple-darwin # os: macos-latest @@ -91,8 +92,17 @@ jobs: cache-on-failure: true - name: Build | Build + if: !matrix.cross run: cargo build --release --locked --target ${{ matrix.target }} + - name: Build | Build (cross-compile) + if: matrix.cross + uses: actions-rs/cargo@9e120dd99b0fbad1c065f686657e914e76bd7b72 + with: + command: build + args: --release --locked --target ${{ matrix.target }} + use-cross: ${{ matrix.cross }} + - name: Post Build | Prepare artifacts [Windows] if: matrix.os == 'windows-latest' run: |