Enable CI for nvptx64-nvidia-cuda

This commit is contained in:
Denys Zariaiev 2019-01-24 01:13:52 +01:00
parent d3903d5f9c
commit 97c8e82fe0
3 changed files with 21 additions and 0 deletions

View file

@ -186,6 +186,8 @@ matrix:
if: branch = auto
- env: IMAGE=mingw-check
if: type = pull_request OR branch = auto
- env: IMAGE=nvptx-cuda
if: branch = auto
- stage: publish toolstate
if: branch = master AND type = push

View file

@ -70,6 +70,7 @@ ENV TARGETS=$TARGETS,x86_64-sun-solaris
ENV TARGETS=$TARGETS,x86_64-unknown-linux-gnux32
ENV TARGETS=$TARGETS,x86_64-unknown-cloudabi
ENV TARGETS=$TARGETS,x86_64-fortanix-unknown-sgx
ENV TARGETS=$TARGETS,nvptx64-nvidia-cuda
ENV X86_FORTANIX_SGX_LIBS="/x86_64-fortanix-unknown-sgx/lib/"

View file

@ -0,0 +1,18 @@
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
g++ make file curl ca-certificates python git \
cmake sudo gdb
# TODO(denzp): setup `ptx-linker` CI for auttomatic binary releases.
RUN curl -sL https://github.com/denzp/rust-ptx-linker/releases/download/v0.9.0-alpha/rust-ptx-linker.linux64.tar.gz | \
tar -xzvC /usr/bin
COPY scripts/sccache.sh /scripts/
RUN sh /scripts/sccache.sh
ENV TARGETS=nvptx64-nvidia-cuda
ENV SCRIPT python2.7 /checkout/x.py test --target $TARGETS \
src/test/run-make