Skip to content

Commit da9fd58

Browse files
committed
Jark's update
1 parent ca0cdef commit da9fd58

File tree

4 files changed

+35
-9
lines changed

4 files changed

+35
-9
lines changed

.github/workflows/ci-template.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
################################################################################
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
################################################################################
18+
119
# .github/workflows/ci-template.yaml
220
name: CI Template
321

@@ -25,7 +43,7 @@ jobs:
2543
distribution: 'temurin'
2644
- name: Build
2745
run: |
28-
mvn -T 1C -B clean install -DskipTests ${{ steps.profile.outputs.maven_profile }}
46+
mvn -T 1C -B clean install -DskipTests
2947
- name: Test
3048
timeout-minutes: 60
3149
run: |

.github/workflows/ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ on:
2222
- main
2323
- release-**
2424
- ci-**
25+
paths-ignore:
26+
- 'website/**'
27+
- '**/*.md'
2528
pull_request:
2629
paths-ignore:
2730
- 'website/**'
2831
- '**/*.md'
32+
2933
concurrency:
3034
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }}
3135
cancel-in-progress: true
@@ -44,7 +48,7 @@ jobs:
4448
distribution: 'temurin'
4549
- name: Build
4650
run: |
47-
mvn -T 1C -B clean install -DskipTests -Pjava8-target
51+
mvn -T 1C -B clean install -DskipTests -Pjava8
4852
4953
build-on-jdk11:
5054
name: "Build Java 11"

.github/workflows/nightly.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
name: Nightly
1919
on:
2020
schedule:
21-
# Run at 2:00 daily.
22-
- cron: "0 2 * * *"
21+
# Run at 20:00 UTC daily which is the lowest traffic time for Fluss project.
22+
- cron: "0 20 * * *"
23+
2324
concurrency:
2425
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }}
2526
cancel-in-progress: true
@@ -30,7 +31,7 @@ jobs:
3031
uses: ./.github/workflows/ci-template.yaml
3132
with:
3233
java-version: "8"
33-
maven-parameters: "-Pjava8-target"
34+
maven-parameters: "-Pjava8"
3435
strategy:
3536
fail-fast: false
3637
matrix:

pom.xml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,10 @@
426426

427427
<profiles>
428428
<profile>
429-
<id>java8-target</id>
429+
<id>java8</id>
430+
<properties>
431+
<target.java.version>8</target.java.version>
432+
</properties>
430433
<build>
431434
<plugins>
432435
<plugin>
@@ -728,11 +731,11 @@
728731
<configuration>
729732
<rules>
730733
<requireMavenVersion>
731-
<!-- enforce at least mvn version 3.1.1 (see FLINK-12447) -->
732-
<version>[3.1.1,)</version>
734+
<!-- enforce at least mvn version 3.8.6 -->
735+
<version>[3.8.6,)</version>
733736
</requireMavenVersion>
734737
<requireJavaVersion>
735-
<version>[1.8,)</version>
738+
<version>${target.java.version}</version>
736739
</requireJavaVersion>
737740
</rules>
738741
</configuration>

0 commit comments

Comments
 (0)