Skip to content

Commit

Permalink
Merge pull request #8 from GitGab19/bencher_testing
Browse files Browse the repository at this point in the history
Delete .github/workflows/bencher.yml
  • Loading branch information
GitGab19 authored Sep 14, 2023
2 parents 4502b5d + 8171108 commit 56bade9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 208 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/bencher.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Bencher
name: Tracking benchmarks with Bencher

on:
workflow_run:
workflows: [Run and Cache Benchmarks]
types:
- completed
- completed

jobs:
track_sv1_criterion_with_bencher:
Expand All @@ -27,7 +27,7 @@ jobs:
run_id: context.payload.workflow_run.id,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
return artifact.name == "criterion_sv1_benchmarks"
return artifact.name == "criterion_sv1_benchmarks.txt"
})[0];
let download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
--github-actions ${{ secrets.GITHUB_TOKEN }}
track_sv2_criterion_with_bencher:
name: Track sv1 criterion benchmarks with Bencher
name: Track sv2 criterion benchmarks with Bencher
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
env:
Expand All @@ -75,7 +75,7 @@ jobs:
run_id: context.payload.workflow_run.id,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
return artifact.name == "criterion_sv2_benchmarks"
return artifact.name == "criterion_sv2_benchmarks.txt"
})[0];
let download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
run_id: context.payload.workflow_run.id,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
return artifact.name == "iai_sv1_benchmarks"
return artifact.name == "iai_sv1_benchmarks.txt"
})[0];
let download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
run_id: context.payload.workflow_run.id,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
return artifact.name == "iai_sv2_benchmarks"
return artifact.name == "iai_sv2_benchmarks.txt"
})[0];
let download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
Expand All @@ -197,4 +197,4 @@ jobs:
run: |
cat iai_sv2_benchmarks.txt | bencher run \
--err \
--github-actions ${{ secrets.GITHUB_TOKEN }}
--github-actions ${{ secrets.GITHUB_TOKEN }}
200 changes: 0 additions & 200 deletions .github/workflows/bencher.yml

This file was deleted.

0 comments on commit 56bade9

Please sign in to comment.