Skip to content

Commit ab80fee

Browse files
authored
Add OpenCL to CI + other improvements (#694)
1 parent 58e6dfc commit ab80fee

File tree

2 files changed

+49
-22
lines changed

2 files changed

+49
-22
lines changed

.buildkite/pipeline.yml

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ steps:
22
- label: "CUDA.jl"
33
plugins:
44
- JuliaCI/julia#v1:
5-
version: "1.10"
5+
version: "1.11"
66
- JuliaCI/julia-coverage#v1:
77
codecov: true
88
command: |
@@ -25,7 +25,7 @@ steps:
2525
- label: "oneAPI.jl"
2626
plugins:
2727
- JuliaCI/julia#v1:
28-
version: "1.10"
28+
version: "1.11"
2929
- JuliaCI/julia-coverage#v1:
3030
codecov: true
3131
command: |
@@ -52,7 +52,7 @@ steps:
5252
- label: "Metal.jl"
5353
plugins:
5454
- JuliaCI/julia#v1:
55-
version: "1.10"
55+
version: "1.11"
5656
- JuliaCI/julia-coverage#v1:
5757
codecov: true
5858
command: |
@@ -76,7 +76,7 @@ steps:
7676
- label: "AMDGPU.jl"
7777
plugins:
7878
- JuliaCI/julia#v1:
79-
version: "1.10"
79+
version: "1.11"
8080
- JuliaCI/julia-coverage#v1:
8181
codecov: true
8282
command: |
@@ -96,12 +96,38 @@ steps:
9696
soft_fail:
9797
- exit_status: 3
9898

99-
- label: "Enzyme.jl"
99+
- label: "OpenCL.jl"
100100
plugins:
101101
- JuliaCI/julia#v1:
102102
version: "1.10"
103103
- JuliaCI/julia-coverage#v1:
104104
codecov: true
105+
command: |
106+
julia -e 'println("--- :julia: Instantiating project")
107+
using Pkg
108+
Pkg.develop(; path=pwd())
109+
Pkg.develop(; name="OpenCL")
110+
Pkg.develop(; name="SPIRVIntrinsics")' || exit 3
111+
112+
julia -e 'println("+++ :julia: Running tests")
113+
using Pkg
114+
Pkg.test("OpenCL"; coverage=true)'
115+
agents:
116+
# XXX: not on "juliaecosystem" because those workers don't have libc-dev
117+
# see JuliaGPU/OpenCL.jl#303
118+
queue: "juliagpu"
119+
cuda: "*"
120+
if: build.message !~ /\[skip tests\]/ && !build.pull_request.draft
121+
timeout_in_minutes: 120
122+
soft_fail:
123+
- exit_status: 3
124+
125+
- label: "Enzyme.jl"
126+
plugins:
127+
- JuliaCI/julia#v1:
128+
version: "1.11"
129+
- JuliaCI/julia-coverage#v1:
130+
codecov: true
105131
command: |
106132
julia -e 'println("--- :julia: Instantiating project")
107133
using Pkg
@@ -112,12 +138,13 @@ steps:
112138
using Pkg
113139
Pkg.test("Enzyme"; coverage=true, julia_args=`--depwarn=no`)'
114140
agents:
115-
queue: "juliagpu"
141+
queue: "juliaecosystem"
142+
os: "linux"
143+
arch: "x86_64"
116144
if: build.message !~ /\[skip tests\]/ && !build.pull_request.draft
117145
timeout_in_minutes: 60
118146
soft_fail:
119147
- exit_status: 3
120148

121149
env:
122150
JULIA_PKG_SERVER: "" # it often struggles with our large artifacts
123-
SECRET_CODECOV_TOKEN: "ya+qhtTvHdnO/U1KSoTcdCRB4WCCFU7Or2wt7YlzSZJWqITbLxidDfvqxTMG0mPo6M9I2XW6GULCleA9okq06reF5//14WSmxiF8qPwBONj6m+ImdkLpju2FfLCAtISFJYRM5OJRdDuQ5hKz+FyNoDG/jWBm/vrHoXzrVOHpcHGOPvrEtSwkdo8ew0prFq5RTi6c0Pe+Vj+xRMH7o8QhIPisYUd4RWsA/BL3ukxqSSzpU1+ZJ4F5v6eZILSaKSPb04FzpotkbH+UUCvJSn28Cif+JQANJ9HDLgaa1BbSlOAcu7syktS2fJOyOTfE67er9Lu8utqz6973Evnqjfbclw==;U2FsdGVkX19sIzsESyU7ZuRndlTrQy67iOsrPzevxn+W/dWZBd3ds5Soh1ig5ivoUi4tLZrqUv/ZyPIHohVy0A=="

.github/workflows/Test.yml

Lines changed: 15 additions & 15 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.10', '1.11', '1.12-nightly', 'nightly']
21+
version: ['1.10', '1.11', '1.12-nightly'] # nightly
2222
os: [ubuntu-latest, macOS-latest, windows-latest]
2323
arch: [x64]
2424
llvm_args: ['']
@@ -52,24 +52,24 @@ jobs:
5252
steps:
5353
- uses: actions/checkout@v4
5454

55-
# install Julia
56-
- uses: julia-actions/setup-julia@v2
55+
- name: Install Julia
56+
uses: julia-actions/setup-julia@v2
5757
with:
5858
version: ${{ matrix.version }}
5959
arch: ${{ matrix.arch }}
6060

61-
# set-up packages
62-
- uses: julia-actions/cache@v2
63-
- uses: julia-actions/julia-buildpkg@v1
61+
- name: Set-up cache
62+
uses: julia-actions/cache@v2
6463

6564
- name: Run tests
6665
uses: julia-actions/julia-runtest@v1
6766
env:
6867
JULIA_LLVM_ARGS: ${{ matrix.llvm_args }}
6968

70-
# post-process
71-
- uses: julia-actions/julia-processcoverage@v1
72-
- uses: codecov/codecov-action@v5
69+
- name: Process coverage
70+
uses: julia-actions/julia-processcoverage@v1
71+
- name: Submit coverage
72+
uses: codecov/codecov-action@v5
7373
with:
7474
token: ${{ secrets.CODECOV_TOKEN }}
7575
fail_ci_if_error: false
@@ -109,18 +109,18 @@ jobs:
109109
rm julia.tar.gz
110110
echo $PWD/../julia-*/bin >> $GITHUB_PATH
111111
112-
# set-up packages
113-
- uses: julia-actions/cache@v2
114-
- uses: julia-actions/julia-buildpkg@v1
112+
- name: Set-up cache
113+
uses: julia-actions/cache@v2
115114

116115
- name: Run tests
117116
uses: julia-actions/julia-runtest@v1
118117
env:
119118
JULIA_LLVM_ARGS: ${{ matrix.llvm_args }}
120119

121-
# post-process
122-
- uses: julia-actions/julia-processcoverage@v1
123-
- uses: codecov/codecov-action@v5
120+
- name: Process coverage
121+
uses: julia-actions/julia-processcoverage@v1
122+
- name: Submit coverage
123+
uses: codecov/codecov-action@v5
124124
with:
125125
token: ${{ secrets.CODECOV_TOKEN }}
126126
fail_ci_if_error: false

0 commit comments

Comments
 (0)