diff --git a/.github/workflows/linux_mac_native.yml b/.github/workflows/linux_mac_native.yml index 019b3ed1..605b8044 100644 --- a/.github/workflows/linux_mac_native.yml +++ b/.github/workflows/linux_mac_native.yml @@ -58,14 +58,15 @@ jobs: cd neutrino-proxy-server mvn clean native:compile -P native --file pom.xml --no-transfer-progress chmod +x target/neutrino-proxy-server - cp target/neutrino-proxy-server ./../neutrino-proxy-server-${{ env.VERSION }} - cp target/classes/app-copy.yml ./../app.yml + mkdir ./../neutrino-proxy-server-${{ env.OS }}-${{ env.VERSION }}-native + cp target/neutrino-proxy-server ./../neutrino-proxy-server-${{ env.OS }}-${{ env.VERSION }}-native/neutrino-proxy-server + cp target/classes/app-copy.yml ./../neutrino-proxy-server-${{ env.OS }}-${{ env.VERSION }}-native/app.yml - name: Archive zip (neutrino-proxy-server) uses: thedoctor0/zip-release@master with: type: 'zip' - path: 'neutrino-proxy-server-${{ env.VERSION }}' - filename: neutrino-proxy-server-${{ env.OS }}-${{ env.VERSION }}.zip + path: 'neutrino-proxy-server-${{ env.OS }}-${{ env.VERSION }}-native' + filename: neutrino-proxy-server-${{ env.OS }}-${{ env.VERSION }}-native.zip - name: Build with Maven (neutrino-proxy-client) run: | cd neutrino-proxy-client @@ -79,6 +80,7 @@ jobs: with: type: 'zip' path: 'neutrino-proxy-client-${{ env.VERSION }}' + filename: neutrino-proxy-client-${{ env.OS }}-${{ env.VERSION }}.zip # 上传构建产物 - name: Upload artifact @@ -88,7 +90,7 @@ jobs: path: | neutrino-proxy-server/target/neutrino-proxy-server.jar neutrino-proxy-client/target/neutrino-proxy-client.jar - neutrino-proxy-server-${{ env.OS }}-${{ env.VERSION }}.zip + neutrino-proxy-server-${{ env.OS }}-${{ env.VERSION }}-native.zip neutrino-proxy-client-${{ env.OS }}-${{ env.VERSION }}.zip # 保存时间,默认 90 天 retention-days: 5