Skip to content

Commit

Permalink
Test static,vendored cross-compilation in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kxxt committed Aug 16, 2024
1 parent c1097d6 commit 7d26b5d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
os-arch: amd64
args: ''

- rust-target: x86_64-unknown-linux-gnu
os-target: x86_64-linux-gnu
os-arch: amd64
args: '-F static,vendored'

- rust-target: x86_64-unknown-linux-gnu
os-target: x86_64-linux-gnu
os-arch: amd64
Expand All @@ -25,6 +30,16 @@ jobs:
os-target: aarch64-linux-gnu
os-arch: arm64
args: ''
# Test cross-compilation to aarch64
- rust-target: aarch64-unknown-linux-gnu
os-target: aarch64-linux-gnu
os-arch: arm64
args: '-F static,vendored'
# Test cross-compilation to riscv64
- rust-target: riscv64gc-unknown-linux-gnu
os-target: riscv64-linux-gnu
os-arch: riscv64
args: '-F static,vendored'
runs-on: ubuntu-22.04
env:
CARGO_BUILD_TARGET: ${{ matrix.rust-target }}
Expand Down Expand Up @@ -53,6 +68,8 @@ jobs:
sudo apt-get update
sudo apt-get install \
build-essential \
autopoint \
gettext \
libelf-dev:${{ matrix.os-arch }} \
zlib1g-dev:${{ matrix.os-arch }}
Expand Down

0 comments on commit 7d26b5d

Please sign in to comment.