Skip to content

Commit 5d22d94

Browse files
Set up Buildkite for tests and benchmarks
1 parent a59f09a commit 5d22d94

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.buildkite/pipeline.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
steps:
2+
- command: julia --project -e 'using Pkg; Pkg.build(); Pkg.test()'
3+
if: build.env("DAGGER_BENCHMARK") != "true"
4+
agents:
5+
os: linux
6+
arch: x86_64
7+
plugins:
8+
- docker#v3.7.0:
9+
image: julia:1
10+
- command: echo TODO
11+
if: build.env("DAGGER_BENCHMARK") == "true"
12+
agents:
13+
os: linux
14+
arch: x86_64
15+
serial: true
16+
plugins:
17+
- docker#v3.7.0:
18+
image: julia:1.5.3
19+
artifacts:
20+
- benchmarks/TODO

.github/workflows/benchmark.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Trigger benchmarks
2+
on: workflow_dispatch
3+
jobs:
4+
benchmarks:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- run: |
8+
curl https://api.buildkite.com/v2/organizations/julialang/pipelines/dagger-dot-jl/builds \
9+
--header "Authorization: Bearer $BUILDKITE_TOKEN" \
10+
--data '{"commit": "HEAD", "branch": "master", "env": {"DAGGER_BENCHMARK": "true"}}' \
11+
| jq -r .web_url
12+
env:
13+
BUILDKITE_TOKEN: ${{ secrets.BUILDKITE_TOKEN }}

0 commit comments

Comments
 (0)