-
Notifications
You must be signed in to change notification settings - Fork 18
/
appveyor.yml
85 lines (85 loc) · 4.64 KB
/
appveyor.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
image:
- Visual Studio 2022
- Ubuntu2004
version: 5.1.0.{build}
environment:
GITHUB_ACTOR: kumaryu
GITHUB_CR_TOKEN:
secure: 4ZKkbwwriImTNatsCmqVWNFOsObxDOfbenDzznEtCtfwqqOctigBAOvgbwM9Ll9c
configuration: Release
for:
- matrix:
only:
- image: Visual Studio 2022
install:
- cmd: |-
set PATH=C:\Ruby27-x64\bin;%PATH%
gem install -N jekyll
before_build:
- cmd: |-
ruby bumpversion.rb %APPVEYOR_BUILD_VERSION%
cd doc\help
jekyll build
cd ..\..
build_script:
- cmd: |-
dotnet restore -p:Configuration=%CONFIGURATION% -p:Platform=x86 PeerCastStation/PeerCastStation.sln
dotnet restore -p:Configuration=%CONFIGURATION% -p:Platform=x64 PeerCastStation/PeerCastStation.sln
msbuild -p:Configuration=%CONFIGURATION% -p:Platform=x86 PeerCastStation/PeerCastStation.sln
msbuild -p:Configuration=%CONFIGURATION% -p:Platform=x64 PeerCastStation/PeerCastStation.sln
dotnet publish -c %CONFIGURATION% --self-contained -r win-x64 -o win-x64 PeerCastStation/PeerCastStation/PeerCastStation.csproj
dotnet publish -c %CONFIGURATION% --self-contained -r win-x64 -o win-x64 PeerCastStation/PecaStationd/PecaStationd.csproj
dotnet publish -c %CONFIGURATION% --self-contained -r win-x86 -o win-x86 PeerCastStation/PeerCastStation/PeerCastStation.csproj
dotnet publish -c %CONFIGURATION% --self-contained -r win-x86 -o win-x86 PeerCastStation/PecaStationd/PecaStationd.csproj
test_script:
- dotnet test "PeerCastStation/PeerCastStation.Test/PeerCastStation.Test.fsproj"
-v n -c %CONFIGURATION%
artifacts:
- path: win-x64
name: PeerCastStation-$(APPVEYOR_BUILD_VERSION)-win-x64
- path: win-x86
name: PeerCastStation-$(APPVEYOR_BUILD_VERSION)-win-x86
- path: PeerCastStation/PecaStationdInstaller/bin/$(CONFIGURATION)/en-US/PecaStationd-$(APPVEYOR_BUILD_VERSION)-x86.msi
name: PecaStationd-$(APPVEYOR_BUILD_VERSION)-x86-en-US.msi
- path: PeerCastStation/PecaStationdInstaller/bin/$(CONFIGURATION)/ja-JP/PecaStationd-$(APPVEYOR_BUILD_VERSION)-x86.msi
name: PecaStationd-$(APPVEYOR_BUILD_VERSION)-x86-ja-JP.msi
- path: PeerCastStation/PecaStationdInstaller/bin/$(CONFIGURATION)/en-US/PecaStationd-$(APPVEYOR_BUILD_VERSION)-x64.msi
name: PecaStationd-$(APPVEYOR_BUILD_VERSION)-x64-en-US.msi
- path: PeerCastStation/PecaStationdInstaller/bin/$(CONFIGURATION)/ja-JP/PecaStationd-$(APPVEYOR_BUILD_VERSION)-x64.msi
name: PecaStationd-$(APPVEYOR_BUILD_VERSION)-x64-ja-JP.msi
- path: PeerCastStation/PeerCastStationInstaller/bin/$(CONFIGURATION)/en-US/PeerCastStation-$(APPVEYOR_BUILD_VERSION)-x86.msi
name: PeerCastStation-$(APPVEYOR_BUILD_VERSION)-x86-en-US.msi
- path: PeerCastStation/PeerCastStationInstaller/bin/$(CONFIGURATION)/ja-JP/PeerCastStation-$(APPVEYOR_BUILD_VERSION)-x86.msi
name: PeerCastStation-$(APPVEYOR_BUILD_VERSION)-x86-ja-JP.msi
- path: PeerCastStation/PeerCastStationInstaller/bin/$(CONFIGURATION)/en-US/PeerCastStation-$(APPVEYOR_BUILD_VERSION)-x64.msi
name: PeerCastStation-$(APPVEYOR_BUILD_VERSION)-x64-en-US.msi
- path: PeerCastStation/PeerCastStationInstaller/bin/$(CONFIGURATION)/ja-JP/PeerCastStation-$(APPVEYOR_BUILD_VERSION)-x64.msi
name: PeerCastStation-$(APPVEYOR_BUILD_VERSION)-x64-ja-JP.msi
- matrix:
only:
- image: Ubuntu2004
services:
- docker
install:
- rvm use 2.7
before_build:
- ruby bumpversion.rb $APPVEYOR_BUILD_VERSION
- docker run --rm --volume=`pwd`:/srv/jekyll -t jekyll/jekyll jekyll build --config
doc/help/_config.yml -s doc/help -d PeerCastStation/PeerCastStation.UI.HTTP/help
build_script:
- dotnet restore -p:Configuration=$CONFIGURATION -p:"Platform=Any CPU" PeerCastStation/PeerCastStation/PeerCastStation.csproj
- dotnet publish -c $CONFIGURATION -p:"Platform=Any CPU" --no-self-contained -r
any -o any PeerCastStation/PeerCastStation/PeerCastStation.csproj
- docker build --rm -t ghcr.io/$GITHUB_ACTOR/peercaststation:$APPVEYOR_BUILD_VERSION
-f PeerCastStation/PeerCastStation/Dockerfile PeerCastStation/
- docker build --rm -t ghcr.io/$GITHUB_ACTOR/peercaststation:$APPVEYOR_BUILD_VERSION-test
-f PeerCastStation/PeerCastStation/Dockerfile PeerCastStation/ --target test
- docker save -o peercaststation-$APPVEYOR_BUILD_VERSION.tar ghcr.io/$GITHUB_ACTOR/peercaststation:$APPVEYOR_BUILD_VERSION
deploy_script:
- echo $GITHUB_CR_TOKEN | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
- docker push ghcr.io/$GITHUB_ACTOR/peercaststation:$APPVEYOR_BUILD_VERSION
artifacts:
- path: peercaststation-$(APPVEYOR_BUILD_VERSION).tar
- path: any
name: PeerCastStation-$(APPVEYOR_BUILD_VERSION)-any