mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 17:13:29 +08:00
ci: add build using IGC from ppa on Ubuntu 16.04
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com> https://github.com/intel/compute-runtime/pull/65 Change-Id: I5d23a33b63cd7aa0db8d1e67fdae86aae3daba5d
This commit is contained in:
committed by
sys_ocldev
parent
aa7662e8b4
commit
fccc5242c2
25
scripts/build-ubuntu-16.4-ppa-docker.sh
Executable file
25
scripts/build-ubuntu-16.4-ppa-docker.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
# Copyright (c) 2018, Intel Corporation
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
# and/or sell copies of the Software, and to permit persons to whom the
|
||||
# Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included
|
||||
# in all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
# OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
git fetch -t
|
||||
git clone ../compute-runtime neo
|
||||
docker build -f scripts/docker/Dockerfile-ubuntu-16.04-ppa-gcc-5 -t neo-ubuntu-16.04-ppa-gcc-5:ci .
|
||||
|
||||
13
scripts/docker/Dockerfile-ubuntu-16.04-ppa-gcc-5
Normal file
13
scripts/docker/Dockerfile-ubuntu-16.04-ppa-gcc-5
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM docker.io/ubuntu:16.04
|
||||
MAINTAINER Jacek Danecki <jacek.danecki@intel.com>
|
||||
|
||||
COPY neo /root/neo
|
||||
|
||||
RUN echo "deb http://ppa.launchpad.net/jdanecki/intel-opencl/ubuntu xenial main" >> /etc/apt/sources.list; \
|
||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7B77841DF9C7FE04; \
|
||||
apt-get -y update ; apt-get install -y --allow-unauthenticated cmake g++-5 git pkg-config ninja-build intel-igc-opencl-dev
|
||||
RUN cd /root; git clone --depth 1 https://github.com/intel/gmmlib gmmlib
|
||||
RUN mkdir /root/build; cd /root/build ; cmake -G Ninja -DBUILD_TYPE=Release -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_C_COMPILER=gcc-5 -DCMAKE_CXX_COMPILER=g++-5 ../neo; \
|
||||
ninja -j `nproc`
|
||||
CMD ["/bin/bash"]
|
||||
Reference in New Issue
Block a user