diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index c3959be7..973f39ec 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -249,6 +249,7 @@ jobs: win: + needs: release runs-on: windows-2019 name: win @@ -279,21 +280,30 @@ jobs: run: cmake --build build --config Release --parallel 3 --verbose - name: installer run: | - copy ${env:VCPKG_INSTALLATION_ROOT}\installed\x64-windows\bin\FLAC.dll bin\Release\ - copy ${env:VCPKG_INSTALLATION_ROOT}\installed\x64-windows\bin\ogg.dll bin\Release\ - copy ${env:VCPKG_INSTALLATION_ROOT}\installed\x64-windows\bin\opus.dll bin\Release\ - copy ${env:VCPKG_INSTALLATION_ROOT}\installed\x64-windows\bin\vorbis.dll bin\Release\ - copy ${env:VCPKG_INSTALLATION_ROOT}\installed\x64-windows\bin\soxr.dll bin\Release\ - copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Redist\MSVC\v142\vc_redist.x64.exe" bin\Release\ - - name: Archive artifacts - uses: actions/upload-artifact@v4 - with: - name: snapcast_win64-${{ github.sha }} - path: | - bin\Release\snapclient.exe - bin\Release\FLAC.dll - bin\Release\ogg.dll - bin\Release\opus.dll - bin\Release\vorbis.dll - bin\Release\soxr.dll - bin\Release\vc_redist.x64.exe + mkdir $GITHUB_WORKSPACE\bundle + copy ${env:VCPKG_INSTALLATION_ROOT}\installed\x64-windows\bin\FLAC.dll $GITHUB_WORKSPACE\bundle\ + copy ${env:VCPKG_INSTALLATION_ROOT}\installed\x64-windows\bin\ogg.dll $GITHUB_WORKSPACE\bundle\ + copy ${env:VCPKG_INSTALLATION_ROOT}\installed\x64-windows\bin\opus.dll $GITHUB_WORKSPACE\bundle\ + copy ${env:VCPKG_INSTALLATION_ROOT}\installed\x64-windows\bin\vorbis.dll $GITHUB_WORKSPACE\bundle\ + copy ${env:VCPKG_INSTALLATION_ROOT}\installed\x64-windows\bin\soxr.dll $GITHUB_WORKSPACE\bundle\ + copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Redist\MSVC\v142\vc_redist.x64.exe" $GITHUB_WORKSPACE\bundle\ + copy bin\Release\snapclient.exe $GITHUB_WORKSPACE\bundle\ + - name: Release artifacts + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + Compress-Archive -Path $GITHUB_WORKSPACE\bundle\* -Destination $GITHUB_WORKSPACE\snapcast_win64.zip + git config --global --add safe.directory $GITHUB_WORKSPACE + gh release upload ${{needs.release.outputs.tag}} $GITHUB_WORKSPACE\snapcast_win64.zip + # - name: Archive artifacts + # uses: actions/upload-artifact@v4 + # with: + # name: snapcast_win64-${{ github.sha }} + # path: | + # bin\Release\snapclient.exe + # bin\Release\FLAC.dll + # bin\Release\ogg.dll + # bin\Release\opus.dll + # bin\Release\vorbis.dll + # bin\Release\soxr.dll + # bin\Release\vc_redist.x64.exe