File tree Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,20 @@ FROM ubuntu:20.04
2
2
3
3
ENV DEBIAN_FRONTEND=noninteractive
4
4
5
+ USER root
6
+
5
7
RUN apt update && apt install -yqq \
6
8
build-essential \
7
9
cmake \
8
10
ninja-build \
9
11
ccache \
10
12
git \
11
- python3
13
+ python3 \
14
+ python3-distutils \
15
+ python-is-python3
16
+
17
+ RUN adduser --disabled-password --gecos '' sycl
18
+
19
+ COPY scripts/docker_entrypoint.sh /docker_entrypoint.sh
20
+
21
+ ENTRYPOINT ["/docker_entrypoint.sh" ]
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ if [ -d " $GITHUB_WORKSPACE " ]; then
4
+ chown -R sycl:sycl $GITHUB_WORKSPACE
5
+ su sycl
6
+ fi
7
+
8
+ exec " $@ "
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ option(XPTI_ENABLE_TBB "Enable TBB in the framework" OFF)
15
15
16
16
option (XPTI_ENABLE_WERROR OFF )
17
17
18
+ option (XPTI_BUILD_SAMPLES OFF )
19
+
18
20
if (XPTI_ENABLE_WERROR )
19
21
if (MSVC )
20
22
set (CMAKE_CXX_FLAGS "/WX ${CMAKE_CXX_FLAGS} " )
@@ -53,8 +55,10 @@ add_subdirectory(src)
53
55
add_custom_target (check-xptifw )
54
56
55
57
add_subdirectory (unit_test )
56
- add_subdirectory (samples/basic_collector )
57
- add_subdirectory (samples/syclpi_collector )
58
+ if (XPTI_BUILD_SAMPLES )
59
+ add_subdirectory (samples/basic_collector )
60
+ add_subdirectory (samples/syclpi_collector )
61
+ endif ()
58
62
59
63
# The tests in basic_test are written using TBB, so these tests are enabled
60
64
# only if TBB has been enabled.
You can’t perform that action at this time.
0 commit comments