-
Notifications
You must be signed in to change notification settings - Fork 9
56 lines (54 loc) · 1.49 KB
/
ci.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
44
45
46
47
48
49
50
51
52
53
54
55
56
name: ci
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- jdk_version: java17
default_image: true
- jdk_version: java20
default_image: false
- jdk_version: java21
default_image: false
timeout-minutes: 45
steps:
- uses: actions/checkout@v2
- name: Build
run: |
set -xeuo pipefail
. ./settings.sh
./bin/build.sh
docker image ls
env:
JDK_VERSION: ${{ matrix.jdk_version }}
DEFAULT_IMAGE: ${{ matrix.default_image }}
- name: Test
run: |
set -xeuo pipefail
. ./settings.sh
./bin/test-base.sh
./bin/test-native.sh
if "${BUILD_POLYGLOT}"; then
./bin/test-polyglot.sh
fi
env:
JDK_VERSION: ${{ matrix.jdk_version }}
DEFAULT_IMAGE: ${{ matrix.default_image }}
- name: Deploy
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }}
run: |
set -veuo pipefail
if [ "${DOCKER_PASSWORD}" != "" ]; then
. ./settings.sh
./bin/deploy.sh
fi
env:
JDK_VERSION: ${{ matrix.jdk_version }}
DEFAULT_IMAGE: ${{ matrix.default_image }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}