Skip to content

Update README.md (#284) #67

Update README.md (#284)

Update README.md (#284) #67

# 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-09'
jobs:
platform:
strategy:
fail-fast: false
matrix:
target-platform: ['Eclipse-4.8', 'Eclipse-2022-03', 'Eclipse-2022-06', 'Eclipse-2022-09']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: 'Build for platform: ${{ matrix.target-platform }}'
run: 'mvn -ntp -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