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