-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (38 loc) · 1.04 KB
/
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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
jdk: [ 8, 11, 17, 21, 23 ]
runs-on: ubuntu-latest
steps:
- name: Pull Request Checkout
uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
if: github.head_ref != ''
- name: Push Checkout
uses: actions/checkout@v4
if: github.head_ref == ''
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{matrix.jdk}}
distribution: 'temurin'
- name: Set up Python 3
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Github Environment Setup
run: |
owner=${{ github.repository_owner }}
echo "REPO_SITE=${owner}" >> $GITHUB_ENV
- name: Linear Checker Build
run: ./gradlew build --warning-mode all