JDK21 Tests #103
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: JDK21 Tests | |
on: | |
push: | |
workflow_dispatch: | |
schedule: | |
- cron: '30 11 * * *' | |
jobs: | |
test-javac: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK 21-ea | |
uses: oracle-actions/setup-java@v1 | |
with: | |
website: jdk.java.net | |
release: 21 | |
version: latest | |
- name: Install Ant | |
run: | | |
wget https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.13-bin.zip | |
unzip apache-ant-1.10.13-bin.zip -d "${HOME}" | |
echo "ANT_HOME=${HOME}/apache-ant-1.10.13" >> $GITHUB_ENV | |
echo "${HOME}/apache-ant-1.10.13/bin" >> $GITHUB_PATH | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
ivyCache | |
lib | |
key: ${{ runner.os }}-${{ hashFiles('**/ivy.xml') }} | |
restore-keys: | | |
${{ runner.os }}- | |
- name: Build and copy lombok.patcher | |
run: | | |
cd ${HOME} | |
git clone https://github.com/projectlombok/lombok.patcher.git | |
cd lombok.patcher | |
ant dist | |
mkdir -p ${GITHUB_WORKSPACE}/ivyCache/org.projectlombok/lombok.patcher/jars/ | |
cp dist/lombok.patcher-0.47.jar ${GITHUB_WORKSPACE}/ivyCache/org.projectlombok/lombok.patcher/jars/ | |
- name: Run tests | |
run: ant -noinput test.javacCurrent |