-
-
Notifications
You must be signed in to change notification settings - Fork 14
build: Package release artifacts as ZIP archives for all platforms #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -732,24 +732,36 @@ jobs: | |||||
|
|
||||||
| # ==================== Upload Artifacts ==================== | ||||||
|
|
||||||
| - name: Zip Windows x64 artifacts | ||||||
| if: matrix.target == 'windows' | ||||||
| shell: pwsh | ||||||
| run: | | ||||||
| $releaseDir = "opennow-streamer/target/release" | ||||||
| $zipName = "OpenNOW-windows-x64.zip" | ||||||
| Compress-Archive -Path "$releaseDir\opennow-streamer.exe", "$releaseDir\*.dll" -DestinationPath "$releaseDir\$zipName" | ||||||
|
|
||||||
| - name: Upload Windows x64 artifacts | ||||||
| if: matrix.target == 'windows' | ||||||
| uses: actions/upload-artifact@v4 | ||||||
| with: | ||||||
| name: opennow-streamer-${{ needs.get-version.outputs.version }}-windows-x64 | ||||||
| path: | | ||||||
| opennow-streamer/target/release/opennow-streamer.exe | ||||||
| opennow-streamer/target/release/*.dll | ||||||
| path: opennow-streamer/target/release/OpenNOW-windows-x64.zip | ||||||
| retention-days: 30 | ||||||
|
|
||||||
| - name: Zip Windows ARM64 artifacts | ||||||
| if: matrix.target == 'windows-arm64' | ||||||
| shell: pwsh | ||||||
| run: | | ||||||
| $releaseDir = "opennow-streamer/target/aarch64-pc-windows-msvc/release" | ||||||
| $zipName = "OpenNOW-windows-arm64.zip" | ||||||
| Compress-Archive -Path "$releaseDir\opennow-streamer.exe", "$releaseDir\*.dll" -DestinationPath "$releaseDir\$zipName" | ||||||
|
||||||
|
|
||||||
| - name: Upload Windows ARM64 artifacts | ||||||
| if: matrix.target == 'windows-arm64' | ||||||
| uses: actions/upload-artifact@v4 | ||||||
| with: | ||||||
| name: opennow-streamer-${{ needs.get-version.outputs.version }}-windows-arm64 | ||||||
| path: | | ||||||
| opennow-streamer/target/aarch64-pc-windows-msvc/release/opennow-streamer.exe | ||||||
| opennow-streamer/target/aarch64-pc-windows-msvc/release/*.dll | ||||||
| path: opennow-streamer/target/aarch64-pc-windows-msvc/release/OpenNOW-windows-arm64.zip | ||||||
| retention-days: 30 | ||||||
|
|
||||||
| - name: Upload macOS artifacts | ||||||
|
|
@@ -760,20 +772,34 @@ jobs: | |||||
| path: opennow-streamer/target/release/OpenNOW-macos-arm64.zip | ||||||
| retention-days: 30 | ||||||
|
|
||||||
| - name: Zip Linux x64 artifacts | ||||||
| if: matrix.target == 'linux' | ||||||
| shell: bash | ||||||
| run: | | ||||||
| cd opennow-streamer/target/release | ||||||
| zip -r "OpenNOW-linux-x64.zip" opennow-streamer | ||||||
|
|
||||||
| - name: Upload Linux x64 artifacts | ||||||
| if: matrix.target == 'linux' | ||||||
| uses: actions/upload-artifact@v4 | ||||||
| with: | ||||||
| name: opennow-streamer-${{ needs.get-version.outputs.version }}-linux-x64 | ||||||
| path: opennow-streamer/target/release/opennow-streamer | ||||||
| path: opennow-streamer/target/release/OpenNOW-linux-x64.zip | ||||||
| retention-days: 30 | ||||||
|
|
||||||
| - name: Zip Linux ARM64 artifacts | ||||||
| if: matrix.target == 'linux-arm64' | ||||||
| shell: bash | ||||||
| run: | | ||||||
| cd opennow-streamer/target/aarch64-unknown-linux-gnu/release | ||||||
| zip -r "OpenNOW-linux-arm64.zip" bundle/ | ||||||
|
||||||
| zip -r "OpenNOW-linux-arm64.zip" bundle/ | |
| zip -r "OpenNOW-linux-arm64.zip" bundle/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Compress-Archive command with wildcard patterns may not work as expected in PowerShell. When using Compress-Archive with comma-separated paths where one includes a wildcard, the wildcard may not expand properly. Consider using Get-ChildItem to explicitly resolve the DLL files:
Or zip all files in the directory and filter as needed. This ensures all DLLs are reliably included in the archive.