forked from AdoptOpenJDK/openjdk-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 1.35 KB
/
continuous-integration-workflow.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
name: CI
# Triggers the workflow on push or pull request
# events but only for the master branch
on:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2016, windows-2019, ubuntu-20.04]
version: [8, 11, 15, 16]
vm: [hotspot, openj9]
package: [jdk, jre]
runtype: [test]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Build - Windows
if: matrix.os == 'windows-2019' || matrix.os == 'windows-2016'
run: |
# add msys2 to the path so the correct exes are used
$env:PATH="C:\msys64\usr\bin;${env:PATH}"
C:\msys64\usr\bin\bash -c "./build_latest.sh ${{ matrix.version }} ${{ matrix.vm }} ${{ matrix.package }} ${{ matrix.runtype }}"
env:
BUILD_VERSION: ${{ matrix.version }}
BUILD_OS: ${{ matrix.os }}
BUILD_VM: ${{ matrix.vm }}
BUILD_PACKAGE: ${{ matrix.package }}
- name: Build - Linux
if: matrix.os == 'ubuntu-20.04'
run: bash build_latest.sh ${{ matrix.version }} ${{ matrix.vm }} ${{ matrix.package }} ${{ matrix.runtype }}
env:
BUILD_VERSION: ${{ matrix.version }}
BUILD_OS: ${{ matrix.os }}
BUILD_VM: ${{ matrix.vm }}
BUILD_PACKAGE: ${{ matrix.package }}