Closed ankane closed 1 year ago
It looks like strip
is hard-coded, but creating a symlink in setup
works.
strategy:
matrix:
include:
- platform: x86_64-darwin
setup: sudo ln -s /opt/osxcross/target/bin/x86_64-apple-darwin-strip /usr/local/bin/strip
steps:
- uses: oxidize-rb/cross-gem-action@v7
with:
platform: ${{ matrix.platform }}
setup: |
bundle install
${{ matrix.setup }}
Path for more platforms:
x86_64-linux
- working strip
already in pathaarch64-linux
- /usr/bin/aarch64-linux-gnu-strip
x86_64-darwin
- /opt/osxcross/target/bin/x86_64-apple-darwin-strip
arm64-darwin
- /opt/osxcross/target/bin/aarch64-apple-darwin-strip
x64-mingw-ucrt
and x64-mingw32
- /usr/bin/x86_64-w64-mingw32-strip
Correction for future readers: This approach only applies to x86_64-darwin
, since it breaks code signing on arm64-darwin
(#135) and stripping happens during linking on other supported platforms
Hey,
I was wondering if there was a way for the action to support the
strip
option, which can significantly reduce the binary size.It currently fails on
x86_64-darwin
with: