Skip to content

Commit

Permalink
Create bob.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AGulev authored Aug 25, 2023
1 parent 9905063 commit aa5f6ba
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/bob.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Build with bob

on: [push, pull_request]

env:
VERSION_FILENAME: 'info.json'
CHANNEL: 'beta'
BUILD_SERVER: 'https://build-stage.defold.com'

jobs:
build_with_bob:
strategy:
matrix:
platform: [armv7-android, arm64-android, x86_64-linux, x86_64-win32, x86-win32, 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', 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: 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 a@b.com --auth 123456
- name: Build
run: java -jar bob.jar --platform=${{ matrix.platform }} build --archive --build-server=${{env.BUILD_SERVER}}
- 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-darwin]
runs-on: macOS-latest

name: Build
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with: { java-version: '17.0.5+8', 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: 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 a@b.com --auth 123456
- name: Build
run: java -jar bob.jar --platform=${{ matrix.platform }} build --archive --build-server=${{env.BUILD_SERVER}}
- name: Bundle
run: java -jar bob.jar --platform=${{ matrix.platform }} bundle

0 comments on commit aa5f6ba

Please sign in to comment.