diff --git a/.github/workflows/bazel_linux.yml b/.github/workflows/bazel_linux.yml index 49d2f96cb0..7b23fb2371 100644 --- a/.github/workflows/bazel_linux.yml +++ b/.github/workflows/bazel_linux.yml @@ -26,6 +26,6 @@ jobs: sudo apt-get install bazel bazel --version - name: Build - run: bazel build --cxxopt=-std=c++20 //ortools/... //examples/... + run: bazel build -c opt --cxxopt=-std=c++20 //ortools/... //examples/... - name: Test - run: bazel test --cxxopt=-std=c++20 //ortools/... //examples/... + run: bazel test -c opt --cxxopt=-std=c++20 --test_output=errors //ortools/... //examples/... diff --git a/.github/workflows/bazel_macos.yml b/.github/workflows/bazel_macos.yml index 18df7bebe6..d1553090d9 100644 --- a/.github/workflows/bazel_macos.yml +++ b/.github/workflows/bazel_macos.yml @@ -19,6 +19,6 @@ jobs: #brew install bazel bazel --version - name: Build - run: bazel build --cxxopt=-std=c++20 //ortools/... //examples/... + run: bazel build -c opt --cxxopt=-std=c++20 //ortools/... //examples/... - name: Test - run: bazel test --cxxopt=-std=c++20 //ortools/... //examples/... + run: bazel test -c opt --cxxopt=-std=c++20 --test_output=errors //ortools/... //examples/... diff --git a/.github/workflows/bazel_windows.yml b/.github/workflows/bazel_windows.yml index 1353498649..8f1a692678 100644 --- a/.github/workflows/bazel_windows.yml +++ b/.github/workflows/bazel_windows.yml @@ -18,6 +18,6 @@ jobs: choco install bazel bazel --version - name: Build - run: bazel build --cxxopt="-std:c++20" //ortools/... //examples/... + run: bazel build -c opt --cxxopt="-std:c++20" //ortools/... //examples/... - name: Test - run: bazel test --cxxopt="-std:c++20" //ortools/... //examples/... + run: bazel test -c opt --cxxopt="-std:c++20" --test_output=errors //ortools/... //examples/...