Skip to content

Commit cb34ae6

Browse files
authored
Merge pull request #615 from apache/6.1.X_update_GHA_files
Update 6.1.1 from master GitHub Actions workflows
2 parents a5527b4 + 060037e commit cb34ae6

6 files changed

+34
-103
lines changed

.github/workflows/check_cpp_files.yml renamed to .github/workflows/auto-check_cpp_files.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: Serialization Compatibility Test
22

33
on:
44
push:
5-
branches:
6-
- master
5+
branches: [ master, main ]
76
workflow_dispatch:
87

98
jobs:
@@ -19,7 +18,7 @@ jobs:
1918
repository: apache/datasketches-cpp
2019
path: cpp
2120
- name: Setup Java
22-
uses: actions/setup-java@v2
21+
uses: actions/setup-java@v4
2322
with:
2423
java-version: '11'
2524
distribution: 'temurin'

.github/workflows/auto-jdk-matrix.yml

+14-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: DataSketches-Java Auto JDK Matrix Test & Install
33
on:
44
pull_request:
55
push:
6-
branches: [ master ]
6+
branches: [ master, main ]
77
workflow_dispatch:
88

99
env:
@@ -13,43 +13,47 @@ jobs:
1313
build:
1414
name: Build, Test, Install
1515
runs-on: ubuntu-latest
16+
1617
strategy:
1718
fail-fast: false
1819
matrix:
1920
jdk: [ 8,11 ]
21+
2022
env:
2123
JDK_VERSION: ${{ matrix.jdk }}
2224

2325
steps:
2426
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
25-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2628
with:
2729
persist-credentials: false
2830

31+
- name: Print Current workflow
32+
run: >
33+
cat .github/workflows/auto-jdk-matrix.yml
34+
2935
- name: Cache local Maven repository
30-
uses: actions/cache@v3
36+
uses: actions/cache@v4
3137
with:
3238
path: ~/.m2/repository
3339
key: build-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
3440
restore-keys: build-${{ runner.os }}-maven-
3541

3642
- name: Install Matrix JDK
37-
uses: actions/setup-java@v3
43+
uses: actions/setup-java@v4
3844
with:
3945
java-version: ${{ matrix.jdk }}
4046
distribution: 'temurin'
4147
java-package: jdk
4248
architecture: x64
43-
# Architecture options: x86, x64, armv7, aarch64, ppc64le
44-
# setup-java@v3 has a "with cache" option
4549

4650
- name: Echo Java Version
4751
run: >
4852
java -version
4953
5054
- name: Test
5155
run: >
52-
mvn clean test
56+
mvn clean test -B
5357
-Dmaven.javadoc.skip=true
5458
-Dgpg.skip=true
5559
@@ -59,7 +63,10 @@ jobs:
5963
-DskipTests=true
6064
-Dgpg.skip=true
6165
66+
# Architecture options: x86, x64, armv7, aarch64, ppc64le
67+
# setup-java@v3 has a "with cache" option
6268
# Lifecycle: validate, compile, test, package, verify, install, deploy
6369
# -B batch mode
6470
# -V show Version without stopping
71+
# -X debug mode
6572
# -q quiet, only show errors

.github/workflows/manual-os-matrix.yml renamed to .github/workflows/auto-os-matrix.yml

+15-9
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
name: DataSketches-Java Manual OS Matrix Test & Install
1+
name: DataSketches-Java 8 Auto OS Matrix Test & Install
22

33
on:
4+
pull_request:
5+
push:
6+
branches: [ master, main ]
47
workflow_dispatch:
58

69
env:
7-
MAVEN_OPTS: -Xmx4g -Xms1g
10+
MAVEN_OPTS: -Xmx1g -Xms1g
811

912
jobs:
1013
build:
1114
name: Build, Test, Install
12-
runs-on: ${{matrix.os}}
15+
1316
strategy:
1417
fail-fast: false
18+
1519
matrix:
16-
jdk: [ 8, 11 ]
20+
jdk: [ 8 ]
1721
os: [ windows-latest, ubuntu-latest, macos-latest ]
1822
include:
1923
- os: windows-latest
@@ -26,31 +30,31 @@ jobs:
2630
skip_javadoc: -Dmaven.javadoc.skip=true
2731
skip_gpg: -Dgpg.skip=true
2832

33+
runs-on: ${{matrix.os}}
34+
2935
env:
3036
JDK_VERSION: ${{ matrix.jdk }}
3137

3238
steps:
3339
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
34-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
3541
with:
3642
persist-credentials: false
3743

3844
- name: Cache local Maven repository
39-
uses: actions/cache@v3
45+
uses: actions/cache@v4
4046
with:
4147
path: ~/.m2/repository
4248
key: build-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
4349
restore-keys: build-${{ runner.os }}-maven-
4450

4551
- name: Install Matrix JDK
46-
uses: actions/setup-java@v3
52+
uses: actions/setup-java@v4
4753
with:
4854
java-version: ${{ matrix.jdk }}
4955
distribution: 'temurin'
5056
java-package: jdk
5157
architecture: x64
52-
# Architecture options: x86, x64, armv7, aarch64, ppc64le
53-
# setup-java@v3 has a "with cache" option
5458

5559
- name: Echo Java Version
5660
run: >
@@ -69,6 +73,8 @@ jobs:
6973
-D skipTests=true
7074
${{matrix.os.skip_gpg}}
7175
76+
# Architecture options: x86, x64, armv7, aarch64, ppc64le
77+
# setup-java@v4 has a "with cache" option
7278
# Lifecycle: validate, compile, test, package, verify, install, deploy
7379
# -B batch mode
7480
# -V show Version without stopping

.github/workflows/codeql-analysis.yml renamed to .github/workflows/manual-codeql-analysis.yml

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
name: "CodeQL"
22

33
on:
4-
push:
5-
branches: [ 'master' ]
6-
pull_request:
7-
# The branches below must be a subset of the branches above
8-
branches: [ 'master' ]
9-
schedule:
10-
- cron: '10 17 * * 4'
114
workflow_dispatch:
125

136
jobs:
@@ -28,11 +21,11 @@ jobs:
2821

2922
steps:
3023
- name: Checkout repository
31-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
3225

3326
# Initializes the CodeQL tools for scanning.
3427
- name: Initialize CodeQL
35-
uses: github/codeql-action/init@v3
28+
uses: github/codeql-action/init@v4
3629
with:
3730
languages: ${{ matrix.language }}
3831
# If you wish to specify custom queries, you can do so here or in a config file.

.github/workflows/manual-coverage.yml

-71
This file was deleted.

.github/workflows/javadoc.yml renamed to .github/workflows/manual-javadoc.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
name: JavaDoc
22

33
on:
4-
push:
5-
branches:
6-
- master
74
workflow_dispatch:
85

96
jobs:
107
javadoc:
118
runs-on: ubuntu-latest
129
steps:
1310
- name: Checkout
14-
uses: actions/checkout@v3
11+
uses: actions/checkout@v4
1512
- name: Generate JavaDoc
1613
run: mvn javadoc:javadoc
1714
- name: Deploy JavaDoc

0 commit comments

Comments
 (0)