Skip to content

Commit

Permalink
manually triggerable bench workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Dec 30, 2020
1 parent de88c7b commit 5bbfe6f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/bench.yml
@@ -0,0 +1,22 @@
name: Run Bench
on:
workflow_dispatch:
jobs:
bench:
name: bench
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
container:
image: georust/geo-ci
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: master
- name: Bench baseline
run: cargo bench
- run: git checkout ${{ github.sha }}
- name: Bench changes
run: cargo bench

14 changes: 3 additions & 11 deletions .github/workflows/test.yml
Expand Up @@ -65,21 +65,13 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: lcov.info
bench:
name: bench
bench_build:
name: bench_build
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
container:
image: georust/geo-ci
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: master
- name: Bench baseline
run: cargo bench
- run: git checkout ${{ github.sha }}
- name: Bench changes
run: cargo bench

- run: cargo bench --no-run

0 comments on commit 5bbfe6f

Please sign in to comment.