Skip to content

Commit

Permalink
Run CI on Windows
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 651462679
  • Loading branch information
sfreilich authored and copybara-github committed Jul 11, 2024
1 parent c344295 commit e88a0a0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
build --repo_env=CC=clang,CXX=clang++

# Set up to use C++20.
build --cxxopt='-std=c++20'
build --copt=-mcrc32
build --cxxopt=-std=c++20

# Enable Bzlmod for every Bazel command
common --enable_bzlmod
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/bazel-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ jobs:
bazel_test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Set up Clang
if: runner.os == 'Windows'
uses: egor-tensin/setup-clang@v1

- name: Test
run: bazel test --test_output=errors //...
6 changes: 5 additions & 1 deletion .github/workflows/cmake-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
cmake_test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}

Expand All @@ -18,6 +18,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Clang
if: runner.os == 'Windows'
uses: egor-tensin/setup-clang@v1

- name: Configure CMake
run: cmake .

Expand Down

0 comments on commit e88a0a0

Please sign in to comment.