Skip to content

Commit

Permalink
Disable BDB, CJSON, and XML2 on CIs for Java interoperability
Browse files Browse the repository at this point in the history
  • Loading branch information
nberth committed Aug 21, 2024
1 parent 1d90af0 commit ec81415
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 27 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/macos-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: MacOS with Java interoperability
on:
pull_request:
branches: [ java-interop ]
# push:
# branches: [ java-interop ]
# manual run in actions tab - for all branches
workflow_dispatch:

Expand All @@ -31,11 +29,9 @@ jobs:

- name: Install packages
run: |
brew install pkg-config automake libtool help2man texinfo bison berkeley-db@4 json-c
brew install pkg-config automake libtool help2man texinfo bison
BREW_PREFIX="$(brew --prefix)"
echo "BREW_PREFIX=$BREW_PREFIX" >> $GITHUB_ENV
echo "LDFLAGS=-L$BREW_PREFIX/opt/berkeley-db@4/lib ${LDFLAGS}" >> $GITHUB_ENV
echo "CPPFLAGS=-I$BREW_PREFIX/opt/berkeley-db@4/include ${CPPFLAGS}" >> $GITHUB_ENV
- name: Set git user
run: |
Expand All @@ -49,9 +45,7 @@ jobs:
- name: bootstrap
run: |
sed -i '' 's/-undefined suppress//g' configure.ac
./autogen.sh
autoconf
autoreconf --install --force
./build_aux/bootstrap install
- name: Build environment setup
run: |
Expand All @@ -65,7 +59,16 @@ jobs:
run: |
cd _build
export CFLAGS="-Wno-deprecated-non-prototype -Wno-parentheses-equality $CFLAGS"
../configure --with-java --enable-cobc-internal-checks --enable-hardening --prefix /opt/cobol/gnucobol --exec-prefix /opt/cobol/gnucobol YACC="$BREW_PREFIX/opt/bison/bin/bison" PKG_CONFIG="$BREW_PREFIX/opt/pkg-config/bin/pkg-config"
../configure --enable-cobc-internal-checks \
--enable-hardening \
--prefix /opt/cobol/gnucobol \
--exec-prefix /opt/cobol/gnucobol \
--without-indexed \
--without-json \
--without-xml2 \
--with-java \
YACC="$BREW_PREFIX/opt/bison/bin/bison" \
PKG_CONFIG="$BREW_PREFIX/opt/pkg-config/bin/pkg-config"
- name: Upload config.log
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -109,7 +112,8 @@ jobs:
-e '\%AT_SETUP(\[LINE SEQUENTIAL COMMIT / ROLLBACK\])%a\
AT_SKIP_IF(\[true\])' \
tests/testsuite.src/run_file.at
make -C _build check TESTSUITEFLAGS="--jobs=$((${NPROC}+1))"
make -C _build check TESTSUITEFLAGS="--jobs=$((${NPROC}+1))" || \
make -C _build check TESTSUITEFLAGS="--recheck --verbose"
- name: Upload testsuite.log
uses: actions/upload-artifact@v4
Expand Down
33 changes: 18 additions & 15 deletions .github/workflows/ubuntu-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Ubuntu with Java interoperability
on:
pull_request:
branches: [ java-interop ]
# push:
# branches: [ java-interop ]
# manual run in actions tab - for all branches
workflow_dispatch:

Expand All @@ -28,7 +26,7 @@ jobs:
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install automake libtool libdb5.3-dev libxml2-dev libcjson-dev bison flex help2man gettext texlive
sudo apt-get install automake libtool bison flex help2man gettext texlive
- name: Set git user
run: |
Expand Down Expand Up @@ -67,7 +65,13 @@ jobs:
- name: configure
run: |
cd _build
../configure --with-java --enable-cobc-internal-checks --enable-hardening --prefix ${INSTALL_PATH}
../configure --enable-cobc-internal-checks \
--enable-hardening \
--prefix ${INSTALL_PATH} \
--without-indexed \
--without-json \
--without-xml2 \
--with-java
echo "VERSION=PACKAGE_VERSION" | cpp -P -imacros config.h | tr -d \" >> $GITHUB_ENV
- name: Upload config.log
Expand All @@ -79,19 +83,18 @@ jobs:

- name: make
run: |
cd _build
make --jobs=$(($(nproc)+1))
make -C _build --jobs=$(($(nproc)+1))
# - name: check
# run: |
# cd _build
# make check TESTSUITEFLAGS="--jobs=$(($(nproc)+1))"

# note: distcheck also creates the dist tarball
- name: distcheck
- name: check
run: |
cd _build
make --jobs=$(($(nproc)+1)) distcheck TESTSUITEFLAGS="--jobs=$(($(nproc)+1))"
make -C _build distcheck \
TESTSUITEFLAGS="--jobs=$(($(nproc)+1))" \
DISTCHECK_CONFIGURE_FLAGS="--without-indexed \
--without-json \
--without-xml2 \
--with-java" || \
make -C _build check \
TESTSUITEFLAGS="--recheck --verbose"
- name: Upload testsuite.log
uses: actions/upload-artifact@v4
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/windows-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Windows MSYS2 with Java interoperability
on:
pull_request:
branches: [ java-interop ]
push:
branches: [ java-interop-ci4windows-x ]
# manual run in actions tab - for all branches
workflow_dispatch:

Expand Down

0 comments on commit ec81415

Please sign in to comment.