diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 5f3a176..725f40c 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -10,11 +10,25 @@ on: branches: [ main ] jobs: - build: + + build-compatibility: strategy: fail-fast: false matrix: - target-platform: ['Eclipse-4.8', 'Eclipse-2021-09', 'Eclipse-2021-12', 'Eclipse-2022-03'] + target-platform: ['Eclipse-4.8', 'Eclipse-2021-09', 'Eclipse-2022-03'] + 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 -Dtarget.platform=${{ matrix.target-platform }} -Dsite.dir=testing clean verify' + + build-default: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -24,5 +38,11 @@ jobs: java-version: '11' distribution: 'temurin' cache: maven - - name: Build with Maven - run: mvn -Dtarget.platform=${{ matrix.target-platform }} clean verify + - name: 'Build for platform: default' + run: 'mvn -Dsite.dir=testing clean verify' + - name: 'Deploy for PR${{ github.event.pull_request.number }}' + if: github.event_name == 'pull_request' + uses: actions/upload-artifact@v2 + with: + name: EasyShell-update-site-PR${{ github.event.pull_request.number }} + path: site/target/repository