-
Notifications
You must be signed in to change notification settings - Fork 17
/
azure-pipelines.yml
66 lines (64 loc) · 2.14 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
# Snestracker Azure-Pipelines Build-test
# C/C++ with GCC
# Build your C/C++ project with GCC using make.
# Add steps that publish test results, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/c-cpp/gcc
trigger:
- master
jobs:
- job: macOS
pool:
vmImage: 'macOS-latest'
steps:
- script: |
brew update
brew list sdl2 &>/dev/null || brew install sdl2
brew list boost &>/dev/null || brew install boost
brew list cmake &>/dev/null || brew install cmake
displayName: 'deps'
- script: ./build-submodules.sh
displayName: 'submodules'
- script: make
displayName: 'make'
- job: Linux
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
sudo apt-get update --fix-missing && sudo apt-get install -y libasound2-dev libsdl2-dev \
libboost-filesystem-dev libgtk2.0-dev cmake
displayName: 'deps'
- script: ./build-submodules.sh
displayName: 'submodules'
- script: make
displayName: 'make'
- job: CrossWindows
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
sudo apt-get install -y cmake mingw-w64 pkg-config
displayName: 'deps'
- script: |
wget http://libsdl.org/release/SDL2-2.0.12.tar.gz
tar -zxf SDL2-2.0.12.tar.gz
cd SDL2-2.0.12
./configure --prefix=/usr/x86_64-w64-mingw32 --host=x86_64-w64-mingw32 \
--enable-sdl2-config=no --with-sysroot=/usr/x86_64-w64-mingw32/include
make
sudo make install
displayName: 'sdl2'
- script: |
wget https://sourceforge.net/projects/boost/files/boost/1.72.0/boost_1_72_0.tar.bz2
tar -jxf boost_1_72_0.tar.bz2
cd boost_1_72_0/
echo "using gcc : : x86_64-w64-mingw32-g++ ;" > user-config.jam
./bootstrap.sh
sudo ./b2 --prefix=/usr/x86_64-w64-mingw32 --with-system --with-filesystem \
--user-config=user-config.jam toolset=gcc target-os=windows \
variant=debug link=shared threading=multi address-model=64 install
displayName: 'boost'
- script: ./build-submodules.sh
displayName: 'submodules'
- script: prefix=/usr/x86_64-w64-mingw32 CROSS_COMPILE=x86_64-w64-mingw32- make
displayName: 'make'