Skip to content
Snippets Groups Projects
Commit 88fcc11c authored by Jö Fahlke's avatar Jö Fahlke
Browse files

Use one job explicitly for cloning the repos

This has the advantage that the cloned source cannot differ between native and
cuda builds.  It has the disadvantage that the source must be uploaded to the
CI server and later downloaded again.

This also now reports the exact versions of the downloaded source.

Closes: #11
parent 6edc0542
No related branches found
No related tags found
No related merge requests found
Pipeline #12216 failed
......@@ -98,28 +98,53 @@ stop-base:
######################################################################
#
# PACXX Build: build pacxx using the base image
# PACXX Source: get the sources
#
pacxx-build-native:
stage: pacxx-build
image: $REGISTRY/$CI_PROJECT_PATH:base-native.$PIPELINE_TAG
pacxx-source:
stage: base # this can happily run in parallel with the other base stuff
image: alpine:latest
dependencies: []
tags:
- hpc2seci
variables:
GIT_STRATEGY: none
script:
- apk add bash git
- mkdir src
- cd src
- git clone --depth=1 https://zivgitlab.uni-muenster.de/HPC2SE-Project/pacxx-llvm2.git .
- ../bin/verbose-git-status . llvm-wrapper-repo 2>&1 | tee -a repoversions
- ./reinit
- ../bin/verbose-git-status . llvm 2>&1 | tee -a repoversions
- git clone --depth=1 https://zivgitlab.uni-muenster.de/HPC2SE-Project/pacxx-clang.git tools/clang
- ../bin/verbose-git-status tools/clang clang 2>&1 | tee -a repoversions
- git clone --depth=1 https://zivgitlab.uni-muenster.de/HPC2SE-Project/pacxx-rv2.git tools/rv
- ../bin/verbose-git-status tools/rv rv-wrapper-repo 2>&1 | tee -a repoversions
- (cd tools/rv && ./reinit)
- ../bin/verbose-git-status tools/rv rv 2>&1 | tee -a repoversions
- git clone --depth=1 https://zivgitlab.uni-muenster.de/HPC2SE-Project/pacxx-runtime.git projects/pacxxrt
- mkdir ../build
- cd ../build
- ../bin/verbose-git-status projects/pacxxrt pacxx-runtime 2>&1 | tee -a repoversions
artifacts:
paths:
- src/
expire_in: 1 week
######################################################################
#
# PACXX Build: build pacxx using the base image
#
pacxx-build-native:
stage: pacxx-build
image: $REGISTRY/$CI_PROJECT_PATH:base-native.$PIPELINE_TAG
dependencies:
- pacxx-source
tags:
- hpc2seci
variables:
GIT_STRATEGY: none
script:
- mkdir build
- cd build
- cmake ../src -DBUILD_SHARED_LIBS=ON -DLLVM_ENABLE_RTTI=ON -DLLVM_ENABLE_CXX1Y=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE="-O3" -DCMAKE_INSTALL_PREFIX=/opt/pacxx
- make -j$(nproc)
- cd ..
......@@ -132,22 +157,15 @@ pacxx-build-native:
pacxx-build-cuda:
stage: pacxx-build
image: $REGISTRY/$CI_PROJECT_PATH:base-cuda.$PIPELINE_TAG
dependencies: []
dependencies:
- pacxx-source
tags:
- hpc2seci
variables:
GIT_STRATEGY: none
script:
- mkdir src
- cd src
- git clone --depth=1 https://zivgitlab.uni-muenster.de/HPC2SE-Project/pacxx-llvm2.git .
- ./reinit
- git clone --depth=1 https://zivgitlab.uni-muenster.de/HPC2SE-Project/pacxx-clang.git tools/clang
- git clone --depth=1 https://zivgitlab.uni-muenster.de/HPC2SE-Project/pacxx-rv2.git tools/rv
- (cd tools/rv && ./reinit)
- git clone --depth=1 https://zivgitlab.uni-muenster.de/HPC2SE-Project/pacxx-runtime.git projects/pacxxrt
- mkdir ../build
- cd ../build
- mkdir build
- cd build
- cmake ../src -DBUILD_SHARED_LIBS=ON -DLLVM_ENABLE_RTTI=ON -DLLVM_ENABLE_CXX1Y=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE="-O3" -DCMAKE_INSTALL_PREFIX=/opt/pacxx
- make -j$(nproc)
- cd ..
......
#!/bin/sh
# verbose-git-status DIR NAME
dir=${1:?Need a directory to report status for}
name=${2:?Need a repository name to report}
echo "Status for $name in $dir:"
echo "Remotes:"
git -C "$dir" remote -v
echo "Top commit:"
git -C "$dir" log -n1
echo "Status:"
git -C "$dir" status
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment