Make sure the last option is used when multiple #78
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: CI | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Mount bazel cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cache/bazel | |
~/.cache/bazelisk | |
key: bazel | |
- name: Install bazelisk | |
run: | | |
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.10.1/bazelisk-linux-amd64" | |
mkdir -p "${GITHUB_WORKSPACE}/bin/" | |
mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel" | |
chmod +x "${GITHUB_WORKSPACE}/bin/bazel" | |
- name: Build JdtJavaBuilder_deploy.jar | |
run: | | |
"${GITHUB_WORKSPACE}/bin/bazel" build :JdtJavaBuilder_deploy.jar | |
cp -fv bazel-bin/JdtJavaBuilder_deploy.jar compiler/export/ | |
- name: Build turbine_direct_binary_deploy.jar | |
run: | | |
"${GITHUB_WORKSPACE}/bin/bazel" build //compiler/third_party/turbine:turbine_direct_binary_deploy.jar | |
cp -fv bazel-bin/compiler/third_party/turbine/turbine_direct_binary_deploy.jar compiler/tools/ | |
- name: Test Compile | |
run: | | |
cd examples/ | |
"${GITHUB_WORKSPACE}/bin/bazel" build //... | |