-
Notifications
You must be signed in to change notification settings - Fork 39
/
azure-pipelines.yml
37 lines (37 loc) · 1.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
stages:
- stage: Build
jobs:
- job: Linux
pool:
vmImage: ubuntu-latest
container:
image: trojangfw/centos-build:latest
steps:
- script: |
set -euo pipefail
cmake -DBoost_USE_STATIC_LIBS=ON .
make
strip -s overplus
- publish: $(System.DefaultWorkingDirectory)/overplus
artifact: LinuxBinary
- stage: Package
jobs:
- job: Linux
pool:
vmImage: ubuntu-latest
steps:
- download: current
artifact: LinuxBinary
- script: |
set -euo pipefail
BINARY="$PIPELINE_WORKSPACE/LinuxBinary/overplus"
chmod +x "$BINARY"
mkdir overplus
cp "$BINARY" overplus/overplus
cp -r ConfigTemplate overplus
tar cf overplus-linux-amd64.tar overplus
xz overplus-linux-amd64.tar
env:
PIPELINE_WORKSPACE: $(Pipeline.Workspace)
- publish: $(System.DefaultWorkingDirectory)/overplus-linux-amd64.tar.xz
artifact: LinuxRelease