mirror of
https://github.com/badaix/snapcast.git
synced 2025-04-29 18:27:12 +02:00
Reformat yml files
This commit is contained in:
parent
348494927b
commit
a88ff9cfad
2 changed files with 227 additions and 180 deletions
51
.github/workflows/package.yml
vendored
51
.github/workflows/package.yml
vendored
|
@ -133,7 +133,6 @@ jobs:
|
|||
name: snapcast_${{ matrix.arch }}-debian-${{matrix.debian}}-${{ github.sha }}
|
||||
path: ${{env.PARENT_DIR}}/snap*_${{ matrix.arch }}.deb
|
||||
|
||||
|
||||
win:
|
||||
needs: release
|
||||
runs-on: windows-2019
|
||||
|
@ -232,7 +231,6 @@ jobs:
|
|||
# - name: build
|
||||
# run: cmake --build build --parallel 3
|
||||
|
||||
|
||||
# rpm:
|
||||
# if: ${{ false }} # disable for now
|
||||
# strategy:
|
||||
|
@ -279,3 +277,52 @@ jobs:
|
|||
# name: snapcast_${{ matrix.arch }}-fedora-${{matrix.image}}-${{ github.sha }}
|
||||
# path: ~/rpmbuild/RPMS/${{ matrix.arch }}/snap*.rpm
|
||||
|
||||
win:
|
||||
runs-on: windows-2019
|
||||
name: win
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Checkout Snapcast
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: badaix/snapcast
|
||||
path: src/snapcast
|
||||
ref: ${{ env.VERSION }}
|
||||
- name: Cache dependencies
|
||||
id: cache-dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
#path: ${VCPKG_INSTALLATION_ROOT}\installed
|
||||
path: c:\vcpkg\installed
|
||||
key: ${{ runner.os }}-dependencies
|
||||
- name: Get dependenciesenv
|
||||
if: steps.cache-dependencies.outputs.cache-hit != 'true'
|
||||
run: vcpkg.exe install libflac libvorbis soxr opus boost-asio --triplet x64-windows
|
||||
- name: configure
|
||||
run: |
|
||||
echo vcpkg installation root: $env:VCPKG_INSTALLATION_ROOT
|
||||
cmake -S . -B build -G "Visual Studio 16 2019" -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET="x64-windows" -DCMAKE_BUILD_TYPE="Release" -DREVISION="${{ github.sha }}" -DWERROR=ON -DBUILD_TESTS=ON
|
||||
- name: build
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue