Merge pull request #102 from defold/editor-save-value #242
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-rive/plugins/lib/x86_64-linux/libRiveExt.so' | |
jobs: | |
build_with_bob: | |
strategy: | |
matrix: | |
platform: [armv7-android, x86_64-linux] | |
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: 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: Installing Shared Library Dependencies | |
run: | | |
echo "Remove after we've fixed the headless build for plugins" | |
sudo add-apt-repository ppa:apt-fast/stable | |
sudo apt-get update | |
sudo apt-fast install -y --no-install-recommends libopenal-dev libgl1-mesa-dev libglw1-mesa-dev freeglut3-dev | |
- 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 | |
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 | |
build_with_bob_windows: | |
strategy: | |
matrix: | |
platform: [x86_64-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 | |
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_darwin: | |
strategy: | |
matrix: | |
platform: [arm64-macos, x86_64-macos, arm64-ios] | |
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: 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 | |
run: java -jar bob.jar --platform=${{ matrix.platform }} --architectures=${{ matrix.platform }} build --archive --build-server=${{env.BUILD_SERVER}} | |
- name: Bundle | |
run: java -jar bob.jar --platform=${{ matrix.platform }} --architectures=${{ matrix.platform }} bundle |