File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 8787 strategy :
8888 matrix :
8989 os : [ubuntu-latest, macos-latest, windows-latest]
90+ env :
91+ SUFFIX : ${{fromJson('{"ubuntu-latest":"linux-x86_64", "macos-latest":"darwin-arm64", "windows-latest":"windows_x86-64"}')[matrix.os]}}
9092 steps :
9193 - name : " Check out repository"
9294 uses : actions/checkout@v4
@@ -101,9 +103,9 @@ jobs:
101103 - name : " Native"
102104 run : mvn -Pnative -DskipTests package -pl core -am
103105 - name : " Move outputs"
104- run : cp core/target/google-java-format google-java-format-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'darwin' }}
106+ run : cp core/target/google-java-format google-java-format-${{ env.SUFFIX }}
105107 - name : " Upload native-image"
106108 env :
107109 GH_TOKEN : ${{ github.token }}
108110 GH_REPO : ${{ github.repository }}
109- run : gh release upload "v${{ github.event.inputs.version }}" "google-java-format-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'darwin' }}"
111+ run : gh release upload "v${{ github.event.inputs.version }}" "google-java-format-${{ env.SUFFIX }}"
You can’t perform that action at this time.
0 commit comments