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

Add a windows CI. #15

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading