Skip to content

Commit

Permalink
Add a windows CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzeller committed Dec 23, 2024
1 parent 75c1efc commit a89997d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ build --features=parse_headers
build --cxxopt=-std=c++23 --host_cxxopt=-std=c++23
build --cxxopt=-xc++ --host_cxxopt=-xc++
build --cxxopt=-Wall --host_cxxopt=-Wall
build --cxxopt=-Wextra --host_cxxopt=-Wextra
build --cxxopt=-Wno-unused-parameter --host_cxxopt=-Wno-unused-parameter
#build --cxxopt=-Wextra --host_cxxopt=-Wextra
#build --cxxopt=-Wno-unused-parameter --host_cxxopt=-Wno-unused-parameter

# Avoid costly language features.
build --cxxopt=-fno-exceptions --host_cxxopt=-fno-exceptions
Expand All @@ -29,6 +29,7 @@ build --enable_platform_specific_config
build:macos --macos_minimum_os=10.15
build:macos --features=-supports_dynamic_linker
build:macos --cxxopt=-std=c++2b --host_cxxopt=-std=c++2b
common:windows --compiler=clang-cl --cxxopt=/std:c++23 --host_cxxopt=/std:c++23 --client_env=BAZEL_CXXOPTS=/std:c++23

# Print out test log on failure.
test --test_output=errors
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,28 @@ jobs:
bazel-bin/bant/bant -V # Print version
# TODO: package ?
WindowsBuild:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install dependencies
run: |
choco install llvm --allow-downgrade --version=17.0.6
- name: Test
run: |
bazel test --noshow_progress --keep_going ...
- name: Build
run: |
bazel build --noshow_progress -c opt bant:bant
bazel-bin/bant/bant -V # Print version
# TODO: package ?
CodeFormatting:
runs-on: ubuntu-24.04
steps:
Expand Down

0 comments on commit a89997d

Please sign in to comment.