Skip to content

Commit

Permalink
Fix macos build (#925)
Browse files Browse the repository at this point in the history
  • Loading branch information
BertrandD authored Dec 6, 2022
1 parent e2ff7ab commit aca5214
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ set -euo pipefail

mkdir _build_tests
cd _build_tests
cmake .. -DTARGET_JNI=${BUILD_JNI-OFF} -DBUILD_TESTS=ON -DNIX_BUILD=OFF -DCCACHE=ON -DSYS_OPENSSL=ON -DOPENSSL_USE_STATIC_LIBS=TRUE -GNinja
cmake .. -DTARGET_JNI=${BUILD_JNI-OFF} -DBUILD_TESTS=ON -DNIX_BUILD=OFF -DCCACHE=ON -DSYS_OPENSSL=ON -DOPENSSL_USE_STATIC_LIBS=TRUE ${ARGS}
echo "========= Building libcore"
cmake --build . --parallel --target ledger-core-static
cmake --build . --parallel --target ledger-core
cmake --build . --parallel
cmake --build . --target ledger-core-static -- -j2
cmake --build . --target ledger-core -- -j2
cmake --build . -- -j2
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:
description: "Build macos in JAR"
required: true
type: boolean
default: true
default: false
jobs:
Release:
runs-on: ubuntu-22.04
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ jobs:
max-size: "3G"
- name: Build
run: .github/scripts/build.sh
env:
OPENSSL_ROOT_DIR: /usr/local/opt/openssl/
ARGS: '-GNinja'
- name: Tests
if: env.BUILD_JNI == 'OFF'
run: .github/scripts/test.sh
Expand Down Expand Up @@ -82,7 +85,6 @@ jobs:
submodules: 'recursive'
- name: Setup Macos
run: |
brew install ninja
brew install openssl
brew install postgresql@13
brew link --overwrite postgresql@13
Expand All @@ -101,6 +103,7 @@ jobs:
run: .github/scripts/build.sh
env:
OPENSSL_ROOT_DIR: /usr/local/opt/openssl/
ARGS:
- name: Tests
if: env.BUILD_JNI == 'OFF'
run: .github/scripts/test.sh
Expand Down

0 comments on commit aca5214

Please sign in to comment.