Initial Handling of Non-Void Java Method Calls in GnuCOBOL #108
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MacOS with Java interoperability | |
on: | |
pull_request: | |
branches: [ java-interop ] | |
push: | |
# manual run in actions tab - for all branches | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-latest # = macos-14 on 2024-08-14 | |
- macos-12 # without tests | |
# - macos-13 # nope (autogen fails weirdly) | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Configure git | |
run: git config --global core.symlinks false | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install packages | |
run: | | |
brew install pkg-config automake libtool help2man texinfo bison | |
BREW_PREFIX="$(brew --prefix)" | |
echo "BREW_PREFIX=$BREW_PREFIX" >> $GITHUB_ENV | |
- name: Set git user | |
run: | | |
git config --global user.name github-actions | |
git config --global user.email [email protected] | |
- name: Installing Java prerequisite | |
run: | | |
true | |
- name: bootstrap | |
run: | | |
sed -i '' 's/-undefined suppress//g' configure.ac | |
./build_aux/bootstrap install | |
- name: Build environment setup | |
run: | | |
mkdir _build | |
echo "NPROC=`sysctl -n hw.ncpu`" >> $GITHUB_ENV | |
export TERM="vt100" | |
echo "TERM=$TERM" >> $GITHUB_ENV | |
echo "JAVA_HOME=$JAVA_HOME" # for information | |
- name: configure | |
run: | | |
cd _build | |
export CFLAGS="-Wno-deprecated-non-prototype -Wno-parentheses-equality $CFLAGS" | |
../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 | |
with: | |
name: config-${{ matrix.os }}.log | |
path: _build/config.log | |
if: failure() | |
- name: make | |
run: | | |
make -C _build --jobs=$((${NPROC}+1)) | |
# make install must be done before make check, otherwise execution of | |
# generated COBOL files fail for a missing /usr/local/lib/libcob.dylib | |
- name: make install | |
run: | | |
cd _build | |
sudo make install | |
- name: check | |
if: matrix.os == 'macos-latest' | |
run: | | |
sed -i '' \ | |
-e '/AT_SETUP(\[INDEXED file SUPPRESS WHEN ALL \+ KEYCHECK\])/a\ | |
AT_SKIP_IF(\[true\])' \ | |
-e '/AT_SETUP(\[EXTFH: using ISAM callback\])/a\ | |
AT_SKIP_IF(\[true\])' \ | |
-e '/AT_SETUP(\[trace feature\])/a\ | |
AT_SKIP_IF(\[true\])' \ | |
-e '/AT_SETUP(\[trace feature with subroutine\])/a\ | |
AT_SKIP_IF(\[true\])' \ | |
-e '/AT_SETUP(\[trace feature with indexed EXTFH\])/a\ | |
AT_SKIP_IF(\[true\])' \ | |
-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="--recheck --verbose" | |
- name: Upload testsuite.log | |
uses: actions/upload-artifact@v4 | |
if: matrix.os == 'macos-latest' && failure() | |
with: | |
name: testsuite-${{ matrix.os }}.log | |
path: _build/tests/testsuite.log |