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 CI #2075

Merged
merged 5 commits into from
Dec 16, 2023
Merged

Fix macOS CI #2075

merged 5 commits into from
Dec 16, 2023

Conversation

lmoureaux
Copy link
Contributor

@lmoureaux lmoureaux commented Dec 6, 2023

This fixes multiple failures in the macOS CI. See commits for some more info

Closes #2069

Copy link
Collaborator

@jwrober jwrober left a comment

Choose a reason for hiding this comment

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

Some thoughts...

.github/workflows/build.yaml Outdated Show resolved Hide resolved
.github/workflows/build.yaml Show resolved Hide resolved
.github/workflows/build.yaml Show resolved Hide resolved
@lmoureaux lmoureaux force-pushed the bugfix/ci-update branch 2 times, most recently from 88c5409 to 4e2a3cd Compare December 15, 2023 01:42
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this pull request Dec 15, 2023
Also remove broken debugging code from the macOS build config.
See longturn#2075.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this pull request Dec 15, 2023
SDL2 supports CMake natively and installs an SDL2Config.cmake file. Hence we do
not need a find module. The custom module was not handling linking to macOS
frameworks, which was hard coded into client CMakeLists.txt instead. Just
switch to the native module, which does all of this for us natively.

See longturn#2075.
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this pull request Dec 15, 2023
Recommend opening an issue to check them.

See longturn#2075.
@lmoureaux lmoureaux marked this pull request as ready for review December 15, 2023 02:12
@lmoureaux lmoureaux changed the title Fix macOS CI: fontconfig Fix macOS CI Dec 15, 2023
Also remove broken debugging code from the macOS build config.
See longturn#2075.
This is needed to work around a bug in the meson build system used by
fontconfig, which is pulled as a dependency by vcpkg.

See longturn#2069.
In case it fails to create an image, make sure it tells us why.
SDL2 supports CMake natively and installs an SDL2Config.cmake file. Hence we do
not need a find module. The custom module was not handling linking to macOS
frameworks, which was hard coded into client CMakeLists.txt instead. Just
switch to the native module, which does all of this for us natively.

See longturn#2075.
Recommend opening an issue to check them.

See longturn#2075.
@jwrober
Copy link
Collaborator

jwrober commented Dec 15, 2023

Is there a way for us to have the windows clang CI run to ensure we don't break anything there? If not, I can run on my local as a test.

@jwrober
Copy link
Collaborator

jwrober commented Dec 15, 2023

I am also suggesting we do a squash merge

@lmoureaux
Copy link
Contributor Author

lmoureaux commented Dec 16, 2023

Is there a way for us to have the windows clang CI run to ensure we don't break anything there? If not, I can run on my local as a test.

Triggering a run in my fork. -> https://github.com/lmoureaux/freeciv21/actions/runs/7229577730, passed 🟢

I am also suggesting we do a squash merge

I condensed the commit history in just 5 self-contained changes, shouldn't be necessary.

Copy link
Collaborator

@jwrober jwrober left a comment

Choose a reason for hiding this comment

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

Coolio!

@jwrober jwrober merged commit 8fb346b into longturn:master Dec 16, 2023
20 checks passed
jwrober pushed a commit that referenced this pull request Dec 16, 2023
Also remove broken debugging code from the macOS build config.
See #2075.
jwrober pushed a commit that referenced this pull request Dec 16, 2023
SDL2 supports CMake natively and installs an SDL2Config.cmake file. Hence we do
not need a find module. The custom module was not handling linking to macOS
frameworks, which was hard coded into client CMakeLists.txt instead. Just
switch to the native module, which does all of this for us natively.

See #2075.
@lmoureaux lmoureaux deleted the bugfix/ci-update branch December 17, 2023 00:26
lmoureaux added a commit that referenced this pull request Dec 17, 2023
Also remove broken debugging code from the macOS build config.
See #2075.
lmoureaux added a commit that referenced this pull request Dec 17, 2023
SDL2 supports CMake natively and installs an SDL2Config.cmake file. Hence we do
not need a find module. The custom module was not handling linking to macOS
frameworks, which was hard coded into client CMakeLists.txt instead. Just
switch to the native module, which does all of this for us natively.

See #2075.
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.

The macOS CI is failing
2 participants