libzim icon indicating copy to clipboard operation
libzim copied to clipboard

Add macOS 15 to CI

Open kelson42 opened this issue 8 months ago • 6 comments

kelson42 avatar Apr 26 '25 15:04 kelson42

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 58.13%. Comparing base (c883006) to head (6f8d648). :warning: Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #980   +/-   ##
=======================================
  Coverage   58.13%   58.13%           
=======================================
  Files         101      101           
  Lines        5384     5384           
  Branches     2197     2197           
=======================================
  Hits         3130     3130           
  Misses        795      795           
  Partials     1459     1459           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Apr 26 '25 15:04 codecov[bot]

@rgaudin Any idea? Do we have a path problem? Or should we compile with Xcode16? https://github.com/openzim/libzim/actions/runs/15463093103/job/43528832086?pr=980#step:9:58

kelson42 avatar Jun 05 '25 09:06 kelson42

Message is pretty clear:

meson.build:1:0: ERROR: Unknown compiler(s): [['/Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang']]
The following exception(s) were encountered:
Running `/Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --version` gave "[Errno 2] No such file or directory: '/Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang'"

As you can see above, it's configured for Xcode_15.0.1 but macos-15 only includes Xcode 16.x.

This is I believe due to the previous step (Install dependencies). It downloads and uses https://tmp.kiwix.org/ci/deps_macos-aarch64-dyn_libzim.tar.gz which meson_cross_file.txt references that 15.0.1

rgaudin avatar Jun 05 '25 09:06 rgaudin

@rgaudin Does that means we need to move to Xcode 16 at kiwix/kiwix-build first?

kelson42 avatar Jun 05 '25 10:06 kelson42

I guess. I don't think this external dependencies behavior can work with different Xcode versions.

rgaudin avatar Jun 05 '25 10:06 rgaudin

Blocked by https://github.com/kiwix/kiwix-build/issues/830

kelson42 avatar Jun 05 '25 13:06 kelson42

@rgaudin Please let me know if something could be improved (or maybe just patch directly the PR) as this will be use to upgrade macOS CI for other projects.

kelson42 avatar Oct 08 '25 10:10 kelson42