Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix macOS Github Actions #1720

Merged
merged 3 commits into from
May 6, 2024
Merged

Fix macOS Github Actions #1720

merged 3 commits into from
May 6, 2024

Conversation

phprus
Copy link
Contributor

@phprus phprus commented May 3, 2024

Fixes #1719

  1. New macOS pipelines, based on
    macos-13 - x86 tests
    macos-latest - ARM64 tests

  2. Fix configure script (replaced unconditional add -std=c11).

  3. Switch to python venv.

@phprus
Copy link
Contributor Author

phprus commented May 3, 2024

@Dead2, @nmoinvaz Review this PR please.

Copy link
Member

@Dead2 Dead2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

compiler: gcc-10
cxx-compiler: g++-10
ldflags: -ld_classic
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why -ld_classic?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Xcode 15 uses a new linker that is not compatible with GCC.
-ld_classic switches to the old linker.

Homebrew gcc@11 and later have a built-in workaround for this issue:

https://github.com/Homebrew/homebrew-core/blob/c0218d50084e300cba26da84028acfd4917ce623/Formula/g/gcc%4011.rb#L92-L96

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow. Ok. Can you add a comment in the yaml about that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR updated.

cmake-args: -DWITH_SANITIZER=Address
codecov: macos_clang_arm64

- name: macOS GCC UBSAN
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe specify "GCC 10"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other pipelines do not show GCC version in it names.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it looks like even for Clang. Ok. Nvm.

phprus added 3 commits May 6, 2024 20:43
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
@Dead2 Dead2 merged commit 13d17a3 into zlib-ng:develop May 6, 2024
146 of 147 checks passed
This was referenced May 30, 2024
@Dead2 Dead2 mentioned this pull request Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MacOS CI builds failing
3 participants