Add custom environment for ARM Linux cross-compilation
This commit is contained in:
parent
2f62df492b
commit
16327cf5c5
|
|
@ -83,6 +83,7 @@ jobs:
|
||||||
- check_only: false
|
- check_only: false
|
||||||
- extra_test_args: ''
|
- extra_test_args: ''
|
||||||
- apt_packages: ''
|
- apt_packages: ''
|
||||||
|
- custom_env: {}
|
||||||
- thing: stable
|
- thing: stable
|
||||||
target: x86_64-unknown-linux-gnu
|
target: x86_64-unknown-linux-gnu
|
||||||
rust: stable
|
rust: stable
|
||||||
|
|
@ -136,12 +137,20 @@ jobs:
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
apt_packages: gcc-arm-linux-gnueabi g++-arm-linux-gnueabi
|
apt_packages: gcc-arm-linux-gnueabi g++-arm-linux-gnueabi
|
||||||
check_only: true
|
check_only: true
|
||||||
|
custom_env:
|
||||||
|
CC: arm-linux-gnueabi-gcc
|
||||||
|
CXX: arm-linux-gnueabi-g++
|
||||||
|
CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABI_LINKER: arm-linux-gnueabi-g++
|
||||||
- thing: aarch64-linux
|
- thing: aarch64-linux
|
||||||
target: aarch64-unknown-linux-gnu
|
target: aarch64-unknown-linux-gnu
|
||||||
rust: stable
|
rust: stable
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
apt_packages: crossbuild-essential-arm64
|
apt_packages: crossbuild-essential-arm64
|
||||||
check_only: true
|
check_only: true
|
||||||
|
custom_env:
|
||||||
|
CC: aarch64-linux-gnu-gcc
|
||||||
|
CXX: aarch64-linux-gnu-g++
|
||||||
|
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-g++
|
||||||
- thing: x86_64-mingw
|
- thing: x86_64-mingw
|
||||||
target: x86_64-pc-windows-gnu
|
target: x86_64-pc-windows-gnu
|
||||||
rust: stable
|
rust: stable
|
||||||
|
|
@ -187,10 +196,12 @@ jobs:
|
||||||
- if: "!matrix.check_only"
|
- if: "!matrix.check_only"
|
||||||
run: cargo test --target ${{ matrix.target }} ${{ matrix.extra_test_args }}
|
run: cargo test --target ${{ matrix.target }} ${{ matrix.extra_test_args }}
|
||||||
name: Run tests
|
name: Run tests
|
||||||
|
env: ${{ matrix.custom_env }}
|
||||||
- if: matrix.check_only
|
- if: matrix.check_only
|
||||||
# We `build` because we want the linker to verify we are cross-compiling correctly.
|
# We `build` because we want the linker to verify we are cross-compiling correctly.
|
||||||
run: cargo build --target ${{ matrix.target }} --tests
|
run: cargo build --target ${{ matrix.target }} --tests
|
||||||
name: Build tests
|
name: Build tests
|
||||||
|
env: ${{ matrix.custom_env }}
|
||||||
- name: Test boring-sys cargo publish
|
- name: Test boring-sys cargo publish
|
||||||
# Running `cargo publish --dry-run` tests two things:
|
# Running `cargo publish --dry-run` tests two things:
|
||||||
#
|
#
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue