diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5f3289b5b958c22da60799bc4c413e1459b55a22..f51a784f406da6589de2aacaeecd9f55a20b053d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,31 @@ -docker_centos_build: +docker_almalinux_build: + stage: build + tags: + - centos-docker + image: 'almalinux:8.5' + artifacts: + paths: + - ./build/src/pdata + - ./build/openfpm_numerics/src/numerics + - ./openfpm_numerics/test + script: + - mkdir -p openfpm_dependencies + - mkdir /root/.ssh && chmod 700 /root/.ssh + - cp id_rsa.pub /root/.ssh/id_rsa.pub && chmod 644 /root/.ssh/id_rsa.pub + - cp id_rsa /root/.ssh/id_rsa && chmod 600 /root/.ssh/id_rsa + - ssh-keyscan -H git.mpi-cbg.de >> ~/.ssh/known_hosts + - ls openfpm_dependencies + - echo "cifarm-centos-node" > hostname + - ./build.sh $CI_PROJECT_DIR unused pdata 0 $CI_COMMIT_REF_NAME + - ls -la build/src/pdata + cache: + when: always + key: $CI_COMMIT_REF_SLUG + paths: + - openfpm_dependencies/ + + +docker_ubuntu_build: stage: build tags: - ubuntu-docker @@ -27,7 +54,7 @@ docker_centos_build: paths: - openfpm_dependencies/ -docker_centos_run: +docker_ubuntu_run: stage: test tags: - ubuntu-docker