Feat/core 20 beacons #69
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: Tests and XCode framework | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
build: | |
name: Cargo test | |
runs-on: macos-latest | |
steps: | |
- name: Install automake | |
run: | | |
brew install automake | |
- name: Install gmp | |
run: | | |
brew install gmp | |
- name: Checkout dash-shared-core | |
uses: actions/checkout@v3 | |
with: | |
path: dash-shared-core | |
submodules: recursive | |
- name: Create LFS file list | |
run: | | |
git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id | |
working-directory: ./dash-shared-core | |
- name: Restore LFS cache | |
uses: actions/cache@v3 | |
id: lfs-cache | |
with: | |
path: dash-shared-core/.git/lfs | |
key: lfs-${{ hashFiles('.lfs-assets-id') }}-v3 | |
- name: Rustup add targets | |
run: rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim x86_64-apple-darwin aarch64-apple-darwin | |
- name: Run tests | |
working-directory: ./dash-shared-core | |
run: | | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/homebrew/lib/ | |
cargo test --lib --verbose | |
- name: Build Apple frameworks | |
working-directory: ./dash-shared-core/dash-spv-apple-bindings | |
run: | | |
./build.sh |