Repository navigation
Cross-platform: Linux + macOS support, remove Nepeta (closes #19) - #25
Merged
Merged
Conversation
- Tests: resolve /tmp with realpath (it is /private/tmp on macOS) and call 'true' via PATH instead of /bin/true (absent on macOS) - CI: run build-and-test on ubuntu-latest and macos-latest - Release: build per-platform binaries (trigger-linux-x86_64, trigger-macos-arm64) and publish them from a single job - Docs: README platforms section, CLAUDE.md CI/portability notes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Portability analysis and fixes for #19. Supported targets are now Linux and macOS. Windows is documented as WSL/MSYS2/Cygwin only. Nepeta mode (#24) is removed as requested.
Analysis
src/already uses only POSIX APIs (fork,execvp,waitpid,pipe,dup2,open,glob,getline,strndup,setenv,getcwd), and all of them exist on macOS. The Linux-only parts were in the tests and in CI/release:test_cd_to_tmpexpectsgetcwd()==/tmp, but on macOS/tmp→/private/tmprealpath("/tmp", NULL)/bin/truedoes not exist on macOS (only/usr/bin/true).cd /tmp | /bin/trueexits 127truevia PATH.test_execute_external_commandnow also asserts status 0 (it used to pass even when exec failed)ubuntu-latestbuild-and-testmatrix:ubuntu-latest+macos-latest.sanitize/lintstay Linux-only (no LeakSanitizer on macOS)shell, so a second platform's asset would collidetrigger-linux-x86_64,trigger-macos-arm64, published by a single job (no race creating the release)Native Windows is out of scope: process launch, pipes, redirection and globbing would all need a Win32 rewrite.
Changes
ci.ymlmacOS matrix,release.ymlper-platform assetsTesting
build-and-test (macos-latest)jobrelease.ymlonly runs on av*.*.*tag, so it is untested until the next release🤖 Generated with Claude Code