Skip to content
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- '1.6' # previous LTS
# - '1.9' # TODO: uncomment this line once we fix the tests on 1.9
- '1.10' # current LTS
# - '1.11' # TODO: uncomment this line once we fix the tests on 1.11
- '1.11'
# - 'nightly' # TODO: decide whether we want to run any CI jobs on nightly.
julia-wordsize:
# The value here only affects the version of Julia binary that we download.
Expand Down
5 changes: 4 additions & 1 deletion src/embedding_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ int main(int argc, char *argv[]) {
jl_value_t *firstarg = checked_eval_string("popfirst!(ARGS)");
JL_GC_PUSH1(&firstarg);
jl_sym_t *var = jl_symbol("PROGRAM_FILE");
#if JULIA_VERSION_MAJOR == 1 && JULIA_VERSION_MINOR >= 10
#if JULIA_VERSION_MAJOR == 1 && JULIA_VERSION_MINOR >= 11
jl_binding_t *bp = jl_get_binding_wr(jl_base_module, var, /* alloc */ 1);
jl_checked_assignment(bp, jl_base_module, var, firstarg);
#elif JULIA_VERSION_MAJOR == 1 && JULIA_VERSION_MINOR >= 10
jl_binding_t *bp = jl_get_binding_wr(jl_base_module, var);
jl_checked_assignment(bp, jl_base_module, var, firstarg);
#elif JULIA_VERSION_MAJOR == 1 && JULIA_VERSION_MINOR >= 9
Expand Down
20 changes: 18 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,22 @@ Base.init_depot_path()
const is_ci = tryparse(Bool, get(ENV, "CI", "")) === true
const is_slow_ci = is_ci && Sys.ARCH == :aarch64
const is_julia_1_6 = VERSION.major == 1 && VERSION.minor == 6
const is_julia_1_11 = VERSION.major == 1 && VERSION.minor == 11

if is_ci
@show Sys.ARCH
end

if is_slow_ci
@warn "This is \"slow CI\" (`is_ci && Sys.ARCH == :aarch64`). Some tests will be skipped or modified." Sys.ARCH
end

if is_julia_1_6
@warn "This is Julia 1.6. Some tests will be skipped or modified." VERSION
end

if is_ci
@show Sys.ARCH
if is_julia_1_11
@warn "This is Julia 1.11. Some tests will be skipped or modified." VERSION
end

function remove_llvmextras(project_file)
Expand Down Expand Up @@ -73,6 +82,13 @@ end
app_compiled_dir = joinpath(tmp, "MyAppCompiled")
@testset for incremental in (is_slow_ci ? (false,) : (true, false))
if incremental == false
if is_julia_1_11
# On Julia 1.11, `incremental=false` is currently broken: https://github.com/JuliaLang/PackageCompiler.jl/issues/976
# So, for now, we skip the `incremental=false` tests on Julia 1.11
@warn "This is Julia 1.11; skipping incremental=false test due to known bug: https://github.com/JuliaLang/PackageCompiler.jl/issues/976"
@test_broken false
continue
end
filter_stdlibs = (is_slow_ci ? (true, ) : (true, false))
else
filter_stdlibs = (false,)
Expand Down
Loading