ovni/.gitlab-ci.yml

34 lines
1.1 KiB
YAML
Raw Normal View History

2022-01-11 17:43:59 +01:00
build:debian-latest:
image: debian:latest
2021-12-10 11:48:02 +01:00
stage: build
before_script:
- apt update && apt -y install make autoconf gfortran libopenmpi-dev cmake
script:
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=install -S . -B build
- cmake --build build
- CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
2021-12-10 11:48:02 +01:00
- cmake --build build --target install
artifacts:
paths:
- install/
2022-01-11 17:43:59 +01:00
build:old-glibc:
2022-07-18 16:40:52 +02:00
image: nixos/nix:2.9.2
2022-01-11 17:43:59 +01:00
stage: build
script:
- nix-build nix/old-glibc.nix
2022-08-22 16:46:17 +02:00
build:nosv-tests:
image:
name: nixos/nix:2.9.2
stage: build
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | ssh-add /dev/fd/0
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- cat /proc/sys/user/max_user_namespaces || true
script:
- nix --extra-experimental-features "nix-command impure-derivations ca-derivations" --option sandbox false build -L --impure --file nix/nosv.nix