File: test-windows.yml

package info (click to toggle)
h3-pg 4.2.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,352 kB
  • sloc: sql: 4,469; ansic: 3,497; python: 322; sh: 56; makefile: 18
file content (37 lines) | stat: -rw-r--r-- 858 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: test-windows

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  windows:
    strategy:
      matrix:
        config: [Release, Debug]

    runs-on: windows-2022

    steps:
      - uses: actions/checkout@v4

      - name: Fix default PostgreSQL version on Windows Runner
        run: $env:PGBIN >> $env:GITHUB_PATH

      - name: Generate
        run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.config }}

      - name: Build
        run: cmake --build build --config ${{ matrix.config }}

      - name: Install
        run: cmake --install build --component h3-pg --config ${{ matrix.config }}

      - name: Test
        run: ctest --test-dir build --output-on-failure --build-config ${{ matrix.config }}

      - name: Print regression diffs
        if: ${{ failure() }}
        run: cat build/*/test/regression.diffs