Skip to content

Commit

Permalink
Validate test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Dec 20, 2024
1 parent c64babd commit b70192c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ jobs:
Pkg.add(PackageSpec(name="TimeZones", rev=ENV["SHA"]))
using TimeZones
# TODO: Use shared project environments when the minimum version of Julia is 1.8 (e.g. `@sysimage`)
sysimage:
name: System Image - Julia ${{ matrix.version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -130,6 +131,7 @@ jobs:
Pkg.add(PackageSpec(name="PackageCompiler", version="2"))
using PackageCompiler
create_sysimage(; project="sysimage", sysimage_path="sysimage.so")
# create_sysimage(; project=joinpath(first(DEPOT_PATH), "environments", "sysimage"), sysimage_path="sysimage.so")
- name: Validate sysimage works
shell: julia --color=yes --project=sysimage -Jsysimage.so {0}
run: |
Expand Down
5 changes: 3 additions & 2 deletions src/TimeZones.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ function __init__()
# Backwards compatibility for TZJData versions below v1.3.1. The portion of the
# code which determines the `pkg_dir` could be replaced by `pkgdir(TZJData)` however
# the `pkgdir` function doesn't work well with relocated system images.
pkg = Base.identify_package(TZJData, "TZJData")
pkg_dir = dirname(dirname(Base.locate_package(pkg)))
# pkg = Base.identify_package(TZJData, "TZJData")
# pkg_dir = dirname(dirname(Base.locate_package(pkg)))
pkg_dir = pkgdir(TZJData)
artifact_dict = Artifacts.parse_toml(joinpath(pkg_dir, "Artifacts.toml"))
hash = Base.SHA1(artifact_dict["tzjdata"]["git-tree-sha1"])
Artifacts.artifact_path(hash)
Expand Down

0 comments on commit b70192c

Please sign in to comment.