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

Add CI for macos #180

Merged
merged 5 commits into from
Jul 9, 2024
Merged

Add CI for macos #180

merged 5 commits into from
Jul 9, 2024

Conversation

tenderlove
Copy link
Collaborator

No description provided.

clang requires manually enabling C++ extensions via
`-std=c++<version>`, and ICU 75.1 needs C++17. Auto-detect the flags
that are needed to build.

Relates to #172

Closes #177
C++ compilation failed without these explicit casts.
Now that a C++ compiler is used to support later versions of ICU, we
need to surround all C code with `extern "C"` to avoid name mangling
that would cause issues with symbol resolution on macOS.
@@ -0,0 +1,27 @@
name: CI

on: [push, pull_request]

Choose a reason for hiding this comment

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

Suggested change
on: [push, pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- main

Saw your post on mastodon. Thought this might help?

Choose a reason for hiding this comment

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

... nevermind, I misread, sorry. 🤦‍♂️

Copy link

@zenspider zenspider left a comment

Choose a reason for hiding this comment

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

maybe found part of the problem


jobs:
test:
runs-on: ${{ matrix.os }}-latest

Choose a reason for hiding this comment

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

I think the problem is here... macos-14-latest doesn't make sense to me

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, that's what I get for copy/pasting YAML files. I wish GitHub would tell me the "runs-on" doesn't make sense.

* stanhu-sh-auto-detect-cxx-flags:
  Avoid C++ name mangling in C code
  Fix C pointer conversion errors
  Auto-detect C++ extensions needed to build
Copy link

@zenspider zenspider left a comment

Choose a reason for hiding this comment

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

clearing request for changes

@tenderlove tenderlove merged commit 466bbb1 into master Jul 9, 2024
12 checks passed
@tenderlove tenderlove deleted the macosci branch July 9, 2024 23:26
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.

None yet

4 participants