-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (76 loc) · 2.14 KB
/
release.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
name: build
on:
push:
tags:
- 'v*.*.*'
jobs:
Windows:
runs-on: windows-2019
env:
VS_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\'
MSBUILD_PATH: >-
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Enterprise\MSBuild\Current\Bin\
steps:
- uses: actions/checkout@v1
with:
fetch-dept: 1
- name: Configure CMake
shell: cmd
run: |
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
- name: Build Project
shell: cmd
run: |
cd build
"%MSBUILD_PATH%\MSBuild.exe" PostBaby.sln /p:Configuration=Release /m
- name: Build Package
shell: cmd
run : |
cd build && cpack -C Release
- name: Release
uses: softprops/action-gh-release@v1
with:
files: 'build/*.exe'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Install Dependencies
run: |
sudo apt update -y
sudo apt install -y build-essential libssl-dev cmake libx11-dev xorg-dev libglu1-mesa-dev
- name: Configure CMake
run: |
mkdir build && cd build && cmake -DCURL_CA_BUNDLE="./cacert.pem" -DCMAKE_BUILD_TYPE=Release ..
- name: Build Project
run: |
cd build && make -j$(nproc)
- name: Build Package
run: |
cd build && cpack -C Release
- name: Release
uses: softprops/action-gh-release@v1
with:
files: 'build/*.deb'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MacOS:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Install Dependencies
run: |
brew update
- name: Configure CMake
run: |
mkdir build && cd build
export PATH="/usr/local/opt/openssl/bin:$PATH"
CXX=clang++ CC=clang cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib -DCMAKE_BUILD_TYPE=Release ..
- name: Build Project
run: |
cd build
make -j$(nproc)