Skip to content

Prevent negative remaining size in EscherBSERecord (#1276) #1048

Prevent negative remaining size in EscherBSERecord (#1276)

Prevent negative remaining size in EscherBSERecord (#1276) #1048

Workflow file for this run

# This workflow will build a Java project with Ant
# For more information see: https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-java-with-ant
name: Java CI with Ant
on:
push:
branches: [ trunk ]
pull_request:
branches: [ trunk ]
env:
ANT_VERSION: 1.10.18
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
java: [ 17, 21 ]
name: Java ${{ matrix.java }} build
steps:
- uses: actions/checkout@v7
- name: Setup java ${{ matrix.java }}
uses: actions/setup-java@v6
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Set up Ant
id: setup-ant
run: |
wget https://archive.apache.org/dist/ant/binaries/apache-ant-${{ env.ANT_VERSION }}-bin.tar.gz
tar --exclude=apache-ant-${{ env.ANT_VERSION }}/manual -xzvf apache-ant-${{ env.ANT_VERSION }}-bin.tar.gz
ANT_HOME=`pwd`/apache-ant-${{ env.ANT_VERSION }} apache-ant-${{ env.ANT_VERSION }}/bin/ant -version
- name: Cache downloaded third-party libraries
uses: actions/cache@v6
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: lib
# An explicit key for restoring and saving the cache
key: poi-third-party-libs
- name: Build with Ant
run: ANT_HOME=`pwd`/apache-ant-${{ env.ANT_VERSION }} apache-ant-${{ env.ANT_VERSION }}/bin/ant clean jenkins