|
| 1 | +agents: |
| 2 | + queue: "julia" |
| 3 | + # Only run on `sandbox.jl` machines (not `docker`-isolated ones) since we need nestable sandboxing |
| 4 | + sandbox.jl: "true" |
| 5 | + os: "linux" |
| 6 | + |
| 7 | +steps: |
| 8 | + - label: "package_linux$ARCH" |
| 9 | + key: package_linux$ARCH |
| 10 | + plugins: |
| 11 | + - JuliaCI/julia#v1: |
| 12 | + version: 1.6 |
| 13 | + - staticfloat/sandbox#v1: |
| 14 | + rootfs_url: https://github.com/JuliaCI/rootfs-images/releases/download/$ROOTFS_TAG_PACK/package_linux.${ROOTFS_ARCH}.tar.gz |
| 15 | + rootfs_treehash: "$ROOTFS_TREE_PACK" |
| 16 | + uid: 1000 |
| 17 | + gid: 1000 |
| 18 | + workspaces: |
| 19 | + # Include `/cache/repos` so that our `git` version introspection works. |
| 20 | + - "/cache/repos:/cache/repos" |
| 21 | + commands: | |
| 22 | + echo "--- Print the full and short commit hashes" |
| 23 | + SHORT_COMMIT_LENGTH=10 |
| 24 | + SHORT_COMMIT=`echo $$BUILDKITE_COMMIT | cut -c1-$$SHORT_COMMIT_LENGTH` |
| 25 | + JULIA_BINARYDIST_FILENAME=`make print-JULIA_BINARYDIST_FILENAME | cut -c27-` |
| 26 | + ARTIFACT_FILE_EXTENSION="tar.gz" |
| 27 | + ARTIFACT_FILENAME="$$JULIA_BINARYDIST_FILENAME.$$ARTIFACT_FILE_EXTENSION" |
| 28 | + echo "The full commit is: $$BUILDKITE_COMMIT" |
| 29 | + echo "The short commit is: $$SHORT_COMMIT" |
| 30 | + echo "The artifact filename will be: $$ARTIFACT_FILENAME" |
| 31 | +
|
| 32 | + echo "--- Build Julia from source" |
| 33 | + rm -rf $$ARTIFACT_FILENAME |
| 34 | + make -j 8 |
| 35 | +
|
| 36 | + echo "--- Print Julia version info" |
| 37 | + ./julia -e 'using InteractiveUtils; InteractiveUtils.versioninfo()' |
| 38 | +
|
| 39 | + echo "--- Create build artifacts" |
| 40 | + make -j 8 binary-dist |
| 41 | + ls -l $$ARTIFACT_FILENAME |
| 42 | +
|
| 43 | + echo "--- Upload build artifacts" |
| 44 | + buildkite-agent artifact upload $$ARTIFACT_FILENAME |
| 45 | + timeout_in_minutes: 60 |
| 46 | + notify: |
| 47 | + - github_commit_status: |
| 48 | + context: "package_linux$ARCH" |
| 49 | + |
| 50 | + - label: "tester_linux$ARCH" |
| 51 | + key: tester_linux$ARCH |
| 52 | + depends_on: package_linux$ARCH |
| 53 | + plugins: |
| 54 | + - JuliaCI/julia#v1: |
| 55 | + version: 1.6 |
| 56 | + - staticfloat/sandbox#v1: |
| 57 | + rootfs_url: https://github.com/JuliaCI/rootfs-images/releases/download/$ROOTFS_TAG_TEST/tester_linux.${ROOTFS_ARCH}.tar.gz |
| 58 | + rootfs_treehash: "$ROOTFS_TREE_TEST" |
| 59 | + uid: 1000 |
| 60 | + gid: 1000 |
| 61 | + workspaces: |
| 62 | + # Include `/cache/repos` so that our `git` version introspection works. |
| 63 | + - "/cache/repos:/cache/repos" |
| 64 | + env: |
| 65 | + JULIA_SHELL: "/bin/bash" |
| 66 | + commands: | |
| 67 | + echo "--- Print the full and short commit hashes" |
| 68 | + SHORT_COMMIT_LENGTH=10 |
| 69 | + SHORT_COMMIT=`echo $$BUILDKITE_COMMIT | cut -c1-$$SHORT_COMMIT_LENGTH` |
| 70 | + JULIA_DIRECTORY_NAME="julia-$$SHORT_COMMIT" |
| 71 | + ARTIFACT_FILE_EXTENSION="tar.gz" |
| 72 | + ARTIFACT_FILENAME="julia-$$SHORT_COMMIT-linux$ARCH.$$ARTIFACT_FILE_EXTENSION" |
| 73 | + echo "The full commit is: $$BUILDKITE_COMMIT" |
| 74 | + echo "The short commit is: $$SHORT_COMMIT" |
| 75 | + echo "The artifact filename will be: $$ARTIFACT_FILENAME" |
| 76 | + echo "The Julia directory name will be: $$JULIA_DIRECTORY_NAME" |
| 77 | +
|
| 78 | + echo "--- Download build artifacts" |
| 79 | + rm -rf $$ARTIFACT_FILENAME |
| 80 | + buildkite-agent artifact download $$ARTIFACT_FILENAME . |
| 81 | +
|
| 82 | + echo "--- Extract build artifacts" |
| 83 | + rm -rf $$JULIA_DIRECTORY_NAME/ |
| 84 | + tar xzf $$ARTIFACT_FILENAME $$JULIA_DIRECTORY_NAME/ |
| 85 | +
|
| 86 | + echo "--- Print Julia version info" |
| 87 | + $$JULIA_DIRECTORY_NAME/bin/julia -e 'using InteractiveUtils; InteractiveUtils.versioninfo()' |
| 88 | +
|
| 89 | + echo "--- Run the Julia test suite" |
| 90 | + unset JULIA_DEPOT_PATH |
| 91 | + $$JULIA_DIRECTORY_NAME/bin/julia -e 'Base.runtests(["all"]; ncores = Sys.CPU_THREADS)' |
| 92 | + timeout_in_minutes: 120 |
| 93 | + notify: |
| 94 | + - github_commit_status: |
| 95 | + context: "tester_linux$ARCH" |
| 96 | + |
| 97 | + - label: "tester2_linux$ARCH" |
| 98 | + key: tester2_linux$ARCH |
| 99 | + depends_on: package_linux$ARCH |
| 100 | + plugins: |
| 101 | + - JuliaCI/julia#v1: |
| 102 | + version: 1.6 |
| 103 | + - staticfloat/sandbox#v1: |
| 104 | + rootfs_url: https://github.com/JuliaCI/rootfs-images/releases/download/$ROOTFS_TAG_PACK/package_linux.${ROOTFS_ARCH}.tar.gz |
| 105 | + rootfs_treehash: "$ROOTFS_TREE_PACK" |
| 106 | + uid: 1000 |
| 107 | + gid: 1000 |
| 108 | + workspaces: |
| 109 | + # Include `/cache/repos` so that our `git` version introspection works. |
| 110 | + - "/cache/repos:/cache/repos" |
| 111 | + env: |
| 112 | + JULIA_SHELL: "/bin/bash" |
| 113 | + commands: | |
| 114 | + echo "--- Print the full and short commit hashes" |
| 115 | + SHORT_COMMIT_LENGTH=10 |
| 116 | + SHORT_COMMIT=`echo $$BUILDKITE_COMMIT | cut -c1-$$SHORT_COMMIT_LENGTH` |
| 117 | + JULIA_DIRECTORY_NAME="julia-$$SHORT_COMMIT" |
| 118 | + ARTIFACT_FILE_EXTENSION="tar.gz" |
| 119 | + ARTIFACT_FILENAME="julia-$$SHORT_COMMIT-linux$ARCH.$$ARTIFACT_FILE_EXTENSION" |
| 120 | + echo "The full commit is: $$BUILDKITE_COMMIT" |
| 121 | + echo "The short commit is: $$SHORT_COMMIT" |
| 122 | + echo "The artifact filename will be: $$ARTIFACT_FILENAME" |
| 123 | + echo "The Julia directory name will be: $$JULIA_DIRECTORY_NAME" |
| 124 | +
|
| 125 | + echo "--- Download build artifacts" |
| 126 | + rm -rf $$ARTIFACT_FILENAME |
| 127 | + buildkite-agent artifact download $$ARTIFACT_FILENAME . |
| 128 | +
|
| 129 | + echo "--- Extract build artifacts" |
| 130 | + rm -rf $$JULIA_DIRECTORY_NAME/ |
| 131 | + tar xzf $$ARTIFACT_FILENAME $$JULIA_DIRECTORY_NAME/ |
| 132 | +
|
| 133 | + echo "--- Print Julia version info" |
| 134 | + $$JULIA_DIRECTORY_NAME/bin/julia -e 'using InteractiveUtils; InteractiveUtils.versioninfo()' |
| 135 | +
|
| 136 | + echo "--- Run the Julia test suite" |
| 137 | + unset JULIA_DEPOT_PATH |
| 138 | + $$JULIA_DIRECTORY_NAME/bin/julia -e 'Base.runtests(["all"]; ncores = Sys.CPU_THREADS)' |
| 139 | + timeout_in_minutes: 120 |
| 140 | + notify: |
| 141 | + - github_commit_status: |
| 142 | + context: "tester2_linux$ARCH" |
0 commit comments