Build MacOS ARM dev binary #3
This file contains 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
name: Build MacOS dev binary | |
on: | |
workflow_dispatch: | |
jobs: | |
build-test-mac-arm64: | |
name: Build arm64 MacOS binary | |
runs-on: ubuntu-22.04 | |
steps: | |
# workaround issue with OpenSSL 3.0.2 on 22.04: https://github.com/tpoechtrager/osxcross/issues/349 | |
# issue is fixed in 3.0.7, so grab 3.0.13 from Ubuntu 24.04 | |
- run: | | |
echo 'deb http://archive.ubuntu.com/ubuntu/ noble main' | sudo tee -a /etc/apt/sources.list.d/noble.list >/dev/null | |
echo 'APT::Default-Release "jammy";' | sudo tee -a /etc/apt/apt.conf >/dev/null | |
sudo apt update | |
sudo apt -t=noble -y install openssl | |
- uses: mbround18/setup-osxcross@main # OSXCROSS_TARGET unavailable in v1.1 | |
with: | |
osx-version: "12.3" | |
- uses: actions/checkout@v3 | |
- run: aclocal && automake --warnings=all --add-missing && autoconf --warnings=all | |
- run: ./configure --host=aarch64-macos | |
env: | |
CC: oa64-clang | |
CXX: oa64-clang++ | |
AR: arm64-apple-darwin21.4-ar | |
RANLIB: arm64-apple-darwin21.4-ranlib | |
STRIP: arm64-apple-darwin21.4-strip | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: ./config.log | |
name: configure-macos-arm64.log | |
retention-days: 5 | |
if: ${{ failure() }} | |
- run: make | |
- run: | | |
wget -q -O- https://github.com/indygreg/apple-platform-rs/releases/download/apple-codesign%2F0.22.0/apple-codesign-0.22.0-x86_64-unknown-linux-musl.tar.gz | tar zxf - | |
apple-codesign*/rcodesign sign par2 | |
- if: ${{ failure() }} | |
run: | | |
ls | |
ls apple-codesign* | |
find . -name rcodesign | |
- run: xz -9e --lzma2 par2 | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: ./par2.xz | |
name: par2cmdline-turbo-dev-macos-arm64.xz | |
retention-days: 5 |