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

Workaround for fixing GitHub runners on macOS #2411

Merged
merged 1 commit into from
Apr 28, 2024
Merged

Conversation

IvanNardi
Copy link
Collaborator

GitHub switched "macos-latest" from "macos-12" to "macos-14", which is only on ARM64!
actions/runner#3256
https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available/

However we are having some issues build nDPI on macos-14 with external libraries:

configure: error: libgpg-error required (because of --with-local-libgcrypt) but not found or too old.

See: https://github.com/ntop/nDPI/actions/runs/8869020568/job/24350356867

ndpi_utils.c:69:10: fatal error: 'pcre2.h' file not found
         ^~~~~~~~~
1 error generated.

See: https://github.com/ntop/nDPI/actions/runs/8869020568/job/24349242251

Everything is still fine with macos-14 and no external dependencies

As workaround, test only macos-12 and macos-13 in our main matrix.

GitHub switched "macos-latest" from "macos-12" to "macos-14", which is only
on ARM64!
actions/runner#3256
https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available/

However we are having some issues build nDPI on macos-14 with external
libraries:

```
configure: error: libgpg-error required (because of --with-local-libgcrypt) but not found or too old.
```
See: https://github.com/ntop/nDPI/actions/runs/8869020568/job/24350356867

```
ndpi_utils.c:69:10: fatal error: 'pcre2.h' file not found
         ^~~~~~~~~
1 error generated.
```
See: https://github.com/ntop/nDPI/actions/runs/8869020568/job/24349242251

Everything is still fine with macos-14 and no external dependencies

As workaround, test only macos-12 and macos-13 in our main matrix.
@IvanNardi IvanNardi requested a review from utoni April 28, 2024 18:48
Copy link

sonarcloud bot commented Apr 28, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@IvanNardi
Copy link
Collaborator Author

I had the same kind of issue when I added the first basic support for macos-14 on arm64: 8fbef7f

Copy link
Collaborator

@utoni utoni left a comment

Choose a reason for hiding this comment

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

Thanks. I'll need that as well. :)

@IvanNardi IvanNardi merged commit 9e549ba into ntop:dev Apr 28, 2024
33 checks passed
@IvanNardi IvanNardi deleted the mac-os branch April 28, 2024 20:17
utoni added a commit to utoni/nDPId that referenced this pull request May 6, 2024
 * See: ntop/nDPI#2411

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
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

2 participants