Fixed builds for OSX, iOS, Android, Windows and sped them up #120
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
name: Mac OSX Build | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- "README.md" | |
- ".github/workflows/**" | |
- ".gitignore" | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
MacOS: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- name: Add Rust targets | |
run: | | |
rustup target add aarch64-apple-darwin | |
rustup target add wasm32-unknown-emscripten | |
- name: Install bindgen | |
run: cargo install cbindgen | |
- name: Install Ninja | |
run: brew install ninja | |
- name: Install ccache | |
run: brew install ccache | |
- name: Configure CMake | |
run: cmake -S build/OSX -B build/OSX/Release -DCMAKE_BUILD_TYPE=Release -G Ninja | |
- name: Compile | |
run: cmake --build build/OSX/Release --config Release -j |