File tree Expand file tree Collapse file tree 4 files changed +16
-6
lines changed
Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 6161 env :
6262 DOCKER_IMAGE_NAME : one-test
6363 run : |
64- ./nnas docker-run --user make -f Makefile.template
65- ./nnas docker-run --user Product/out/test/onert-test unittest
64+ docker run --rm -v $PWD:$PWD -w $PWD -u root one-test ccache -p
65+ docker run --rm -v $PWD:$PWD -w $PWD -u root one-test ccache -p make -f Makefile.template
66+ docker run --rm -v $PWD:$PWD -w $PWD -u root one-test ccache -p Product/out/test/onert-test unittest
6667
6768 - name : Download rootfs for cross build
6869 uses : dawidd6/action-download-artifact@v7
@@ -103,4 +104,4 @@ jobs:
103104 DOCKER_IMAGE_NAME : one-test
104105 DOCKER_ENV_VARS : ' -e CROSS_BUILD=1 -e TARGET_OS=android -e BUILD_TYPE=release'
105106 run : |
106- ./nnas docker- run --user make -f Makefile.template
107+ docker run --rm -v $PWD:$PWD -w $PWD -u root one-test make -f Makefile.template
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ FROM ubuntu:20.04
1818RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qqy install tzdata
1919
2020# Build tool
21- RUN apt-get update && apt-get -qqy install build-essential cmake scons git lcov g++-arm-linux-gnueabihf g++-aarch64-linux-gnu pkg-config
21+ RUN apt-get update && apt-get -qqy install build-essential cmake scons git lcov g++-arm-linux-gnueabihf g++-aarch64-linux-gnu pkg-config ccache
2222
2323# Debian build tool
2424RUN apt-get update && apt-get -qqy install fakeroot devscripts debhelper python3-all dh-python
@@ -36,6 +36,9 @@ RUN apt-get update && \
3636RUN python3 -m pip install --upgrade pip
3737RUN python3 -m pip install numpy flatbuffers
3838
39+ # Setup ccache max size: 1.5GB, cache dir: /tmp/ccache
40+ RUN ccache -M 1536MB && ccache -o cache_dir=/tmp/ccache && ccache -p
41+
3942# Install libtsan_preinit.o manually (workaround for missing package in focal)
4043WORKDIR /root/tmp
4144RUN apt-get download libgcc-10-dev
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ FROM ubuntu:jammy
1818RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qqy install tzdata
1919
2020# Build tool
21- RUN apt-get update && apt-get -qqy install build-essential cmake scons git lcov g++-arm-linux-gnueabihf g++-aarch64-linux-gnu pkg-config
21+ RUN apt-get update && apt-get -qqy install build-essential cmake scons git lcov g++-arm-linux-gnueabihf g++-aarch64-linux-gnu pkg-config ccache
2222
2323# Debian build tool
2424RUN apt-get update && apt-get -qqy install fakeroot devscripts debhelper python3-all dh-python
@@ -36,6 +36,9 @@ RUN apt-get update && \
3636RUN python3 -m pip install --upgrade pip
3737RUN python3 -m pip install numpy flatbuffers
3838
39+ # Setup ccache max size: 1.5GB, cache dir: /tmp/ccache
40+ RUN ccache -M 1536MB && ccache -o cache_dir=/tmp/ccache && ccache -p
41+
3942# Setup user to match host user, and give superuser permissions
4043ARG USER_ID=1000
4144ARG GROUP_ID=${USER_ID}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ FROM ubuntu:noble
1818RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qqy install tzdata
1919
2020# Build tool
21- RUN apt-get update && apt-get -qqy install build-essential cmake scons git lcov g++-arm-linux-gnueabihf g++-aarch64-linux-gnu pkg-config
21+ RUN apt-get update && apt-get -qqy install build-essential cmake scons git lcov g++-arm-linux-gnueabihf g++-aarch64-linux-gnu pkg-config ccache
2222
2323# Debian build tool
2424RUN apt-get update && apt-get -qqy install fakeroot devscripts debhelper python3-all dh-python
@@ -31,6 +31,9 @@ RUN apt-get update && \
3131 apt-get -qqy install doxygen graphviz wget zip unzip python3 python3-pip python3-venv python3-dev hdf5-tools curl
3232RUN python3 -m pip install numpy flatbuffers --break-system-packages
3333
34+ # Setup ccache max size: 1.5GB, cache dir: /tmp/ccache
35+ RUN ccache -M 1536MB && ccache -o cache_dir=/tmp/ccache && ccache -p
36+
3437# Setup user ubuntu: give superuser permissions without password
3538RUN apt-get update && apt-get -qqy install sudo
3639RUN usermod -aG sudo ubuntu
You can’t perform that action at this time.
0 commit comments