Skip to content

Commit

Permalink
setup cross-compilation on Linux
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Bajtoš <[email protected]>
  • Loading branch information
bajtos committed Apr 12, 2023
1 parent b13dbd5 commit 5e44c0e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 5e44c0e

Please sign in to comment.