mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
ci: add builds with clang-6 on Arch and Ubuntu 18.04
Change-Id: I3aa7a09238253fede420ce374e50089fa1995493 Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
3870568e82
commit
36ec5edc40
@ -22,6 +22,9 @@ matrix:
|
||||
- os: linux
|
||||
compiler: clang
|
||||
env: BUILD_OS=ubuntu-18.04 COMPILER=clang-5
|
||||
- os: linux
|
||||
compiler: clang
|
||||
env: BUILD_OS=ubuntu-18.04 COMPILER=clang-6
|
||||
- os: linux
|
||||
compiler: gcc
|
||||
env: BUILD_OS=ubuntu-18.04 COMPILER=gcc-5
|
||||
|
14
scripts/docker/Dockerfile-arch-clang-6
Normal file
14
scripts/docker/Dockerfile-arch-clang-6
Normal file
@ -0,0 +1,14 @@
|
||||
FROM docker.io/base/archlinux
|
||||
MAINTAINER Jacek Danecki <jacek.danecki@intel.com>
|
||||
|
||||
COPY neo /root/neo
|
||||
COPY scripts/prepare-arch-clang-6.sh /root
|
||||
COPY scripts/build-arch-dep.sh /root
|
||||
COPY scripts/prepare-workspace.sh /root
|
||||
|
||||
RUN /root/prepare-arch-clang-6.sh
|
||||
RUN /root/prepare-workspace.sh
|
||||
RUN cd /root/build ; cmake -G Ninja -DBUILD_TYPE=Release -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
|
||||
-DDO_NOT_RUN_AUB_TESTS=1 -DDONT_CARE_OF_VIRTUALS=1 ../neo ; ninja -j `nproc`
|
||||
CMD ["/bin/bash"]
|
12
scripts/docker/Dockerfile-ubuntu-18.04-clang-6
Normal file
12
scripts/docker/Dockerfile-ubuntu-18.04-clang-6
Normal file
@ -0,0 +1,12 @@
|
||||
FROM docker.io/ubuntu:18.04
|
||||
MAINTAINER Jacek Danecki <jacek.danecki@intel.com>
|
||||
|
||||
COPY neo /root/neo
|
||||
COPY scripts/prepare-workspace.sh /root
|
||||
|
||||
RUN apt-get -y update; apt-get install -y --allow-unauthenticated cmake git wget pkg-config ninja-build clang-6.0
|
||||
RUN /root/prepare-workspace.sh
|
||||
RUN cd /root/build ; cmake -G Ninja -DBUILD_TYPE=Release -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_C_COMPILER=clang-6.0 -DCMAKE_CXX_COMPILER=clang++-6.0 \
|
||||
-DDO_NOT_RUN_AUB_TESTS=1 -DDONT_CARE_OF_VIRTUALS=1 ../neo ; ninja -j `nproc`
|
||||
CMD ["/bin/bash"]
|
28
scripts/prepare-arch-clang-6.sh
Executable file
28
scripts/prepare-arch-clang-6.sh
Executable file
@ -0,0 +1,28 @@
|
||||
#!/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.
|
||||
|
||||
pacman -Sy --noconfirm clang cmake git make wget pkg-config fakeroot ninja sudo \
|
||||
perl-io-string perl-test-pod autoconf automake patch
|
||||
useradd -m build -g wheel
|
||||
sed -i "s/^# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/" /etc/sudoers
|
||||
cp -a /root/*.sh /home/build
|
||||
su -l build /home/build/build-arch-dep.sh
|
||||
|
Reference in New Issue
Block a user