forked from Parchive/par2cmdline
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to get osxcross working on Ubuntu 22.04
20.04 only has Clang 10, which doesn't support the SHA3 extension
- Loading branch information
1 parent
10e5b74
commit 2fc8de4
Showing
3 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
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.8 from Ubuntu 23.04 | ||
- run: | | ||
echo 'deb http://archive.ubuntu.com/ubuntu/ lunar main' >>/etc/apt/sources.list.d/lunar.list | ||
echo 'APT::Default-Release "jammy";' >>/etc/apt/apt.conf | ||
apt update | ||
apt -t=lunar -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 |
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
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