-
-
Notifications
You must be signed in to change notification settings - Fork 14
136 lines (113 loc) · 4.61 KB
/
bob.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
name: Build with bob
on: [push, pull_request]
env:
VERSION_FILENAME: 'info.json'
BUILD_SERVER: 'https://build-stage.defold.com'
CHANNEL: 'alpha'
PLUGIN_SO: './defold-spine/plugins/lib/x86_64-linux/libSpineExt.so'
jobs:
build_with_bob:
strategy:
matrix:
platform: [armv7-android, x86_64-linux, js-web]
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
java-version: '17.0.5+8'
architecture: x64
distribution: 'temurin'
- name: Install dependencies
run: sudo apt-get install -y libopenal-dev libgl1-mesa-dev libglw1-mesa-dev freeglut3-dev
- name: Get Defold version
run: |
TMPVAR=`curl -s http://d.defold.com/${{env.CHANNEL}}/${{env.VERSION_FILENAME}} | jq -r '.sha1'`
echo "DEFOLD_VERSION=${TMPVAR}" >> $GITHUB_ENV
echo "Found version ${TMPVAR}"
- name: Download bob.jar
run: |
wget -q http://d.defold.com/archive/${{env.CHANNEL}}/${{env.DEFOLD_VERSION}}/bob/bob.jar
java -jar bob.jar --version
- name: Check shared dependencies
run: |
ldd ${PLUGIN_SO}
if ldd ${PLUGIN_SO} | grep -e 'not found' ; then (exit 1); fi
- name: Resolve libraries
run: java -jar bob.jar resolve --email [email protected] --auth 123456
- name: Build Tools
run: SERVER=${{env.BUILD_SERVER}} DEFOLDSDK=${{env.DEFOLD_VERSION}} BOB=./bob.jar ./utils/build_plugins.sh x86_64-linux
- name: Build
run: java -jar bob.jar --platform=${{ matrix.platform }} build --archive --build-server=${{env.BUILD_SERVER}} --defoldsdk=${{env.DEFOLD_VERSION}}
- name: Bundle
run: java -jar bob.jar --platform=${{ matrix.platform }} bundle
build_with_bob_windows:
strategy:
matrix:
platform: [x86_64-win32, x86-win32]
runs-on: windows-latest
name: Build
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
java-version: '17.0.5+8'
architecture: x64
distribution: 'temurin'
- name: Get Defold version
run: |
TMPVAR=`curl -s http://d.defold.com/${{env.CHANNEL}}/${{env.VERSION_FILENAME}} | jq -r '.sha1'`
echo "DEFOLD_VERSION=${TMPVAR}" >> $GITHUB_ENV
echo "Found version ${TMPVAR}"
shell: bash
- name: Download bob.jar
run: |
curl -s -o bob.jar http://d.defold.com/archive/${{env.CHANNEL}}/${{env.DEFOLD_VERSION}}/bob/bob.jar
java -jar bob.jar --version
- name: Resolve libraries
run: java -jar bob.jar resolve --email [email protected] --auth 123456
- name: Build Tools
run: |
set SERVER=${{env.BUILD_SERVER}}
set DEFOLDSDK=${{env.DEFOLD_VERSION}}
set BOB=./bob.jar
./utils/build_plugins.sh x86_64-win32
- name: Build
run: java -jar bob.jar --platform=${{ matrix.platform }} build --archive --build-server=${{env.BUILD_SERVER}} --defoldsdk=${{env.DEFOLD_VERSION}}
- name: Bundle
run: java -jar bob.jar --platform=${{ matrix.platform }} bundle
# macOS is not technically needed for building, but we want to test bundling as well, since we're also testing the manifest merging
build_with_bob_macos:
strategy:
matrix:
platform: [arm64-ios, x86_64-macos, arm64-macos]
runs-on: macOS-latest
name: Build
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
java-version: '17.0.5+8'
architecture: x64
distribution: 'temurin'
- name: Get Defold version
run: |
TMPVAR=`curl -s http://d.defold.com/${{env.CHANNEL}}/${{env.VERSION_FILENAME}} | jq -r '.sha1'`
echo "DEFOLD_VERSION=${TMPVAR}" >> $GITHUB_ENV
echo "Found version ${TMPVAR}"
- name: Install dependencies
run: |
brew install tree
- name: Download bob.jar
run: |
wget -q http://d.defold.com/archive/${{env.CHANNEL}}/${{env.DEFOLD_VERSION}}/bob/bob.jar
java -jar bob.jar --version
- name: Resolve libraries
run: java -jar bob.jar resolve --email [email protected] --auth 123456
- name: Build Tools
run: SERVER=${{env.BUILD_SERVER}} DEFOLDSDK=${{env.DEFOLD_VERSION}} BOB=./bob.jar ./utils/build_plugins.sh x86_64-macos
- name: Build
run: java -jar bob.jar --platform=${{ matrix.platform }} build --archive --build-server=${{env.BUILD_SERVER}} --defoldsdk=${{env.DEFOLD_VERSION}}
- name: Bundle
run: java -jar bob.jar --platform=${{ matrix.platform }} bundle