Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add Windows as a platform in Cirrus CI #11

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
33 changes: 27 additions & 6 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
container:
image: l.gcr.io/google/bazel:latest
task:
name: Main build
build_script: bazel build //...
name: Build on linux
bazel_info_script: bazel info --remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST release
build_sample_script: bazel build --remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST //sample/...
build_all_script: bazel build --remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST //...
container:
image: l.gcr.io/google/bazel:1.2.1
task:
name: Sample build
build_script: bazel build @bazel_pandoc//sample/...
name: Build on Windows
install_bazel_script: choco install -y bazel
bazel_info_script: bazel info --remote_http_cache=http://%CIRRUS_HTTP_CACHE_HOST% release
build_sample_script: bazel build --remote_http_cache=http://%CIRRUS_HTTP_CACHE_HOST% //sample/...
build_all_script: bazel build --remote_http_cache=http://%CIRRUS_HTTP_CACHE_HOST% //...
windows_container:
image: cirrusci/windowsservercore:2019
os_version: 2019
steps:
- restore_cache:
keys:
- chocho-{{ .Branch }}-{{ .Revision }}
- chocho-{{ .Branch }}-
- chocho--
- chocho-
- checkout
- git_cache:
key: chocho-{{ .Branch }}-{{ .Revision }}
paths:
- "C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\chocolatey"