Loading .gitlab-ci.yml +9 −0 Original line number Diff line number Diff line Loading @@ -25,12 +25,17 @@ variables: BUILD_PATH: "${CI_PROJECT_DIR}/syscall/build" INSTALL_PATH: "${CI_PROJECT_DIR}/syscall/install" LD_LIBRARY_PATH: "${CI_PROJECT_DIR}/deps/install/lib:${CI_PROJECT_DIR}/deps/install/lib64" CCACHE_DIR: "${CI_PROJECT_DIR}/ccache" build-job: # This job runs in the build stage, which runs first. stage: build image: gekkofs/deps:0.9.4-dev script: - echo "Compiling the code..." - ccache --zero-stats - /usr/sbin/update-ccache-symlinks - export PATH="/usr/lib/ccache:$PATH" - mkdir -p ${BUILD_PATH} ${INSTALL_PATH} - cmake --build ${BUILD_PATH} -j $(nproc) --target install artifacts: Loading @@ -38,6 +43,10 @@ build-job: # This job runs in the build stage, which runs first. - ${BUILD_PATH} - ${INSTALL_PATH} expire_in: 1 day cache: key: ccache-gekko paths: - $CCACHE_DIR unit-test-job: # This job runs in the test stage. stage: test # It only starts when the job in the build stage completes successfully. Loading Loading
.gitlab-ci.yml +9 −0 Original line number Diff line number Diff line Loading @@ -25,12 +25,17 @@ variables: BUILD_PATH: "${CI_PROJECT_DIR}/syscall/build" INSTALL_PATH: "${CI_PROJECT_DIR}/syscall/install" LD_LIBRARY_PATH: "${CI_PROJECT_DIR}/deps/install/lib:${CI_PROJECT_DIR}/deps/install/lib64" CCACHE_DIR: "${CI_PROJECT_DIR}/ccache" build-job: # This job runs in the build stage, which runs first. stage: build image: gekkofs/deps:0.9.4-dev script: - echo "Compiling the code..." - ccache --zero-stats - /usr/sbin/update-ccache-symlinks - export PATH="/usr/lib/ccache:$PATH" - mkdir -p ${BUILD_PATH} ${INSTALL_PATH} - cmake --build ${BUILD_PATH} -j $(nproc) --target install artifacts: Loading @@ -38,6 +43,10 @@ build-job: # This job runs in the build stage, which runs first. - ${BUILD_PATH} - ${INSTALL_PATH} expire_in: 1 day cache: key: ccache-gekko paths: - $CCACHE_DIR unit-test-job: # This job runs in the test stage. stage: test # It only starts when the job in the build stage completes successfully. Loading