Skip to content

Commit e6fae80

Browse files
committed
Switch OpenCL CI to GH:A.
1 parent 420760d commit e6fae80

File tree

2 files changed

+79
-39
lines changed

2 files changed

+79
-39
lines changed

.buildkite/pipeline.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -96,31 +96,31 @@ steps:
9696
soft_fail:
9797
- exit_status: 3
9898

99-
- label: "OpenCL.jl"
100-
plugins:
101-
- JuliaCI/julia#v1:
102-
version: "1.10"
103-
- JuliaCI/julia-coverage#v1:
104-
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
99+
#- label: "OpenCL.jl"
100+
# plugins:
101+
# - JuliaCI/julia#v1:
102+
# version: "1.10"
103+
# - JuliaCI/julia-coverage#v1:
104+
# 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
124124

125125
- label: "Enzyme.jl"
126126
plugins:

.github/workflows/Test.yml

Lines changed: 54 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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,58 @@ 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
124+
with:
125+
token: ${{ secrets.CODECOV_TOKEN }}
126+
fail_ci_if_error: false
127+
files: lcov.info
128+
129+
# XXX: move to Buildkite -- currently done here because the juliaecosystem workers trigger
130+
# bugs in pocl_jll (OpenCL.jl#303) and the juliagpu workers encounter test failures.
131+
opencl_test:
132+
name: "OpenCL.jl"
133+
runs-on: ubuntu-latest
134+
steps:
135+
- uses: actions/checkout@v4
136+
137+
- name: Install Julia
138+
uses: julia-actions/setup-julia@v2
139+
with:
140+
version: ${{ matrix.version }}
141+
arch: ${{ matrix.arch }}
142+
143+
- name: Install OpenCL.jl
144+
run: |
145+
julia -e 'println("--- :julia: Instantiating project")
146+
using Pkg
147+
Pkg.develop(; path=pwd())
148+
Pkg.develop(; name="OpenCL")
149+
Pkg.develop(; name="SPIRVIntrinsics")' || exit 3
150+
151+
- name: Set-up cache
152+
uses: julia-actions/cache@v2
153+
154+
- name: Run tests
155+
run: |
156+
julia -e 'println("+++ :julia: Running tests")
157+
using Pkg
158+
Pkg.test("OpenCL"; coverage=true)'
159+
160+
- name: Process coverage
161+
uses: julia-actions/julia-processcoverage@v1
162+
- name: Submit coverage
163+
uses: codecov/codecov-action@v5
124164
with:
125165
token: ${{ secrets.CODECOV_TOKEN }}
126166
fail_ci_if_error: false

0 commit comments

Comments
 (0)