Skip to content

Commit

Permalink
Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
badaix committed Aug 19, 2024
1 parent 755861b commit a04f68f
Showing 1 changed file with 28 additions and 18 deletions.
46 changes: 28 additions & 18 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ jobs:


win:
needs: release
runs-on: windows-2019
name: win

Expand Down Expand Up @@ -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

0 comments on commit a04f68f

Please sign in to comment.