diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2b1f984..06c6e9a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -22,15 +22,23 @@ jobs: fail-fast: false matrix: version: - - '1.6' + - '1.3' # compat require + - 'lts' - '1' - - 'nightly' os: - ubuntu-latest - - macOS-latest + - macos-13 # Intel - windows-latest arch: - x64 + include: + # macos-latest -> Apple Silicon (Need julia >= v1.8) + - os: macos-latest + arch: 'aarch64' + version: 'lts' + - os: macos-latest + arch: 'aarch64' + version: '1' steps: - uses: actions/checkout@v4 - uses: julia-actions/cache@v2 diff --git a/Project.toml b/Project.toml index 586f7f2..bde53be 100644 --- a/Project.toml +++ b/Project.toml @@ -11,7 +11,6 @@ REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb" [compat] SpecialFunctions = "0.8, 0.9, 0.10, 1" GSL_jll = "2.6" -REPL = "1.3.0" julia = "1.3.0" [extras] diff --git a/src/manual_wrappers.jl b/src/manual_wrappers.jl index 989c69a..aa14aa0 100644 --- a/src/manual_wrappers.jl +++ b/src/manual_wrappers.jl @@ -35,6 +35,11 @@ gsl_function_helper(x::Cdouble, fn)::Cdouble = fn(x) # The following code relies on `gsl_function` being a mutable type # (such that we can call `pointer_from_objref` on it) to simplify the object structure # a little bit and avoid hitting some limitation of the allocation optimizer. +@static if VERSION < v"1.5" + # rename isimmutable to ismutable #34652 + # https://github.com/JuliaLang/julia/pull/34652 + ismutable(@nospecialize(x)) = !isimmutable(x) +end @assert ismutable(gsl_function(C_NULL, C_NULL)) function wrap_gsl_function(fn::F) where F