Skip to content

Commit 35f7576

Browse files
committed
make
1 parent e225ddb commit 35f7576

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

‎.github/workflows/codspeed.yml‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,8 @@ jobs:
3535
with:
3636
maven-version: 3.10.0
3737

38-
- name: Publish CodSpeed JMH fork to local Maven repository
39-
working-directory: third-party/codspeed-jvm
40-
run: ./gradlew -p jmh-fork publishToMavenLocal
41-
42-
- name: Build benchmarks
43-
run: mvn --batch-mode --no-transfer-progress -P benchmarks -DskipTests package
44-
4538
- name: Run benchmarks
4639
uses: CodSpeedHQ/action@78102a468f96d8e0ccb92d0ec49425753fc42062 # v5.6.0
4740
with:
4841
mode: walltime
49-
run: java -jar target/benchmarks.jar
42+
run: make benchmark

‎Makefile‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
BENCHMARKS_JAR ?= target/benchmarks.jar
2+
3+
$(BENCHMARKS_JAR): pom.xml $(shell find src/main src/jmh -type f)
4+
cd third-party/codspeed-jvm && ./gradlew -p jmh-fork publishToMavenLocal
5+
mvn --batch-mode --no-transfer-progress -P benchmarks -DskipTests package
6+
7+
.PHONY: benchmark
8+
benchmark: $(BENCHMARKS_JAR)
9+
java -jar $(BENCHMARKS_JAR)

0 commit comments

Comments
 (0)