|
| 1 | +# CI standard exceptions (upstream port — we own 10 patches, not the codebase): |
| 2 | +# Lint: No lint stage. Running clang-tidy on upstream code generates noise |
| 3 | +# about style we don't control and shouldn't change. |
| 4 | +# Coverage: No coverage reporting. Patches are platform-support glue, not new |
| 5 | +# feature code; coverage on upstream tests doesn't inform our work. |
| 6 | +name: CI (Cygwin) |
| 7 | + |
| 8 | +on: |
| 9 | + push: |
| 10 | + branches: [cygwin/support] |
| 11 | + pull_request: |
| 12 | + branches: [cygwin/support] |
| 13 | + workflow_dispatch: |
| 14 | + |
| 15 | +permissions: |
| 16 | + contents: read |
| 17 | + |
| 18 | +concurrency: |
| 19 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 20 | + cancel-in-progress: true |
| 21 | + |
| 22 | +jobs: |
| 23 | + cygwin: |
| 24 | + runs-on: windows-latest |
| 25 | + name: windows-latest / cygwin g++ |
| 26 | + timeout-minutes: 60 |
| 27 | + |
| 28 | + steps: |
| 29 | + - run: git config --global core.autocrlf input |
| 30 | + |
| 31 | + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 |
| 32 | + |
| 33 | + - uses: cygwin/cygwin-install-action@8be4a7277a684c177c0fefca7d75c9c24a45055e # v6 |
| 34 | + id: cygwin |
| 35 | + with: |
| 36 | + packages: | |
| 37 | + gcc-g++ |
| 38 | + cmake |
| 39 | + make |
| 40 | + ninja |
| 41 | +
|
| 42 | + - name: Configure |
| 43 | + shell: C:\cygwin\bin\bash.exe --noprofile --norc -eo pipefail '{0}' |
| 44 | + run: > |
| 45 | + cmake -S . -B build -G Ninja |
| 46 | + -DCMAKE_CXX_STANDARD=17 |
| 47 | + -DCMAKE_BUILD_TYPE=Release |
| 48 | + -DCMAKE_CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=1 -DGTEST_HAS_PTHREAD=1" |
| 49 | + -DABSL_BUILD_TESTING=ON |
| 50 | + -DABSL_USE_GOOGLETEST_HEAD=ON |
| 51 | +
|
| 52 | + - name: Build |
| 53 | + shell: C:\cygwin\bin\bash.exe --noprofile --norc -eo pipefail '{0}' |
| 54 | + run: ninja -C build -j4 |
| 55 | + |
| 56 | + - name: Test |
| 57 | + shell: C:\cygwin\bin\bash.exe --noprofile --norc -eo pipefail '{0}' |
| 58 | + run: ctest --test-dir build --timeout 300 --output-on-failure |
0 commit comments