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

CI: enable windows-latest as well #227

Merged
merged 13 commits into from
Feb 19, 2024
Merged
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
15 changes: 10 additions & 5 deletions .github/workflows/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ on:
jobs:
test-matrix:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -19,19 +20,19 @@ jobs:
- name: Configure
run: |
echo "build --compilation_mode=opt" > $HOME/.bazelrc
echo "build --disk_cache=$HOME/.cache/bazel/" >> $HOME/.bazelrc
echo "# build --disk_cache=$HOME/.cache/bazel/" >> $HOME/.bazelrc
echo "build --announce_rc" >> $HOME/.bazelrc
echo "build --keep_going" >> $HOME/.bazelrc
echo "build --strategy=Javac=worker" >> $HOME/.bazelrc
echo "# build --build_tag_filters=-no$OS_NAME" >> $HOME/.bazelrc
echo "# test --test_tag_filters=-no$OS_NAME" >> $HOME/.bazelrc
echo "test --test_output=errors" >> $HOME/.bazelrc
echo "test --test_verbose_timeout_warnings" >> $HOME/.bazelrc

- name: Configure (Windows)
if: matrix.os == 'windows-latest' && success()
run: |
echo "build --conlyopt=-std=c99" > $HOME/.bazelrc
echo "build --conlyopt=-std=c99" >> $HOME/.bazelrc
echo "build --build_tag_filters=-nowindows" >> $HOME/.bazelrc
echo "test --test_tag_filters=-nowindows" >> $HOME/.bazelrc

- name: Test
run: |
Expand All @@ -42,6 +43,10 @@ jobs:
run: |
bazel test --run_under="leaks --atExit -- " //ryu/...

# Build and run the benchmarks to make sure that they continue to work; the
# results cannot be compared to other results, because we don't know how the
# machines are configured and what other things are run on the same
# instances.
- name: Benchmark
run: |
bazel run -c opt //ryu/benchmark:ryu_benchmark --
Expand Down