Fix wallet core windows #94
Workflow file for this run
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 is a basic workflow to help you get started with Actions | |
name: Mac OSX Build | |
# Controls when the workflow will run | |
# Triggers the workflow on push or pull request events and manually from the Actions tab | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- 'README.md' | |
- '.github/workflows/**' | |
- '.gitignore' | |
pull_request: | |
workflow_dispatch: | |
env: | |
CMAKE_BUILD_PARALLEL_LEVEL: 8 | |
jobs: | |
MacOS: | |
env: | |
MAKEFLAGS: "-j 8" | |
runs-on: macos-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
# Workaround for arm64 build | |
- name: Ensure latest macOS SDK is used | |
run: | | |
sudo xcode-select --switch "$(find /Applications -mindepth 1 -maxdepth 1 ! -type l | grep "Xcode_[\.0-9]*app" | sort -V | tail -1)/Contents/Developer" | |
sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/* | |
- name: Install Rust dependencies | |
run: | | |
rustup update | |
rustup toolchain install stable | |
rustup default stable | |
rustup target add x86_64-apple-darwin | |
rustup target add aarch64-apple-darwin | |
rustup target add wasm32-unknown-emscripten | |
cargo install cbindgen cargo-lipo | |
- name: Create Build Directory | |
run: | | |
cmake -E make_directory ${{github.workspace}}/.build | |
- name: Configure CMake | |
working-directory: ${{github.workspace}}/.build | |
run: cmake -S ../build/OSX/ -DCMAKE_BUILD_TYPE=Release | |
- name: Compile | |
working-directory: ${{github.workspace}}/.build | |
run: make | |