-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (71 loc) · 1.75 KB
/
.travis.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
language: cpp
jobs:
include:
- arch: amd64
os: osx
osx_image: xcode12
addons:
homebrew:
packages:
- openssl
- cpprestsdk
- protobuf
- zeromq
env:
- TARGET=macos-amd64
- OPENSSL_ROOT_DIR=$(brew --prefix openssl)
- OPENSSL_LIB_DIR=$(brew --prefix openssl)/lib
- OPENSSL_INCLUDE_DIR=$(brew --prefix openssl)/include
- cpprestsdk_DIR=$(brew --prefix cpprestsdk)
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file: dragon-$TRAVIS_TAG-$TARGET.tar.gz
skip_cleanup: true
on:
repo: pashinov/dragon
tags: true
- arch: amd64
os: linux
dist: focal
addons:
apt:
packages:
- libcpprest-dev
- libprotobuf-dev
- protobuf-compiler
- libzmq3-dev
env:
- TARGET=linux-amd64
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file: dragon-$TRAVIS_TAG-$TARGET.tar.gz
skip_cleanup: true
on:
repo: pashinov/dragon
tags: true
- arch: arm64
os: linux
dist: focal
addons:
apt:
packages:
- libcpprest-dev
- libprotobuf-dev
- protobuf-compiler
- libzmq3-dev
env:
- TARGET=linux-arm64
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file: dragon-$TRAVIS_TAG-$TARGET.tar.gz
skip_cleanup: true
on:
repo: pashinov/dragon
tags: true
script:
- cmake -H. -Bbuild
- cmake --build build
- if [ -n "$TRAVIS_TAG" ]; then tar -C build -czf dragon-$TRAVIS_TAG-$TARGET.tar.gz dragon; fi