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 87
87
strategy :
88
88
matrix :
89
89
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]}}
90
92
steps :
91
93
- name : " Check out repository"
92
94
uses : actions/checkout@v4
@@ -101,9 +103,9 @@ jobs:
101
103
- name : " Native"
102
104
run : mvn -Pnative -DskipTests package -pl core -am
103
105
- 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 }}
105
107
- name : " Upload native-image"
106
108
env :
107
109
GH_TOKEN : ${{ github.token }}
108
110
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