Files
monero_c/docs/Writerside/topics/macOS.md
Mateusz Franik 85770ea6f1 tests: run integration and regression tests on other platforms (#93)
* tests: add script to download test dependencies from fallback mirrors

* tests: use the new download_deps script, run tests on macos

* ci: download proper artifact for macos

* chore: make download_deps script download everything to dir named `monero_c` when ran directly

* tests: await downloading deps

* tests download  proper monero_c version in prepareMoneroC

* tests: fix typos

* tests: add file data for more targets

* tests: print why retrieving tags failed

* chore: change mirror url endpoint from `monero_c` to `download_mirror`

* tests: use cached releases endpoint to prevent ratelimits

* ci: remove brew@1.76 dependency

* tests: fix macos dylib path

* feat!(monero.ts): make `createTransactionMultDest` optionally return `null`

* feat(monero.ts): make `Wallet_reconnectDevice` symbol optional

* tests: don't try to extract file if out already exists

* tests: remove unnecesary directory rm calls

* ci: set regression tests to use canary
2024-12-30 10:39:28 +01:00

2.1 KiB

macOS

Building on linux has been tested on

  • macos-14 (github runner)
  • MacOS 15.0.1 Sequoia (Native)
  • debian:bookworm (docker tag)

Install dependencies

$ # install xcode 15.4 (or current latest) $ brew install ccache unbound zmq autoconf automake libtool $ # install xcode 15.4 (or current latest) $ brew install ccache unbound zmq autoconf automake libtool $ arch -x86_64 brew install ccache unbound zmq autoconf automake libtool $ arch -x86_64 brew link $ apt update $ apt install -y build-essential pkg-config autoconf libtool \ ccache make cmake gcc g++ git curl lbzip2 libtinfo5 gperf \ python-is-python3

Prepare source

If you are running in docker or have not configured git you may need to do the following:

git config --global --add safe.directory '*'
git config --global user.email "ci@mrcyjanek.net"
git config --global user.name "CI mrcyjanek.net"
$ git clone https://github.com/mrcyjanek/monero_c --recursive
$ cd monero_c
$ ./apply_patches.sh monero

Building

$ ./build_single.sh monero x86_64-host-apple-darwin -j$(nproc) $ ./build_single.sh monero aarch64-host-apple-darwin -j$(nproc) $ arch -x86_64 ./build_single.sh monero x86_64-host-apple-darwin -j$(nproc) $ ./build_single.sh monero x86_64-apple-darwin11 -j$(nproc) $ ./build_single.sh monero aarch64-apple-darwin-11 -j$(nproc)

Known issues

Creating fat library

Check cake_wallet solution