Skip to content

Commit aeb1417

Browse files
authored
Add 1.11 to CI. (#392)
1 parent 86d2ee4 commit aeb1417

File tree

2 files changed

+34
-13
lines changed

2 files changed

+34
-13
lines changed

.github/download_build.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
#!/bin/bash -e
22

33
# handle user inputs
4-
[ $# -ne 2 ] && { echo "Usage: $0 <build_name> <destination_file>" >&2; exit 1; }
5-
BUILD_NAME="$1"
6-
DEST_FILE="$2"
4+
[ $# -ne 4 ] && { echo "Usage: $0 <pipeline> <branch> <build_name> <destination_file>" >&2; exit 1; }
5+
PIPELINE="$1"
6+
BRANCH="$2"
7+
BUILD_NAME="$3"
8+
DEST_FILE="$4"
79
[ -z "$BUILDKITE_TOKEN" ] && { echo "BUILDKITE_TOKEN not set." >&2; exit 1; }
810

911
API_BASE="https://api.buildkite.com/v2"
1012
ORG="julialang"
11-
PIPELINE="julia-master"
1213

13-
# find the first successful build on the master branch, and get its artifacts url
14-
ARTIFACTS_URL=$(curl -s -H "Authorization: Bearer $BUILDKITE_TOKEN" "$API_BASE/organizations/$ORG/pipelines/$PIPELINE/builds?branch=master" | \
14+
# find the first successful build on the requested branch, and get its artifacts url
15+
ARTIFACTS_URL=$(curl -s -H "Authorization: Bearer $BUILDKITE_TOKEN" "$API_BASE/organizations/$ORG/pipelines/$PIPELINE/builds?branch=$BRANCH" | \
1516
jq -r "first(.[] | .jobs[] | select(.step_key == \"$BUILD_NAME\" and .exit_status == 0) | .artifacts_url)")
1617
[ -z "$ARTIFACTS_URL" ] && { echo "No successful build found."; exit 1; }
1718

.github/workflows/ci.yml

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
version: ['1.8', '1.9', '1.10', 'nightly']
21+
version: ['1.8', '1.9', '1.10', '^1.11.0-alpha1', 'nightly']
2222
os: ['ubuntu-latest', 'macOS-latest', 'windows-latest']
2323
arch: [x64]
2424
llvm_args: ['']
@@ -36,6 +36,18 @@ jobs:
3636
os: 'windows-latest'
3737
arch: 'x64'
3838
llvm_args: '--opaque-pointers'
39+
- version: '^1.11.0-alpha1'
40+
os: 'ubuntu-latest'
41+
arch: 'x64'
42+
llvm_args: '--opaque-pointers'
43+
- version: '^1.11.0-alpha1'
44+
os: 'macOS-latest'
45+
arch: 'x64'
46+
llvm_args: '--opaque-pointers'
47+
- version: '^1.11.0-alpha1'
48+
os: 'windows-latest'
49+
arch: 'x64'
50+
llvm_args: '--opaque-pointers'
3951
- version: 'nightly'
4052
os: 'ubuntu-latest'
4153
arch: 'x64'
@@ -98,17 +110,25 @@ jobs:
98110
fail_ci_if_error: false
99111
file: lcov.info
100112

101-
# fetching builds from Buildkite with assertions enabled
113+
# fetching builds from Buildkite
102114
assert_test:
103115
name: Julia-master ${{ matrix.build }} ${{ matrix.llvm_args }}
104116
runs-on: ${{ matrix.os }}
105117
strategy:
106118
fail-fast: false
107119
matrix:
108-
build: ['x86_64-linux-gnuassert']
109-
os: ['ubuntu-latest']
110-
arch: ['x64']
120+
os: [ubuntu-latest]
121+
arch: [x64]
111122
llvm_args: ['', '--opaque-pointers']
123+
include:
124+
- version: '1.11'
125+
pipeline: 'julia-release-1-dot-11'
126+
build: 'x86_64-linux-gnuassert'
127+
branch: 'release-1.11'
128+
#- version: 'master'
129+
# pipeline: 'julia-master'
130+
# build: 'x86_64-linux-gnuassert'
131+
# branch: 'master'
112132
steps:
113133
- uses: actions/checkout@v4
114134
with:
@@ -118,7 +138,7 @@ jobs:
118138
env:
119139
BUILDKITE_TOKEN: ${{ secrets.BUILDKITE_TOKEN }}
120140
run: |
121-
./.github/download_build.sh build_${{ matrix.build }} julia.tar.gz
141+
./.github/download_build.sh ${{ matrix.pipeline }} ${{ matrix.branch }} build_${{ matrix.build }} julia.tar.gz
122142
tar -xf julia.tar.gz -C ../
123143
rm julia.tar.gz
124144
echo $PWD/../julia-*/bin >> $GITHUB_PATH
@@ -157,7 +177,7 @@ jobs:
157177
- uses: actions/checkout@v4
158178
- uses: julia-actions/setup-julia@latest
159179
with:
160-
version: '1.8'
180+
version: '1.10'
161181
- name: Install dependencies
162182
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
163183
- name: Build and deploy

0 commit comments

Comments
 (0)