-
Notifications
You must be signed in to change notification settings - Fork 52
51 lines (48 loc) · 1.94 KB
/
CI-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
name: CI-windows
# yamllint disable-line rule:truthy
on:
push:
pull_request:
workflow_dispatch:
defaults:
run:
shell: cmd
jobs:
build:
strategy:
matrix:
# https://github.com/actions/virtual-environments/blob/master/images/win/Windows2022-Readme.md
os: [windows-2022]
fail-fast: true
runs-on: ${{ matrix.os }}
env:
# yamllint disable-line rule:line-length
DEVENV_PATH: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\devenv.com
MSBUILD_PATH: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe
SLN_PATH: CUETools.sln
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Apply patches
# yamllint disable-line rule:line-length
run: |
git apply --directory=ThirdParty/flac ThirdParty/submodule_flac_CUETools.patch --verbose --whitespace=nowarn
powershell -c "Expand-Archive ThirdParty/MAC_SDK/MAC_1037_SDK.zip -DestinationPath ThirdParty/MAC_SDK/"
git apply --directory=ThirdParty/MAC_SDK ThirdParty/ThirdParty_MAC_SDK_CUETools.patch --verbose
git apply --directory=ThirdParty/taglib-sharp ThirdParty/submodule_taglib-sharp_CUETools.patch --verbose
git apply --directory=ThirdParty/WavPack ThirdParty/submodule_WavPack_CUETools.patch --verbose
git apply --directory=ThirdParty/WindowsMediaLib ThirdParty/submodule_WindowsMediaLib_CUETools.patch --verbose
- name: MSBuild NuGet restore
run: |
"%MSBUILD_PATH%" "%SLN_PATH%" -t:restore -p:Configuration=Release
- name: Build Release|Any CPU
run: |
"%DEVENV_PATH%" "%SLN_PATH%" /Build "Release|Any CPU"
- name: Build Release|x64
run: |
"%DEVENV_PATH%" "%SLN_PATH%" /Build "Release|x64"
- name: Build Release|Win32
run: |
"%DEVENV_PATH%" "%SLN_PATH%" /Build "Release|Win32"