[ci] Setup openjdk with github action

This commit is contained in:
halx99 2022-01-28 15:27:17 +08:00
parent c241a418c9
commit b0e2f6912d
7 changed files with 12 additions and 14 deletions

View File

@ -44,8 +44,12 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: 'recursive' submodules: 'recursive'
lfs: 'true'
- uses: actions/setup-java@v2
with:
distribution: 'microsoft' # See 'Supported distributions' for available options
java-version: '11'
- name: Create Build Environment - name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory # Some projects don't allow in-source building, so create a separate build directory
# We'll use this as our working directory for all # We'll use this as our working directory for all

View File

@ -18,12 +18,11 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: 'recursive' submodules: 'recursive'
lfs: 'true'
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
- uses: ilammy/msvc-dev-cmd@v1.9.0 - uses: ilammy/msvc-dev-cmd@v1.10.0
with: with:
arch: ${{ env.BUILD_ARCH }} arch: ${{ env.BUILD_ARCH }}

View File

@ -33,7 +33,6 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: 'recursive' submodules: 'recursive'
lfs: 'true'
- name: Create Build Environment - name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory # Some projects don't allow in-source building, so create a separate build directory

View File

@ -34,7 +34,6 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: 'recursive' submodules: 'recursive'
lfs: 'true'
- name: Create Build Environment - name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory # Some projects don't allow in-source building, so create a separate build directory

View File

@ -33,7 +33,6 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: 'recursive' submodules: 'recursive'
lfs: 'true'
- name: Create Build Environment - name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory # Some projects don't allow in-source building, so create a separate build directory

View File

@ -25,7 +25,6 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: 'recursive' submodules: 'recursive'
lfs: 'true'
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
- name: Build - name: Build
@ -41,7 +40,6 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: 'recursive' submodules: 'recursive'
lfs: 'true'
- name: Build - name: Build
run: | run: |
tools/unix-ci/before-install.sh tools/unix-ci/before-install.sh
@ -64,7 +62,10 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: 'recursive' submodules: 'recursive'
lfs: 'true' - uses: actions/setup-java@v2
with:
distribution: 'microsoft' # See 'Supported distributions' for available options
java-version: '11'
- name: Build - name: Build
run: | run: |
tools/unix-ci/before-install.sh tools/unix-ci/before-install.sh
@ -80,7 +81,6 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: 'recursive' submodules: 'recursive'
lfs: 'true'
- name: Build - name: Build
run: | run: |
tools/unix-ci/before-install.sh tools/unix-ci/before-install.sh
@ -96,7 +96,6 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: 'recursive' submodules: 'recursive'
lfs: 'true'
- name: Build - name: Build
run: | run: |
tools/unix-ci/before-install.sh tools/unix-ci/before-install.sh

View File

@ -34,12 +34,11 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
submodules: 'recursive' submodules: 'recursive'
lfs: 'true'
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
- uses: ilammy/msvc-dev-cmd@v1.9.0 - uses: ilammy/msvc-dev-cmd@v1.10.0
with: with:
arch: ${{ env.BUILD_ARCH }} arch: ${{ env.BUILD_ARCH }}