|
| 1 | +name: ci |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + pull_request: |
| 6 | + |
| 7 | +env: |
| 8 | + BAZEL_CXXOPTS: -std=c++14 |
| 9 | + |
| 10 | +jobs: |
| 11 | + Linux-GCC: |
| 12 | + runs-on: ubuntu-latest |
| 13 | + steps: |
| 14 | + |
| 15 | + - uses: actions/checkout@v4 |
| 16 | + with: |
| 17 | + fetch-depth: 0 |
| 18 | + |
| 19 | + - name: Tests |
| 20 | + run: > |
| 21 | + bazel test ... |
| 22 | + --copt=-DGTEST_REMOVE_LEGACY_TEST_CASEAPI_=1 |
| 23 | + --copt=-Werror |
| 24 | + --cxxopt=-Wall |
| 25 | + --cxxopt=-Wextra |
| 26 | + --cxxopt=-Wcast-qual |
| 27 | + --cxxopt=-Wconversion-null |
| 28 | + --cxxopt=-Wformat-security |
| 29 | + --cxxopt=-Wmissing-declarations |
| 30 | + --cxxopt=-Wnon-virtual-dtor |
| 31 | + --cxxopt=-Woverlength-strings |
| 32 | + --cxxopt=-Wpointer-arith |
| 33 | + --cxxopt=-Wundef |
| 34 | + --cxxopt=-Wunused-local-typedefs |
| 35 | + --cxxopt=-Wunused-result |
| 36 | + --cxxopt=-Wvarargs |
| 37 | + --cxxopt=-Wvla |
| 38 | + --cxxopt=-Wwrite-strings |
| 39 | + --cxxopt=-Wno-missing-declarations |
| 40 | + --cxxopt=-Wno-undef |
| 41 | + --features=external_include_paths |
| 42 | + --keep_going |
| 43 | + --show_timestamps |
| 44 | + --test_env="TZDIR=${GITHUB_WORKSPACE}/testdata/zoneinfo" |
| 45 | + --test_output=errors |
| 46 | + --test_tag_filters=-benchmark |
| 47 | +
|
| 48 | + Linux-Clang: |
| 49 | + runs-on: ubuntu-latest |
| 50 | + steps: |
| 51 | + |
| 52 | + - uses: actions/checkout@v4 |
| 53 | + with: |
| 54 | + fetch-depth: 0 |
| 55 | + |
| 56 | + - name: Tests |
| 57 | + run: > |
| 58 | + bazel test ... |
| 59 | + --action_env=CC=clang |
| 60 | + --copt=-DGTEST_REMOVE_LEGACY_TEST_CASEAPI_=1 |
| 61 | + --copt=-Werror |
| 62 | + --cxxopt=-Wall |
| 63 | + --cxxopt=-Wextra |
| 64 | + --cxxopt=-Wc++98-compat-extra-semi |
| 65 | + --cxxopt=-Wcast-qual |
| 66 | + --cxxopt=-Wconversion |
| 67 | + --cxxopt=-Wdeprecated-pragma |
| 68 | + --cxxopt=-Wfloat-overflow-conversion |
| 69 | + --cxxopt=-Wfloat-zero-conversion |
| 70 | + --cxxopt=-Wfor-loop-analysis |
| 71 | + --cxxopt=-Wformat-security |
| 72 | + --cxxopt=-Wgnu-redeclared-enum |
| 73 | + --cxxopt=-Winfinite-recursion |
| 74 | + --cxxopt=-Winvalid-constexpr |
| 75 | + --cxxopt=-Wliteral-conversion |
| 76 | + --cxxopt=-Wmissing-declarations |
| 77 | + --cxxopt=-Woverlength-strings |
| 78 | + --cxxopt=-Wpointer-arith |
| 79 | + --cxxopt=-Wself-assign |
| 80 | + --cxxopt=-Wshadow-all |
| 81 | + --cxxopt=-Wshorten-64-to-32 |
| 82 | + --cxxopt=-Wsign-conversion |
| 83 | + --cxxopt=-Wstring-conversion |
| 84 | + --cxxopt=-Wtautological-overlap-compare |
| 85 | + --cxxopt=-Wtautological-unsigned-zero-compare |
| 86 | + --cxxopt=-Wuninitialized |
| 87 | + --cxxopt=-Wunreachable-code |
| 88 | + --cxxopt=-Wunused-comparison |
| 89 | + --cxxopt=-Wunused-local-typedefs |
| 90 | + --cxxopt=-Wunused-result |
| 91 | + --cxxopt=-Wvla |
| 92 | + --cxxopt=-Wwrite-strings |
| 93 | + --cxxopt=-Wno-unknown-warning-option |
| 94 | + --cxxopt=-Wno-undef |
| 95 | + --features=external_include_paths |
| 96 | + --keep_going |
| 97 | + --show_timestamps |
| 98 | + --test_env="TZDIR=${GITHUB_WORKSPACE}/testdata/zoneinfo" |
| 99 | + --test_output=errors |
| 100 | + --test_tag_filters=-benchmark |
| 101 | +
|
| 102 | + macOS: |
| 103 | + runs-on: macos-latest |
| 104 | + steps: |
| 105 | + |
| 106 | + - uses: actions/checkout@v4 |
| 107 | + with: |
| 108 | + fetch-depth: 0 |
| 109 | + |
| 110 | + - name: Tests |
| 111 | + run: > |
| 112 | + bazel test ... |
| 113 | + --features=external_include_paths |
| 114 | + --keep_going |
| 115 | + --show_timestamps |
| 116 | + --test_env="TZDIR=${GITHUB_WORKSPACE}/testdata/zoneinfo" |
| 117 | + --test_output=errors |
| 118 | + --test_tag_filters=-benchmark |
| 119 | +
|
| 120 | + Windows: |
| 121 | + runs-on: windows-latest |
| 122 | + steps: |
| 123 | + |
| 124 | + - uses: actions/checkout@v4 |
| 125 | + with: |
| 126 | + fetch-depth: 0 |
| 127 | + |
| 128 | + - name: Tests |
| 129 | + run: > |
| 130 | + bazel test ... |
| 131 | + --keep_going |
| 132 | + --show_timestamps |
| 133 | + --test_env="TZDIR=$env:GITHUB_WORKSPACE\testdata\zoneinfo" |
| 134 | + --test_output=errors |
| 135 | + --test_tag_filters=-benchmark |
0 commit comments