blob: ebedaf44b0a0a56c0eb2f48d3d357da3d45dd039 [file]
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
env:
MAKE_CMD: "env TRANSLATE_GLOBAL_FLAGS=--swift-friendly ENV_J2OBJC_ARCHS=macosx_iphone64 make -j32"
steps:
- name: java_11_env
run: echo "JAVA_11_HOME=$(/usr/libexec/java_home -v 11)" >> $GITHUB_ENV
- uses: actions/checkout@v2
# Build everything but protobuf targets, which require that the public
# protobuf distribution be installed.
- name: build_all
run: $MAKE_CMD JAVA_HOME=$JAVA_11_HOME frameworks examples_dist
# Test command-line tools.
- name: test_tools
run: $MAKE_CMD JAVA_HOME=$JAVA_11_HOME test_translator test_cycle_finder test_jre_cycles