Skip to content

Commit 3e63528

Browse files
committed
Fix CI
1 parent c9926b3 commit 3e63528

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/Benchmark.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@ jobs:
2626
arch: ${{ matrix.arch }}
2727
- uses: julia-actions/cache@v1
2828
- uses: julia-actions/julia-buildpkg@v1
29-
- name: Install JuliaFormatter and format
29+
- name: Install PkgBenchmark and instantiate benchmark environment
30+
run: |
31+
julia --project=benchmark -e '
32+
using Pkg
33+
Pkg.develop(path=".")
34+
Pkg.instantiate()
35+
Pkg.add(["PkgBenchmark", "HTTP", "JSON"])'
36+
- name: Run benchmarks and upload to server
3037
run: |
31-
julia -e 'using Pkg; Pkg.add(PackageSpec(name="PkgBenchmark"))'
32-
julia --project=benchmark -e 'using Pkg; Pkg.instantiate()'
33-
- run: |
3438
julia --project=benchmark -e '
3539
using PkgBenchmark, TaylorDiff
3640
include("benchmark/utils.jl")

benchmark/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ function lower(te::TrialEstimate)
2424
end
2525

2626
function upload(results::BenchmarkResults)
27-
put("https://benchmark.tansongchen.com/data?repo=TaylorDiff.jl"; body=json(results))
27+
put("https://benchmark.tansongchen.com/data?repo=TaylorDiff.jl"; body = json(results))
2828
end

0 commit comments

Comments
 (0)