Skip to content
This repository was archived by the owner on Mar 17, 2024. It is now read-only.

Commit 68d0435

Browse files
committed
Simplify CI
1 parent c223d79 commit 68d0435

File tree

1 file changed

+9
-57
lines changed

1 file changed

+9
-57
lines changed

.github/workflows/bob.yml

Lines changed: 9 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ name: Build with bob
22

33
on:
44
push:
5-
pull_request_target:
6-
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
79
env:
8-
VERSION_FILENAME: "info.json"
9-
BUILD_SERVER: "https://build.defold.com"
10+
BUILD_SERVER: 'https://build.defold.com'
1011

1112
jobs:
1213
build_with_bob:
@@ -20,56 +21,7 @@ jobs:
2021
- uses: actions/checkout@v4
2122
- uses: actions/setup-java@v4
2223
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

Comments
 (0)