forked from nxrighthere/ENet-CSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
82 lines (73 loc) · 2.14 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
image:
- Ubuntu
- Visual Studio 2022
- macOS
platform:
- ARM64
- x86
- x64
configuration: Release
environment:
TARGET_FRAMEWORK: net6.0
matrix:
exclude:
- image: Visual Studio 2022
platform: ARM64
- image: Ubuntu
platform: x86
- image: macOS
platform: x86
- image: macOS
platform: ARM64
for:
- matrix:
only:
- image: Visual Studio 2022
platform: x64
environment:
ARCH: x64
ARTIFACT_PATH: 'Release\enet.dll'
- matrix:
only:
- image: Visual Studio 2022
platform: x86
environment:
ARCH: Win32
ARTIFACT_PATH: 'Release\enet.dll'
- matrix:
only:
- image: macOS
environment:
ARTIFACT_PATH: 'enet.dylib'
after_build:
- mv libenet.dylib enet.dylib
- matrix:
only:
- image: Ubuntu
environment:
ARTIFACT_PATH: 'libenet.so'
before_build:
- cmd: cmake .\Source\Native -G "Visual Studio 17 2022" -A %ARCH% -DENET_SHARED=1 -DENET_LZ4=1
- sh: cmake ./Source/Native -DENET_SHARED=1 -DCMAKE_BUILD_TYPE=Release -DENET_LZ4=1
build_script:
- cmake --build . --config Release
before_test:
- cmd: dotnet build StrangeLoopGames.ENet.Tests/StrangeLoopGames.ENet.Tests.csproj -c Release -f %TARGET_FRAMEWORK%
- sh: dotnet build StrangeLoopGames.ENet.Tests/StrangeLoopGames.ENet.Tests.csproj -c Release -f $TARGET_FRAMEWORK
- cmd: copy %ARTIFACT_PATH% StrangeLoopGames.ENet.Tests\bin\%PLATFORM%\Release\%|TARGET_FRAMEWORK%\
- sh: cp $ARTIFACT_PATH StrangeLoopGames.ENet.Tests/bin/$PLATFORM/Release/$TARGET_FRAMEWORK/
test_script:
- cmd: dotnet test StrangeLoopGames.ENet.Tests/StrangeLoopGames.ENet.Tests.csproj -c Release --framework %TARGET_FRAMEWORK%
- sh: test "$PLATFORM" = "ARM64" || dotnet test StrangeLoopGames.ENet.Tests/StrangeLoopGames.ENet.Tests.csproj -c Release --framework $TARGET_FRAMEWORK
artifacts:
- path: '$(ARTIFACT_PATH)'
name: Releases
deploy:
provider: GitHub
auth_token:
secure: "LsT5P0KETM65BKOmRDmRX8Uqufkv1iu1G4aa1+rkeg50f9JYW7KnBscZpwmPqqte"
artifact: /.*\.(dll|so|dylib)/
draft: false
prerelease: false
on:
appveyor_repo_tag: true