Perform Bazel install directly in Windows CI (#6653)

This commit is contained in:
mehrdadn
2019-12-31 20:48:08 -08:00
committed by Philipp Moritz
parent 480206eef8
commit f4b29dae9c
3 changed files with 78 additions and 43 deletions
+10 -10
View File
@@ -3,7 +3,7 @@ name: CI
env:
LLVM_VERSION_WINDOWS: 9.0.0
on: [push]
on: [push, pull_request]
jobs:
build:
@@ -22,12 +22,16 @@ jobs:
os: windows-latest
compiler: clang-cl
steps:
- name: Install Bazel
- name: Checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Setup Bazel
shell: bash
run: |
if [ "${OSTYPE}" = "msys" ]; then
choco install --no-progress bazel
fi
env:
BAZEL_CACHE_CREDENTIAL_B64: ${{ secrets.BAZEL_CACHE_CREDENTIAL_B64 }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./ci/travis/install-bazel.sh
- name: Install C/C++ toolchains
if: matrix.compiler == 'clang' || matrix.compiler == 'clang-cl'
shell: bash
@@ -56,10 +60,6 @@ jobs:
uses: numworks/setup-msys2@v1
with:
update: false
- name: Checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Perform build
shell: bash
run: |