Skip to content

Commit

Permalink
Try to get osxcross working on Ubuntu 22.04
Browse files Browse the repository at this point in the history
20.04 only has Clang 10, which doesn't support the SHA3 extension
  • Loading branch information
animetosho committed Dec 30, 2023
1 parent 10e5b74 commit 2fc8de4
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 4 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build-dev-mac-arm64.yml
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
10 changes: 8 additions & 2 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,15 @@ jobs:

build-dev-mac-arm64:
name: Build arm64 MacOS binary
# avoid OpenSSL 3.0.2 on 22.04: https://github.com/tpoechtrager/osxcross/issues/349
runs-on: ubuntu-20.04
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"
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,15 @@ jobs:

build-mac-arm64:
name: Build arm64 MacOS binary
# avoid OpenSSL 3.0.2 on 22.04: https://github.com/tpoechtrager/osxcross/issues/349
runs-on: ubuntu-20.04
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"
Expand Down

0 comments on commit 2fc8de4

Please sign in to comment.