merge master -Dorg -Ssuccess-only #6482
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: Ant | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
java: [8, 11, 17] | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'zulu' | |
- name: Build with Ant | |
run: | | |
./tools/test-build ant | |
ant docs | |
- name: Upload artifacts | |
# upload just one set of artifacts for easier PR review | |
if: matrix.os == 'ubuntu-latest' && matrix.java == '8' | |
uses: actions/upload-artifact@v4 | |
with: | |
path: artifacts/ | |
retention-days: 30 |