diff --git a/.github/workflows/AD.yml b/.github/workflows/AD.yml index 47ef8549..3777b346 100644 --- a/.github/workflows/AD.yml +++ b/.github/workflows/AD.yml @@ -9,8 +9,8 @@ on: jobs: test: runs-on: ${{ matrix.os }} - continue-on-error: ${{ matrix.version == 'nightly' }} strategy: + fail-fast: false matrix: version: - '1.6' diff --git a/.github/workflows/Interface.yml b/.github/workflows/Interface.yml index ef1f4dc7..b305124e 100644 --- a/.github/workflows/Interface.yml +++ b/.github/workflows/Interface.yml @@ -10,8 +10,8 @@ on: jobs: test: runs-on: ${{ matrix.os }} - continue-on-error: ${{ matrix.version == 'nightly' }} strategy: + fail-fast: false matrix: version: - '1.6' diff --git a/Project.toml b/Project.toml index d13289bf..e7498ac7 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "Bijectors" uuid = "76274a88-744f-5084-9051-94815aaf08c4" -version = "0.13.18" +version = "0.13.19" [deps] ArgCheck = "dce04be8-c92d-5529-be00-80e4d2c0e197" diff --git a/ext/BijectorsEnzymeExt.jl b/ext/BijectorsEnzymeExt.jl index 1e8d8aa3..cbadb990 100644 --- a/ext/BijectorsEnzymeExt.jl +++ b/ext/BijectorsEnzymeExt.jl @@ -8,7 +8,23 @@ else using ..Bijectors: find_alpha end -@import_rrule typeof(find_alpha) Real Real Real -@import_frule typeof(find_alpha) Real Real Real +# Julia 1.11.1 caused a change in the ordering of precompilation for extensions. +# https://github.com/TuringLang/Bijectors.jl/issues/332 +# See https://github.com/JuliaLang/julia/issues/56204 +@static if v"1.11.1" <= VERSION < v"1.12" + function __init__() + if !Base.generating_output() + eval( + quote + @import_rrule typeof(find_alpha) Real Real Real + @import_frule typeof(find_alpha) Real Real Real + end, + ) + end + end +else + @import_rrule typeof(find_alpha) Real Real Real + @import_frule typeof(find_alpha) Real Real Real +end end diff --git a/test/runtests.jl b/test/runtests.jl index 914c0e32..c565375a 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,5 +1,3 @@ -using Bijectors - using ChainRulesTestUtils using Combinatorics using DistributionsAD @@ -12,6 +10,9 @@ using ReverseDiff using Tracker using Zygote +# Place below `using Enzyme`, see https://github.com/TuringLang/Bijectors.jl/pull/333 +using Bijectors + using Random, LinearAlgebra, Test using Bijectors: