mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
ci: build Neo using IGC from Fedora 28 copr repository
Change-Id: Ica65281d26065e52c367720f46ded466e01e732b Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
de35fc8f76
commit
9b83722dd5
25
scripts/build-fedora28-copr-docker.sh
Executable file
25
scripts/build-fedora28-copr-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-fedora-28-copr-gcc-8 -t neo-fedora-28-copr-gcc-8:ci .
|
||||
|
13
scripts/docker/Dockerfile-fedora-28-copr-gcc-8
Normal file
13
scripts/docker/Dockerfile-fedora-28-copr-gcc-8
Normal file
@ -0,0 +1,13 @@
|
||||
FROM fedora:28
|
||||
MAINTAINER Jacek Danecki <jacek.danecki@intel.com>
|
||||
|
||||
COPY neo /root/neo
|
||||
|
||||
RUN dnf install -y gcc-c++ cmake ninja-build git pkg-config
|
||||
RUN dnf install -y 'dnf-command(copr)'
|
||||
RUN dnf copr enable -y arturh/intel-opencl
|
||||
RUN dnf install -y intel-igc-opencl-devel
|
||||
RUN cd /root; git clone --depth 1 https://github.com/intel/gmmlib gmmlib
|
||||
RUN mkdir /root/build; cd /root/build ; cmake -G Ninja ../neo; \
|
||||
ninja -j `nproc`
|
||||
CMD ["/bin/bash"]
|
Reference in New Issue
Block a user