Skip to content

Commit c2a9fb0

Browse files
authored
Merge pull request #1978 from iquiw/netbsd-target
ci: Add NetBSD target to build on Travis CI
2 parents 9f7e2d4 + bfe137b commit c2a9fb0

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ matrix:
4444
- { <<: *linuxstable, env: SKIP_TESTS=1 TARGET=arm-unknown-linux-gnueabihf }
4545
- { <<: *linuxalways, env: SKIP_TESTS=1 TARGET=armv7-unknown-linux-gnueabihf }
4646
- { <<: *linuxstable, env: SKIP_TESTS=1 TARGET=x86_64-unknown-freebsd }
47+
- { <<: *linuxstable, env: SKIP_TESTS=1 TARGET=x86_64-unknown-netbsd }
4748
- { <<: *linuxstable, env: SKIP_TESTS=1 TARGET=powerpc-unknown-linux-gnu }
4849
- { <<: *linuxmaster, env: SKIP_TESTS=1 TARGET=powerpc64-unknown-linux-gnu }
4950
- { <<: *linuxstable, env: SKIP_TESTS=1 TARGET=powerpc64le-unknown-linux-gnu }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM rust-x86_64-unknown-netbsd
2+
3+
ENV CARGO_TARGET_X86_64_UNKNOWN_NETBSD_LINKER=x86_64--netbsd-gcc-sysroot

ci/fetch-rust-docker.bash

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ case "$TARGET" in
3131
s390x-unknown-linux-gnu) image=dist-s390x-linux ;;
3232
x86_64-unknown-freebsd) image=dist-x86_64-freebsd ;;
3333
x86_64-unknown-linux-gnu) image=dist-x86_64-linux ;;
34+
x86_64-unknown-netbsd) image=dist-x86_64-netbsd ;;
3435
*) exit ;;
3536
esac
3637

0 commit comments

Comments
 (0)