Skip to content

Commit

Permalink
Run measurements
Browse files Browse the repository at this point in the history
  • Loading branch information
JobDoesburg committed Nov 25, 2024
1 parent a5b8eda commit 13cc6b3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .gitlab-ci-benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
stages:
- build

variables:
DOCKER_DRIVER: overlay # faster docker builds, see https://gitlab.com/gitlab-org/gitlab-ce/issues/21374
GIT_DEPTH: "16"
GIT_STRATEGY: fetch
GIT_SUBMODULE_STRATEGY: recursive
DEBIAN_PACKAGE_TARGET_AMD64: "x86_64-unknown-linux-musl"
DEBIAN_PACKAGE_TARGET_ARM64: "aarch64-unknown-linux-musl"
DEBIAN_PACKAGE_TARGET_ARMHF: "armv7-unknown-linux-musleabihf"
PACKAGES: # set to package:binary pairs
PROFILE: "release"

benchmark:
stage: build
tags: [$RUNNER_TAG]
image: bitpowder.com:2444/bitpowder/docker-build/rust-stable:main
script:
- env cargo +stable test --features energy-measurements --release $TEST_NAME $TEST_ARGS -- --nocapture --test-threads 1
artifacts:
paths:
- bin/*
7 changes: 7 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
include: "/.gitlab-ci-benchmark.yml"

variables:
PACKAGES:
EXPORT_DOCKER_ON: "domain.com"
BUILD_PACKAGES_ON: "domain.com"
RUNNER_TAG: docker

0 comments on commit 13cc6b3

Please sign in to comment.