Skip to content
Snippets Groups Projects
Commit 0883e58a authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Merge branch 'ci-cd' into 'main'

Ci cd

See merge request !2
parents 3d2edf5e 0f0ecb81
No related branches found
No related tags found
1 merge request!2Ci cd
Pipeline #81156 passed
stages: # List of stages for jobs, and their order of execution
- build
- test
build-job: # This job runs in the build stage, which runs first.
stage: build
before_script:
- module load spack
- module load cmake
tags:
- das6-gpu
script:
- cmake -B build .
- make -C build
collect-performance: # This job runs in the test stage.
tags:
- das6-gpu
stage: test # It only starts when the job in the build stage completes successfully.
dependencies:
- build-job
before_script:
- module load spack
- module load cmake
script:
- cmake -B build .
- make -C build
- build/microbenchmarks --benchmark_out=results.json --benchmark_out_format=json
artifacts:
paths:
- ./results.json
untracked: false
when: on_success
access: all
expire_in: 1 days
cmake_minimum_required(VERSION 3.14)
project(microbenchmarks)
# Require C++11
# Require C++17
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(BENCHMARK_ENABLE_GTEST_TESTS OFF CACHE INTERNAL "Download GTest sources")
set(BENCHMARK_ENABLE_GTEST_TESTS
OFF
CACHE INTERNAL "Download GTest sources")
include(FetchContent)
FetchContent_Declare(
googlebenchmark
GIT_REPOSITORY https://github.com/google/benchmark.git
GIT_TAG v1.8.3 # Optionally specify the exact tag or commit to fetch
CMAKE_ARGS "-DBENCHMARK_DOWNLOAD_DEPENDENCIES=True"
)
CMAKE_ARGS "-DBENCHMARK_DOWNLOAD_DEPENDENCIES=True")
# Make the fetched content available.
FetchContent_MakeAvailable(googlebenchmark)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment