diff --git a/.github/workflows/macos-test.yml b/.github/workflows/macos-test.yml index f18bc8716..61ef517c8 100644 --- a/.github/workflows/macos-test.yml +++ b/.github/workflows/macos-test.yml @@ -49,14 +49,14 @@ jobs: - name: Set up the environment run: sh ./tools/metacall-environment.sh $METACALL_INSTALL_OPTIONS env: - METACALL_INSTALL_OPTIONS: base python nodejs typescript java ruby wasm rpc file #netcore5 c cobol rust rapidjson funchook swig pack # clangformat v8rep51 coverage + METACALL_INSTALL_OPTIONS: base python nodejs typescript java ruby wasm rpc file cobol #netcore5 c rust rapidjson funchook swig pack # clangformat v8rep51 coverage - name: Configure run: | cd build bash ../tools/metacall-configure.sh $METACALL_CONFIGURE_OPTIONS env: - METACALL_CONFIGURE_OPTIONS: ${{ matrix.buildtype }} scripts ports tests sanitizer python nodejs typescript java ruby wasm rpc file # netcore5 c cobol rust examples install pack benchmarks # v8 coverage + METACALL_CONFIGURE_OPTIONS: ${{ matrix.buildtype }} scripts ports tests sanitizer python nodejs typescript java ruby wasm rpc file cobol # netcore5 c rust examples install pack benchmarks # v8 coverage - name: Build working-directory: ./build diff --git a/tools/metacall-environment.sh b/tools/metacall-environment.sh index c08ffbb91..1b565177c 100755 --- a/tools/metacall-environment.sh +++ b/tools/metacall-environment.sh @@ -659,6 +659,14 @@ sub_cobol(){ # Runtime deps $SUDO_CMD apk add --no-cache db ncurses fi + elif [ "${OPERATIVE_SYSTEM}" = "Darwin" ]; then + brew install gnu-cobol + mkdir -p build + CMAKE_CONFIG_PATH="$ROOT_DIR/build/CMakeConfig.txt" + COBOL_PREFIX=$(brew --prefix gnu-cobol) + echo "-DCOBOL_EXECUTABLE=${COBOL_PREFIX}/bin/cobc" >> $CMAKE_CONFIG_PATH + echo "-DCOBOL_INCLUDE_DIR=${COBOL_PREFIX}/include" >> $CMAKE_CONFIG_PATH + echo "-DCOBOL_LIBRARY=${COBOL_PREFIX}/lib/libcob.dylib" >> $CMAKE_CONFIG_PATH fi }