ref: https://docs.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version?view=msvc-170
24 lines
604 B
YAML
24 lines
604 B
YAML
name: Bazel Windows
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
schedule:
|
|
# min hours day(month) month day(week)
|
|
- cron: '0 0 7,22 * *'
|
|
|
|
jobs:
|
|
# Building using the github runner environement directly.
|
|
bazel:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install Bazel
|
|
run: |
|
|
choco install bazel
|
|
bazel --version
|
|
- name: Build
|
|
run: bazel build -c opt --cxxopt="/std:c++20" //ortools/... //examples/...
|
|
- name: Test
|
|
run: bazel test -c opt --cxxopt="/std:c++20" --test_output=errors //ortools/... //examples/...
|