-
Notifications
You must be signed in to change notification settings - Fork 14
43 lines (38 loc) · 1.42 KB
/
pull_request-or-main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 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