-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathazure-pipelines.yml
80 lines (78 loc) · 2.79 KB
/
azure-pipelines.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
trigger:
- master
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
sudo apt-get update
sudo apt-get install libsdl2-dev
git submodule update --init
cmake --version
mkdir build
cd build
cmake -DBUILD_NUMBER=$(Build.BuildId) -DCI_PROVIDER="AzureDevOps" -G"Unix Makefiles" ..
make -j4
cpack -G DEB
ctest
- publish: $(System.DefaultWorkingDirectory)/build/relive-0.1-Linux.deb
artifact: RELIVE-Linux.deb
- job: macOS
pool:
vmImage: 'macOS-latest'
steps:
- script: |
brew install sdl2
git submodule update --init
cmake --version
mkdir build
cd build
cmake -DBUILD_NUMBER=$(Build.BuildId) -DCI_PROVIDER="AzureDevOps" -G"Unix Makefiles" ..
make -j4
cpack -G DragNDrop
ctest
- publish: $(System.DefaultWorkingDirectory)/build/relive-0.1-Darwin.dmg
artifact: RELIVE-MacOSX.dmg
- job: Windows32
pool:
vmImage: 'windows-2019'
steps:
- script: |
set AE_PATH=C:\\GOG Games\\Abes Exoddus
set AO_PATH=C:\\GOG Games\\Abes Oddysee
mkdir "C:\\GOG Games\\Abes Exoddus"
mkdir "C:\\GOG Games\\Abes Oddysee"
git submodule update --init
mkdir C:\temp
powershell Invoke-WebRequest 'https://github.com/AliveTeam/SDL2_win32_dev_mirror/files/8710940/SDL2-devel-2.0.22-VC.zip' -OutFile C:\temp\SDL2-devel-2.0.22-VC.zip
7z x C:\Temp\SDL2-devel-2.0.22-VC.zip -oC:\Temp
mkdir build
cd build
cmake .. -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DBUILD_NUMBER=$(Build.BuildId) -DCI_PROVIDER="AzureDevOps" -DSDL2_DIR=C:\Temp\SDL2-2.0.22 -G "Visual Studio 16 2019" -A Win32
cmake --build .
cpack.exe -G ZIP -C Debug
ctest
- publish: $(System.DefaultWorkingDirectory)/build/relive-0.1-win32.zip
artifact: RELIVE-Windows32.zip
- job: Windows64
pool:
vmImage: 'windows-2019'
steps:
- script: |
set AE_PATH=C:\\GOG Games\\Abes Exoddus
set AO_PATH=C:\\GOG Games\\Abes Oddysee
mkdir "C:\\GOG Games\\Abes Exoddus"
mkdir "C:\\GOG Games\\Abes Oddysee"
git submodule update --init
mkdir C:\temp
powershell Invoke-WebRequest 'https://github.com/AliveTeam/SDL2_win32_dev_mirror/files/8710940/SDL2-devel-2.0.22-VC.zip' -OutFile C:\temp\SDL2-devel-2.0.22-VC.zip
7z x C:\Temp\SDL2-devel-2.0.22-VC.zip -oC:\Temp
mkdir build
cd build
cmake .. -DBUILD_NUMBER=$(Build.BuildId) -DCI_PROVIDER="AzureDevOps" -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DSDL2_DIR=C:\Temp\SDL2-2.0.22 -G "Visual Studio 16 2019" -A x64
cmake --build .
cpack.exe -G ZIP -C Debug
ctest
- publish: $(System.DefaultWorkingDirectory)/build/relive-0.1-win64.zip
artifact: RELIVE-Windows64.zip