Skip to content

[junit] infra/library/k-p (#35) #105

[junit] infra/library/k-p (#35)

[junit] infra/library/k-p (#35) #105

Workflow file for this run

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_8_env
run: echo "JAVA_8_HOME=$(/usr/libexec/java_home -v 1.8)" >> $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_8_HOME frameworks examples_dist
# Test command-line tools.
- name: test_tools
run: $MAKE_CMD JAVA_HOME=$JAVA_8_HOME test_translator test_cycle_finder test_jre_cycles
- name: java_11_env
run: echo "JAVA_11_HOME=$(/usr/libexec/java_home -v 11)" >> $GITHUB_ENV
# Double-check translator tests for Java 11, since its javac is different.
- name: test_translator_java_11
run: $MAKE_CMD JAVA_HOME=$JAVA_11_HOME test_translator