Skip to content

update to 2023 targets and JavaSE-17 #52

update to 2023 targets and JavaSE-17

update to 2023 targets and JavaSE-17 #52

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Pull-Request-or-Main
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
DEFAULT_TARGET_PLATFORM: 'Eclipse-2022-12'
jobs:
platform:
strategy:
fail-fast: false
matrix:
target-platform: ['Eclipse-4.8', 'Eclipse-2022-09', 'Eclipse-2022-12', 'Eclipse-2023-03']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: 'Build for platform: ${{ matrix.target-platform }}'
run: 'mvn -Dtarget.platform=${{ matrix.target-platform }} -Dsite.dir=testing clean verify'
- name: Assign build.version.properties to env variable
if: matrix.target-platform == env.DEFAULT_TARGET_PLATFORM
run: cat site/target/build.version.properties >> $GITHUB_ENV
- name: 'Upload update site artifact for build ${{ env.build_version_full }}'
if: matrix.target-platform == env.DEFAULT_TARGET_PLATFORM
uses: actions/upload-artifact@v2
with:
name: EasyShell-${{ env.build_version_full }}
path: site/target/repository