Skip to content

CI: enable windows-latest as well #12

CI: enable windows-latest as well

CI: enable windows-latest as well #12

Workflow file for this run

name: Presubmit
on:
push:
branches:
- 'master'
pull_request:
jobs:
test-matrix:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Configure
run: |
echo "build --compilation_mode=opt" > $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 "test --test_output=errors" >> $HOME/.bazelrc
echo "test --test_verbose_timeout_warnings" >> $HOME/.bazelrc
- name: Test
run: |
bazel test //ryu/... //src/...
- name: Leak checker (macOS)
if: matrix.os == 'macos-latest' && success()
run: |
bazel test --run_under="leaks --atExit -- " //ryu/...
- name: Benchmark
run: |
bazel run -c opt //ryu/benchmark:ryu_benchmark --
bazel run -c opt //ryu/benchmark:ryu_printf_benchmark -- -samples=200
bazel test --copt=-DRYU_ONLY_64_BIT_OPS //ryu/...
bazel run -c opt --copt=-DRYU_ONLY_64_BIT_OPS //ryu/benchmark:ryu_benchmark --
bazel run -c opt --copt=-DRYU_ONLY_64_BIT_OPS //ryu/benchmark:ryu_printf_benchmark -- -samples=200
bazel test --copt=-DRYU_OPTIMIZE_SIZE //ryu/...
bazel run -c opt --copt=-DRYU_OPTIMIZE_SIZE //ryu/benchmark:ryu_benchmark --
bazel run -c opt --copt=-DRYU_OPTIMIZE_SIZE //ryu/benchmark:ryu_printf_benchmark -- -samples=200
bazel test --copt=-DRYU_OPTIMIZE_SIZE --copt=-DRYU_ONLY_64_BIT_OPS //ryu/...
bazel run -c opt --copt=-DRYU_OPTIMIZE_SIZE --copt=-DRYU_ONLY_64_BIT_OPS //ryu/benchmark:ryu_benchmark
bazel run -c opt --copt=-DRYU_OPTIMIZE_SIZE --copt=-DRYU_ONLY_64_BIT_OPS //ryu/benchmark:ryu_printf_benchmark -- -samples=200
bazel test -c opt --copt=-DRYU_FLOAT_FULL_TABLE //ryu/...
bazel test -c opt --copt=-DRYU_ONLY_64_BIT_OPS --copt=-DRYU_32_BIT_PLATFORM //ryu/...