Skip to content

Add macOS support#298

Open
tristanmontoya wants to merge 3 commits into
trixi-framework:mainfrom
tristanmontoya:tm/macos-support
Open

Add macOS support#298
tristanmontoya wants to merge 3 commits into
trixi-framework:mainfrom
tristanmontoya:tm/macos-support

Conversation

@tristanmontoya

@tristanmontoya tristanmontoya commented Jun 6, 2026

Copy link
Copy Markdown
Member

Wanted to use libtrixi on my Mac, so with the help of Codex, I got it to work cross-platform and added a small macOS test workflow.

@codecov

codecov Bot commented Jun 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.11%. Comparing base (26f9aef) to head (2e32c93).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #298   +/-   ##
=======================================
  Coverage   96.11%   96.11%           
=======================================
  Files          25       25           
  Lines        1260     1260           
  Branches       74       74           
=======================================
  Hits         1211     1211           
  Misses         45       45           
  Partials        4        4           
Flag Coverage Δ
unittests 96.11% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

@tristanmontoya tristanmontoya marked this pull request as ready for review June 6, 2026 22:58
@benegee

benegee commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Nice to see you here @tristanmontoya ! Thanks for trying and sharing you recipe.

In fact, running t8code on macOS is of great interest as well.

So, did it everything work for you so far. I think it would be nice to integrate macos support!

@sloede sloede left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Awesome! Thanks a lot for this!

Just a few minor comments. I didn't review the ci.yml change - @benegee can you maybe take a look at it?

Comment thread README.md
### Prerequisites

Currently, libtrixi is only developed and tested for Linux. Furthermore, the following
Currently, libtrixi is developed and tested for Linux and macOS. Furthermore, the following

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
Currently, libtrixi is developed and tested for Linux and macOS. Furthermore, the following
Currently, libtrixi is developed and tested for Linux and (experimentally) for macOS. Furthermore, the following

Comment thread utils/libtrixi-init-julia
next to the t8code library. (default: '\$(dirname \$T8CODE_LIBRARY)/
libp4est.so')
'path/to/libp4est.so' or 'path/to/libp4est.dylib'. If omitted, it
will be assumed to be located next to the t8code library.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why remove the default?

Comment thread utils/libtrixi-init-julia
to the t8code library. (default: '\$(dirname \$T8CODE_LIBRARY)/
libsc.so')
'path/to/libsc.so' or 'path/to/libsc.dylib'. If omitted, it will be
assumed to be located next to the t8code library.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why remove the default?

Comment on lines +74 to +76
if: >-
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is to prevent deploying from PRs?

Comment thread docs/src/index.md
### Prerequisites

Currently, libtrixi is only developed and tested for Linux. Furthermore, the following
Currently, libtrixi is developed and tested for Linux and macOS. Furthermore, the following

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
Currently, libtrixi is developed and tested for Linux and macOS. Furthermore, the following
Currently, libtrixi is developed and tested for Linux and (experimentally) for macOS. Furthermore, the following

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.

3 participants