Skip to content

Commit 3bc1fbe

Browse files
committed
bench: use AirspeedVelocity.jl
1 parent ac7d9a2 commit 3bc1fbe

File tree

1 file changed

+8
-33
lines changed

1 file changed

+8
-33
lines changed

.github/workflows/Benchmark.yml

Lines changed: 8 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,13 @@
1-
name: Run benchmarks
1+
name: Benchmark this PR
22
on:
3-
pull_request:
4-
# Only trigger the benchmark job when you add `run benchmark` label to the PR
5-
types: [labeled, opened, synchronize, reopened]
6-
concurrency:
7-
# Skip intermediate builds: always.
8-
# Cancel intermediate builds: only if it is a pull request build.
9-
group: ${{ github.workflow }}-${{ github.ref }}
10-
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
3+
pull_request_target:
4+
branches: [ main ]
5+
permissions:
6+
pull-requests: write # needed to post comments
117
jobs:
12-
Benchmark:
8+
bench:
139
runs-on: ubuntu-latest
14-
permissions:
15-
pull-requests: write
16-
actions: write # needed to allow julia-actions/cache to proactively delete old caches that it has created
17-
contents: read
18-
if: contains(github.event.pull_request.labels.*.name, 'benchmark')
1910
steps:
20-
- uses: actions/checkout@v4
21-
- uses: julia-actions/setup-julia@latest
22-
- name: Cache artifacts
23-
uses: actions/cache@v4
24-
env:
25-
cache-name: cache-artifacts
11+
- uses: MilesCranmer/AirspeedVelocity.jl@action-v1
2612
with:
27-
path: ~/.julia/artifacts
28-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
29-
restore-keys: |
30-
${{ runner.os }}-test-${{ env.cache-name }}-
31-
${{ runner.os }}-test-
32-
${{ runner.os }}-
33-
- name: Install dependencies
34-
run: julia -e 'using Pkg; Pkg.add(["JSON", "PkgBenchmark", "BenchmarkCI"])'
35-
- name: Run benchmarks
36-
run: julia benchmark/run_benchmarks.jl
37-
env:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
julia-version: '1'

0 commit comments

Comments
 (0)