Skip to content

Commit 3146658

Browse files
authored
Add CI for 1.11. (#551)
1 parent e4b39b3 commit 3146658

File tree

2 files changed

+62
-53
lines changed

2 files changed

+62
-53
lines changed

.github/download_build.sh

+7-6
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

+55-47
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15-
binary_test:
15+
release_test:
1616
name: Julia ${{ matrix.version }} ${{ matrix.llvm_args }} - ${{ matrix.os }} - ${{ matrix.arch }}
1717
runs-on: ${{ matrix.os }}
1818
strategy:
@@ -81,49 +81,57 @@ jobs:
8181
with:
8282
file: lcov.info
8383

84-
# fetching builds from Buildkite with assertions enabled
85-
#assert_test:
86-
# name: Julia-master ${{ matrix.build }} ${{ matrix.llvm_args }}
87-
# runs-on: ${{ matrix.os }}
88-
# strategy:
89-
# fail-fast: false
90-
# matrix:
91-
# build: ['x86_64-linux-gnuassert']
92-
# os: ['ubuntu-latest']
93-
# arch: ['x64']
94-
# llvm_args: ['', '--opaque-pointers']
95-
# steps:
96-
# - uses: actions/checkout@v4
97-
#
98-
# - name: Download Julia
99-
# env:
100-
# BUILDKITE_TOKEN: ${{ secrets.BUILDKITE_TOKEN }}
101-
# run: |
102-
# ./.github/download_build.sh build_${{ matrix.build }} julia.tar.gz
103-
# tar -xf julia.tar.gz -C ../
104-
# rm julia.tar.gz
105-
# echo $PWD/../julia-*/bin >> $GITHUB_PATH
106-
#
107-
# # set-up packages
108-
# - uses: actions/cache@v4
109-
# env:
110-
# cache-name: cache-artifacts
111-
# with:
112-
# path: ~/.julia/artifacts
113-
# key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
114-
# restore-keys: |
115-
# ${{ runner.os }}-test-${{ env.cache-name }}-
116-
# ${{ runner.os }}-test-
117-
# ${{ runner.os }}-
118-
# - uses: julia-actions/julia-buildpkg@v1
119-
#
120-
# - name: Run tests
121-
# uses: julia-actions/julia-runtest@v1
122-
# env:
123-
# JULIA_LLVM_ARGS: ${{ matrix.llvm_args }}
124-
#
125-
# # post-process
126-
# - uses: julia-actions/julia-processcoverage@v1
127-
# - uses: codecov/codecov-action@v4
128-
# with:
129-
# file: lcov.info
84+
# fetching builds from Buildkite
85+
buildkite_test:
86+
name: Julia ${{ matrix.version }} ${{ matrix.build }} ${{ matrix.llvm_args }}
87+
runs-on: ${{ matrix.os }}
88+
strategy:
89+
fail-fast: false
90+
matrix:
91+
os: [ubuntu-latest]
92+
arch: [x64]
93+
llvm_args: ['', '--opaque-pointers']
94+
include:
95+
- version: '1.11'
96+
pipeline: 'julia-release-1-dot-11'
97+
build: 'x86_64-linux-gnu'
98+
branch: 'release-1.11'
99+
#- version: '1.12'
100+
# pipeline: 'julia-master'
101+
# build: 'x86_64-linux-gnuassert'
102+
# branch: 'master'
103+
steps:
104+
- uses: actions/checkout@v4
105+
106+
- name: Download Julia
107+
env:
108+
BUILDKITE_TOKEN: ${{ secrets.BUILDKITE_TOKEN }}
109+
run: |
110+
./.github/download_build.sh ${{ matrix.pipeline }} ${{ matrix.branch }} build_${{ matrix.build }} julia.tar.gz
111+
tar -xf julia.tar.gz -C ../
112+
rm julia.tar.gz
113+
echo $PWD/../julia-*/bin >> $GITHUB_PATH
114+
115+
# set-up packages
116+
- uses: actions/cache@v4
117+
env:
118+
cache-name: cache-artifacts
119+
with:
120+
path: ~/.julia/artifacts
121+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
122+
restore-keys: |
123+
${{ runner.os }}-test-${{ env.cache-name }}-
124+
${{ runner.os }}-test-
125+
${{ runner.os }}-
126+
- uses: julia-actions/julia-buildpkg@v1
127+
128+
- name: Run tests
129+
uses: julia-actions/julia-runtest@v1
130+
env:
131+
JULIA_LLVM_ARGS: ${{ matrix.llvm_args }}
132+
133+
# post-process
134+
- uses: julia-actions/julia-processcoverage@v1
135+
- uses: codecov/codecov-action@v4
136+
with:
137+
file: lcov.info

0 commit comments

Comments
 (0)