From eb14d12a32f7b38fccbca5f21594fa0c0a7fd8ce Mon Sep 17 00:00:00 2001 From: baunsgaard Date: Tue, 26 Apr 2022 12:06:02 +0200 Subject: [PATCH 1/3] [MINOR] Github actions use Java OpenJDK adopt-hotspot --- .github/workflows/build.yml | 8 +++++--- .github/workflows/componentTests.yml | 2 +- .github/workflows/documentation.yml | 2 +- .github/workflows/license.yml | 2 +- .github/workflows/python.yml | 2 +- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 412e95243d3..c7887cab738 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,10 +59,12 @@ jobs: # '16' ] javadist: [ - # 'adopt', + 'temurin', + 'zulu', + 'adopt', 'adopt-openj9', - # 'zulu', - # 'temurin' + 'liberica', + 'microsoft' ] steps: - name: Checkout Repository diff --git a/.github/workflows/componentTests.yml b/.github/workflows/componentTests.yml index 79f28ce55b5..b10018f934a 100644 --- a/.github/workflows/componentTests.yml +++ b/.github/workflows/componentTests.yml @@ -49,7 +49,7 @@ jobs: matrix: os: [ubuntu-latest] java: ['11'] - javadist: ['adopt-openj9'] + javadist: ['adopt'] name: ${{ matrix.os }} steps: - name: Checkout Repository diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 70acffb7133..b442b044482 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -43,7 +43,7 @@ jobs: matrix: os: [ubuntu-latest] java: ['11'] - javadist: ['adopt-openj9'] + javadist: ['adopt'] name: Java steps: - name: Checkout Repository diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index e2cd2f0140c..ef515011e1a 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -50,7 +50,7 @@ jobs: matrix: os: [ubuntu-latest] java: ['11'] - javadist: ['adopt-openj9'] + javadist: ['adopt'] steps: - name: Checkout Repository diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 1c00f560202..1807b1681fa 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -51,7 +51,7 @@ jobs: python-version: [3.8] os: [ubuntu-latest] java: ['11'] - javadist: ['adopt-openj9'] + javadist: ['adopt'] name: ${{ matrix.os }} Java ${{ matrix.java }} ${{ matrix.javadist }} Python ${{ matrix.python-version }} steps: From 66ed08b3b41a563487f6c593766abf17c0673d3d Mon Sep 17 00:00:00 2001 From: baunsgaard Date: Tue, 26 Apr 2022 12:24:53 +0200 Subject: [PATCH 2/3] [MINOR] Reduce con jobs to run weekly --- .github/workflows/build-cron.yml | 67 ++++++++++++++++++++++++++++++++ .github/workflows/build.yml | 10 ++--- .github/workflows/docker-cd.yml | 2 +- 3 files changed, 73 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/build-cron.yml diff --git a/.github/workflows/build-cron.yml b/.github/workflows/build-cron.yml new file mode 100644 index 00000000000..806007c5603 --- /dev/null +++ b/.github/workflows/build-cron.yml @@ -0,0 +1,67 @@ +#------------------------------------------------------------- +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +#------------------------------------------------------------- + +name: Build Different Distributions + +on: + schedule: + - cron: '30 1 * * 6' # Saturday at 1:30 AM UTC + workflow_dispatch: + +jobs: + build-cron: + if: github.repository == 'apache/systemds' + name: ${{ matrix.os }} Java ${{ matrix.java }} ${{ matrix.javadist }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ + ubuntu-latest, + macOS-latest, + windows-latest + ] + java: [ + # '8', + '11', + # '16' + ] + javadist: [ + 'temurin', + 'zulu', + 'adopt', + 'adopt-openj9', + 'liberica', + 'microsoft' + ] + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Setup Java ${{ matrix.java }} ${{ matrix.javadist }} + uses: actions/setup-java@v3 + with: + distribution: ${{ matrix.javadist }} + java-version: ${{ matrix.java }} + cache: 'maven' + + - name: Build + run: mvn package diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c7887cab738..e2bb4269dad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,12 +59,12 @@ jobs: # '16' ] javadist: [ - 'temurin', - 'zulu', + # 'temurin', + # 'zulu', 'adopt', - 'adopt-openj9', - 'liberica', - 'microsoft' + # 'adopt-openj9', + # 'liberica', + # 'microsoft' ] steps: - name: Checkout Repository diff --git a/.github/workflows/docker-cd.yml b/.github/workflows/docker-cd.yml index cac3ccb6f11..e75a571a19a 100644 --- a/.github/workflows/docker-cd.yml +++ b/.github/workflows/docker-cd.yml @@ -23,7 +23,7 @@ name: Docker Image CI and CD on: schedule: - - cron: '30 1 * * *' # everyday at 1:30 PM UTC + - cron: '30 1 * * 6' # every saturday at 1:30 AM UTC workflow_dispatch: jobs: From 3eebecf8e898b054d3a69125288586a5f93045a7 Mon Sep 17 00:00:00 2001 From: baunsgaard Date: Tue, 26 Apr 2022 12:33:40 +0200 Subject: [PATCH 3/3] [MINOR] Wednesday cron jobs --- .github/workflows/build-cron.yml | 2 +- .github/workflows/docker-cd.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-cron.yml b/.github/workflows/build-cron.yml index 806007c5603..dfc5b929c98 100644 --- a/.github/workflows/build-cron.yml +++ b/.github/workflows/build-cron.yml @@ -23,7 +23,7 @@ name: Build Different Distributions on: schedule: - - cron: '30 1 * * 6' # Saturday at 1:30 AM UTC + - cron: '30 1 * * 3' # Wednesday at 1:30 AM UTC workflow_dispatch: jobs: diff --git a/.github/workflows/docker-cd.yml b/.github/workflows/docker-cd.yml index e75a571a19a..0231d3c3394 100644 --- a/.github/workflows/docker-cd.yml +++ b/.github/workflows/docker-cd.yml @@ -23,7 +23,7 @@ name: Docker Image CI and CD on: schedule: - - cron: '30 1 * * 6' # every saturday at 1:30 AM UTC + - cron: '30 1 * * 3' # Wednesday at 1:30 AM UTC workflow_dispatch: jobs: