Skip to content

Commit 3e5077e

Browse files
committed
parametrize
1 parent 4dbbb11 commit 3e5077e

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

.buildkite/pipeline.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
---
22
steps:
33
- label: ":rocket: Launch test jobs"
4-
command: |
5-
# Linux x86_64
6-
OS=linux ARCH=x86_64 \
7-
buildkite-agent pipeline upload ./.buildkite/runtests.yml
4+
command: bash ./.buildkite/upload-runtests-matrix.sh
85
agents:
96
queue: "julia"
107
os: "linux"

.buildkite/runtests-matrix.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# OS ARCH ROOTFS_IMAGE_NAME ROOTFS_TAG ROOTFS_ARCH ROOTFS_HASH
2+
linux x86_64 package_linux v6.00 x86_64 4dcde853eb5baaa0a8f087b633eaf955dc94b5dc

.buildkite/runtests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ steps:
66
- JuliaCI/julia#v1:
77
version: '1.10'
88
- staticfloat/sandbox#v2:
9-
rootfs_url: https://github.com/JuliaCI/rootfs-images/releases/download/v6.00/package_linux.x86_64.tar.gz
10-
rootfs_treehash: "4dcde853eb5baaa0a8f087b633eaf955dc94b5dc"
9+
rootfs_url: https://github.com/JuliaCI/rootfs-images/releases/download/${ROOTFS_TAG?}/${ROOTFS_IMAGE_NAME?}.${ROOTFS_ARCH?}.tar.gz
10+
rootfs_treehash: "${ROOTFS_HASH?}"
1111
uid: 1000
1212
gid: 1000
1313
# Julia installation inside the sandbox
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
while read -r OS ARCH ROOTFS_IMAGE_NAME ROOTFS_TAG ROOTFS_ARCH ROOTFS_HASH; do
4+
# Skip empty lines and comments
5+
[[ -z "${OS}" || "${OS}" == \#* ]] && continue
6+
export OS ARCH ROOTFS_IMAGE_NAME ROOTFS_TAG ROOTFS_ARCH ROOTFS_HASH
7+
buildkite-agent pipeline upload ./.buildkite/runtests.yml
8+
done < ".buildkite/runtests-matrix.txt"

0 commit comments

Comments
 (0)