@@ -2,11 +2,12 @@ name: Build with bob
2
2
3
3
on :
4
4
push :
5
- pull_request_target :
6
-
5
+ branches : [main]
6
+ pull_request :
7
+ branches : [main]
8
+ workflow_dispatch :
7
9
env :
8
- VERSION_FILENAME : " info.json"
9
- BUILD_SERVER : " https://build.defold.com"
10
+ BUILD_SERVER : ' https://build.defold.com'
10
11
11
12
jobs :
12
13
build_with_bob :
20
21
- uses : actions/checkout@v4
21
22
- uses : actions/setup-java@v4
22
23
with :
23
- distribution : " temurin"
24
- java-version : " 17"
25
-
26
- - name : Get Defold version
27
- run : |
28
- TMPVAR=`curl -s http://d.defold.com/stable/${{env.VERSION_FILENAME}} | jq -r '.sha1'`
29
- echo "DEFOLD_VERSION=${TMPVAR}" >> $GITHUB_ENV
30
- echo "Found version ${TMPVAR}"
31
-
32
- - name : Download bob.jar
33
- run : |
34
- wget -q http://d.defold.com/archive/stable/${{env.DEFOLD_VERSION}}/bob/bob.jar
35
- java -jar bob.jar --version
36
-
37
- - name : Resolve libraries
38
- run : java -jar bob.jar resolve --email a@b.com --auth 123456
39
- - name : Build
40
- run : java -jar bob.jar --platform=${{ matrix.platform }} build --archive --build-server=${{env.BUILD_SERVER}}
41
- - name : Bundle
42
- run : java -jar bob.jar --platform=${{ matrix.platform }} bundle
43
-
44
- # macOS is not technically needed for building, but we want to test bundling as well, since we're also testing the manifest merging
45
- build_with_bob_macos :
46
- strategy :
47
- matrix :
48
- platform : [armv7-darwin, x86_64-darwin]
49
- runs-on : macOS-latest
50
-
51
- name : Build
52
- steps :
53
- - uses : actions/checkout@v4
54
- - uses : actions/setup-java@v4
55
- with :
56
- distribution : " temurin"
57
- java-version : " 17"
58
-
59
- - name : Get Defold version
60
- run : |
61
- TMPVAR=`curl -s http://d.defold.com/stable/${{env.VERSION_FILENAME}} | jq -r '.sha1'`
62
- echo "DEFOLD_VERSION=${TMPVAR}" >> $GITHUB_ENV
63
- echo "Found version ${TMPVAR}"
64
-
65
- - name : Download bob.jar
66
- run : |
67
- wget -q http://d.defold.com/archive/stable/${{env.DEFOLD_VERSION}}/bob/bob.jar
68
- java -jar bob.jar --version
69
-
70
- - name : Resolve libraries
71
- run : java -jar bob.jar resolve --email a@b.com --auth 123456
72
- - name : Build
73
- run : java -jar bob.jar --platform=${{ matrix.platform }} build --archive --build-server=${{env.BUILD_SERVER}}
74
- - name : Bundle
75
- run : java -jar bob.jar --platform=${{ matrix.platform }} bundle
24
+ distribution : ' temurin'
25
+ java-version : ' 17'
26
+ - uses : dapetcu21/setup-defold@v3.0.3
27
+ - run : java -jar $BOB --platform=${{ matrix.platform }} build --build-server=${{env.BUILD_SERVER}}
0 commit comments