GitHub Actions: Only run benchmarks on demand

This commit is contained in:
2020-11-14 06:40:33 -06:00
parent efd51e9a8e
commit 9f954951c2

View File

@@ -1,14 +1,9 @@
name: Benchmark
on:
push:
paths-ignore:
- '**.csv'
- '**.md'
- '.git*'
- 'test/**'
on: push
jobs:
benchmark:
runs-on: [self-hosted, benchmark]
if: "contains(github.event.head_commit.message, '[benchmark]')"
timeout-minutes: 10080
steps:
- uses: actions/checkout@v1
@@ -23,11 +18,11 @@ jobs:
- name: Upload logs
uses: actions/upload-artifact@v2
with:
name: logs
name: Logs
path: benchmark/results/*
- name: Upload tables & charts
uses: actions/upload-artifact@v2
with:
name: tables
name: Tables
path: benchmark/tables/*