Skip to content

Commit

Permalink
Add mipsel to Github Actions CI setup
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU committed Nov 24, 2020
1 parent 044575d commit e4ad655
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ jobs:
- i686-pc-windows-msvc
- i686-unknown-linux-gnu
- i686-unknown-linux-musl
- mipsel-unknown-linux-gnu
- x86_64-pc-windows-gnu
- x86_64-pc-windows-msvc
- x86_64-apple-darwin
Expand Down Expand Up @@ -167,6 +168,9 @@ jobs:
- target: i686-unknown-linux-musl
host_os: ubuntu-18.04

- target: mipsel-unknown-linux-gnu
host_os: ubuntu-18.04

- target: x86_64-pc-windows-gnu
host_os: windows-latest

Expand Down
7 changes: 7 additions & 0 deletions mk/cargo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ IFS=$'\n\t'
rustflags_self_contained="-Clink-self-contained=yes -Clinker=rust-lld"
qemu_aarch64="qemu-aarch64 -L /usr/aarch64-linux-gnu"
qemu_arm="qemu-arm -L /usr/arm-linux-gnueabihf"
qemu_mipsel="qemu-system-mipsel -L /usr/mipsel-linux-gnu"

# Avoid putting the Android tools in `$PATH` because there are tools in this
# directory like `clang` that would conflict with the same-named tools that may
Expand Down Expand Up @@ -74,6 +75,12 @@ for arg in $*; do
export AR_i686_unknown_linux_musl=llvm-ar-10
export CARGO_TARGET_I686_UNKNOWN_LINUX_MUSL_LINKER=clang-10
;;
--target=mipsel-unknown-linux-gnu)
export CC_mipsel_unknown_linux_gnu=mipsel-linux-gnu-gcc
export AR_mipsel_unknown_linux_gnu=mipsel-linux-gnu-gcc-ar
export CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_GNU_LINKER=mipsel-linux-gnu-gcc
export CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_GNU_RUNNER="$qemu_mipsel"
;;
--target=x86_64-unknown-linux-musl)
export CC_x86_64_unknown_linux_musl=clang-10
export AR_x86_64_unknown_linux_musl=llvm-ar-10
Expand Down
6 changes: 6 additions & 0 deletions mk/install-build-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ case $target in
--target=i686-unknown-linux-musl|--target=x86_64-unknown-linux-musl)
use_clang=1
;;
--target=mipsel-unknown-linux-gnu)
install_packages \
qemu-user \
gcc-mipsel-linux-gnu \
libc6-dev-mipsel-cross
;;
--target=wasm32-unknown-unknown)
cargo install wasm-bindgen-cli --vers "0.2.68" --bin wasm-bindgen-test-runner
case ${features-} in
Expand Down

0 comments on commit e4ad655

Please sign in to comment.