Skip to content

chore: change cxx

chore: change cxx #79

name: Tests and XCode framework
on:
push:
branches:
- main
- develop
- fix/ci-bls-build
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: |
GMP_PREFIX=$(brew --prefix gmp 2>/dev/null)
export CGO_LDFLAGS="$CGO_LDFLAGS -L${GMP_PREFIX}/lib"
export CGO_CXXFLAGS="$CGO_CXXFLAGS -I${GMP_PREFIX}/include"
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