Skip to content

Commit 869af7e

Browse files
authored
Change workflow ubuntu version to 20.04 one (#69)
* Change workflow ubuntu version to 20.04 one * Change macos version
1 parent ef3d1ea commit 869af7e

File tree

3 files changed

+37
-37
lines changed

3 files changed

+37
-37
lines changed

.github/workflows/codeql-scanning.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
analyze:
1313
name: Analyze
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-20.04
1515
permissions:
1616
actions: read
1717
contents: read
@@ -24,24 +24,24 @@ jobs:
2424
java: [ '17' ]
2525

2626
steps:
27-
- name: Checkout repository
28-
uses: actions/checkout@v3
29-
30-
- name: Set up JDK ${{ matrix.java }}
31-
uses: actions/setup-java@v2
32-
with:
33-
java-version: ${{ matrix.java }}
34-
distribution: 'adopt'
35-
36-
- name: Initialize CodeQL
37-
uses: github/codeql-action/init@v2
38-
with:
39-
languages: ${{ matrix.language }}
40-
41-
- name: Autobuild
42-
uses: github/codeql-action/autobuild@v2
43-
44-
- name: Perform CodeQL Analysis
45-
uses: github/codeql-action/analyze@v2
46-
with:
47-
category: "/language:${{matrix.language}}"
27+
- name: Checkout repository
28+
uses: actions/checkout@v3
29+
30+
- name: Set up JDK ${{ matrix.java }}
31+
uses: actions/setup-java@v2
32+
with:
33+
java-version: ${{ matrix.java }}
34+
distribution: 'adopt'
35+
36+
- name: Initialize CodeQL
37+
uses: github/codeql-action/init@v2
38+
with:
39+
languages: ${{ matrix.language }}
40+
41+
- name: Autobuild
42+
uses: github/codeql-action/autobuild@v2
43+
44+
- name: Perform CodeQL Analysis
45+
uses: github/codeql-action/analyze@v2
46+
with:
47+
category: "/language:${{matrix.language}}"

.github/workflows/pull_request_check.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
os: [ macos-latest, windows-latest, ubuntu-latest ]
16+
os: [ macos-12, windows-latest, ubuntu-20.04 ]
1717

1818
steps:
1919
- name: Checkout project
@@ -48,13 +48,13 @@ jobs:
4848
${{ runner.os }}-maven-
4949
5050
- name: Creating native image (Mac)
51-
if: matrix.os == 'macos-latest'
51+
if: matrix.os == 'macos-12'
5252
run: mvn install -P native-image -Dos.platform=mac -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
5353
env:
5454
TOKEN: ${{ secrets.GITHUB_TOKEN }}
5555

5656
- name: Creating native image (Linux)
57-
if: matrix.os == 'ubuntu-latest'
57+
if: matrix.os == 'ubuntu-20.04'
5858
run: mvn install -P native-image -Dos.platform=linux -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
5959
env:
6060
TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -70,13 +70,13 @@ jobs:
7070
TOKEN: ${{ secrets.GITHUB_TOKEN }}
7171

7272
- name: Performing integration test for Mac
73-
if: matrix.os == 'macos-latest'
73+
if: matrix.os == 'macos-12'
7474
run: mvn install -DskipTests -P dependencies-for-integration-tests,start-unix-native-image-for-integration-tests,run-postman-integration-tests -Dos.platform=mac
7575
env:
7676
TOKEN: ${{ secrets.GITHUB_TOKEN }}
7777

7878
- name: Performing integration test for Linux
79-
if: matrix.os == 'ubuntu-latest'
79+
if: matrix.os == 'ubuntu-20.04'
8080
run: mvn install -DskipTests -P dependencies-for-integration-tests,start-unix-native-image-for-integration-tests,run-postman-integration-tests -Dos.platform=linux
8181
env:
8282
TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/tagged_release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
os: [ macos-latest, windows-latest, ubuntu-latest ]
17+
os: [ macos-12, windows-latest, ubuntu-20.04 ]
1818

1919
steps:
2020
- name: Checkout project
@@ -54,22 +54,22 @@ jobs:
5454
${{ runner.os }}-maven-
5555
5656
- name: Set versions
57-
if: matrix.os == 'ubuntu-latest'
57+
if: matrix.os == 'ubuntu-20.04'
5858
run: |
5959
release_version=${{ github.event.inputs.release_version }}
6060
release_branch_name=${release_version%.*}.x
6161
echo "release_branch_name=$release_branch_name" >> $GITHUB_ENV
6262
6363
- name: Create Release branch
64-
if: matrix.os == 'ubuntu-latest'
64+
if: matrix.os == 'ubuntu-20.04'
6565
run: |
6666
git config --global user.email "[email protected]"
6767
git config --global user.name "github-actions"
6868
git checkout -b ${{ env.release_branch_name }}
6969
git push origin ${{ env.release_branch_name }}
7070
7171
- name: Set maven version
72-
if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest'
72+
if: matrix.os == 'macos-12' || matrix.os == 'ubuntu-20.04'
7373
run: mvn versions:set -DnewVersion=${{ github.event.inputs.release_version }}
7474
env:
7575
TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -81,13 +81,13 @@ jobs:
8181
TOKEN: ${{ secrets.GITHUB_TOKEN }}
8282

8383
- name: Creating native image (Mac)
84-
if: matrix.os == 'macos-latest'
84+
if: matrix.os == 'macos-12'
8585
run: mvn install -P native-image -DskipTests -Dos.platform=mac -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
8686
env:
8787
TOKEN: ${{ secrets.GITHUB_TOKEN }}
8888

8989
- name: Creating native image (Linux)
90-
if: matrix.os == 'ubuntu-latest'
90+
if: matrix.os == 'ubuntu-20.04'
9191
run: mvn install -P native-image -DskipTests -Dos.platform=linux -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
9292

9393
env:
@@ -116,7 +116,7 @@ jobs:
116116
shell: pwsh
117117

118118
- name: Create GitHub release (Mac)
119-
if: ${{ (matrix.os == 'macos-latest') && (!contains( github.ref, '-M' )) }}
119+
if: ${{ (matrix.os == 'macos-12') && (!contains( github.ref, '-M' )) }}
120120
uses: svenstaro/upload-release-action@latest
121121
with:
122122
file_glob: true
@@ -127,7 +127,7 @@ jobs:
127127
tag: v${{ github.event.inputs.release_version }}
128128

129129
- name: Create GitHub pre-release (Mac)
130-
if: ${{ (matrix.os == 'macos-latest') && (contains( github.ref, '-M' )) }}
130+
if: ${{ (matrix.os == 'macos-12') && (contains( github.ref, '-M' )) }}
131131
uses: svenstaro/upload-release-action@latest
132132
with:
133133
file_glob: true
@@ -138,7 +138,7 @@ jobs:
138138
tag: v${{ github.event.inputs.release_version }}
139139

140140
- name: Create GitHub release (Linux)
141-
if: ${{ (matrix.os == 'ubuntu-latest') && (!contains( github.ref, '-M' )) }}
141+
if: ${{ (matrix.os == 'ubuntu-20.04') && (!contains( github.ref, '-M' )) }}
142142
uses: svenstaro/upload-release-action@latest
143143
with:
144144
file_glob: true
@@ -149,7 +149,7 @@ jobs:
149149
tag: v${{ github.event.inputs.release_version }}
150150

151151
- name: Create GitHub pre-release (Linux)
152-
if: ${{ (matrix.os == 'ubuntu-latest') && (contains( github.ref, '-M' )) }}
152+
if: ${{ (matrix.os == 'ubuntu-20.04') && (contains( github.ref, '-M' )) }}
153153
uses: svenstaro/upload-release-action@latest
154154
with:
155155
file_glob: true

0 commit comments

Comments
 (0)