-
Notifications
You must be signed in to change notification settings - Fork 10
96 lines (92 loc) · 2.49 KB
/
cpp_builder.yml
File metadata and controls
96 lines (92 loc) · 2.49 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: CPP Builder
on:
push:
branches:
- dev
jobs:
build-win:
name: Windows Build
runs-on: windows-latest
steps:
- name: Download Repository
uses: actions/checkout@v2
with:
submodules: 'true'
- name: Setup Environment
uses: microsoft/setup-msbuild@v1.0.2
- name: Generate Solution
run: ./scripts/generate_project_win.bat -s
- name: Build
run: 'MSBuild.exe ./build/PhotonBox.sln /p:Configuration=Release'
- name: Test
run: ./scripts/code_checker_win.bat -s
- name: Package
run: ./scripts/package_win.bat -s
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: 'PhotonBox-${{ runner.os }}'
path: |
./lib
./include
./pb_res
build-linux:
name: Linux Build
runs-on: ubuntu-latest
steps:
- name: Download Repository
uses: actions/checkout@v2
with:
submodules: 'true'
- name: Setup Environment
run: |
sudo chmod +x ./scripts/*.sh
sudo apt-get update
sudo apt-get install mesa-common-dev libglu1-mesa-dev xorg-dev
- name: Generate Solution
run: ./scripts/generate_project_linux.sh
- name: Build
run: |
cd ./build
sudo make config=Release
- name: Test
run: ./scripts/code_checker_linux.sh -s
- name: Package
run: ./scripts/package_linux.sh
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: 'PhotonBox-${{ runner.os }}'
path: |
./lib
./include
./pb_res
build-mac:
name: Mac Build
runs-on: macos-latest
steps:
- name: Download Repository
uses: actions/checkout@v2
with:
submodules: 'true'
- name: Setup Environment
run: |
sudo chmod +x ./scripts/*.sh
- name: Generate Solution
run: ./scripts/generate_project_mac.sh
- name: Build
run: |
cd ./build
xcodebuild -project PhotonBox.xcodeproj -configuration Release
- name: Test
run: ./scripts/code_checker_mac.sh -s
- name: Package
run: ./scripts/package_mac.sh
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: 'PhotonBox-${{ runner.os }}'
path: |
./lib
./include
./pb_res