Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Build with Java support for MacOS #405

Merged
merged 9 commits into from
Mar 27, 2023
Merged
4 changes: 2 additions & 2 deletions .github/workflows/macos-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ jobs:
- name: Set up the environment
run: sh ./tools/metacall-environment-macos.sh $METACALL_INSTALL_OPTIONS
env:
METACALL_INSTALL_OPTIONS: python nodejs # ruby netcore5 typescript file rpc wasm java c cobol rust rapidjson funchook swig pack # clangformat v8rep51 coverage
METACALL_INSTALL_OPTIONS: python nodejs java # ruby netcore5 typescript file rpc wasm c cobol rust rapidjson funchook swig pack # clangformat v8rep51 coverage

- name: Configure
run: |
mkdir -p build
cd build
bash ../tools/metacall-configure.sh $METACALL_CONFIGURE_OPTIONS
env:
METACALL_CONFIGURE_OPTIONS: ${{ matrix.buildtype }} scripts ports tests sanitizer python # nodejs python java sanitizer ruby netcore5 typescript file rpc wasm java c cobol rust examples dynamic install pack benchmarks # v8 coverage
METACALL_CONFIGURE_OPTIONS: ${{ matrix.buildtype }} scripts ports tests sanitizer python java # nodejs python java sanitizer ruby netcore5 typescript file rpc wasm java c cobol rust examples dynamic install pack benchmarks # v8 coverage

- name: Build
working-directory: ./build
Expand Down
8 changes: 8 additions & 0 deletions tools/metacall-environment-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ sub_nodejs(){
brew install node make npm curl python3
}

# Java
sub_java(){
echo "configuring java"
brew install openjdk@19
}

sub_install()
{
Expand All @@ -79,6 +84,9 @@ sub_install()
if [ $INSTALL_NODEJS = 1 ]; then
sub_nodejs
fi
if [ $INSTALL_JAVA = 1 ]; then
sub_java
fi
}

sub_options(){
Expand Down