Skip to content

Commit 26569a0

Browse files
committed
fix ci
1 parent 421451b commit 26569a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
matrix:
2020
version:
2121
- '1.6'
22-
- '1.7'
22+
- '1'
2323
- 'nightly'
2424
os:
2525
- ubuntu-latest

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ struct TestAdaptor end
88

99
gpu(x) = Adapt.adapt(TestAdaptor(), x)
1010

11-
Adapt.adapt_storage(to::TestAdaptor, x) = CUDA.cu(x)
11+
Adapt.adapt_storage(to::TestAdaptor, x) = CUDA.functional() ? CUDA.cu(x) : x
1212

1313
@testset "ReinforcementLearningTrajectories.jl" begin
1414
include("traces.jl")

0 commit comments

Comments
 (0)