File: test-linux.yml

package info (click to toggle)
h3-pg 4.2.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,196 kB
  • sloc: sql: 4,469; ansic: 3,497; python: 322; sh: 56; makefile: 18
file content (54 lines) | stat: -rw-r--r-- 1,498 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: test-linux

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

jobs:
  linux:
    strategy:
      matrix:
        os: [ubuntu-24.04, ubuntu-22.04]
        pg: [17, 16, 15, 14, 13]
        config: [Release, Debug]

    runs-on: ${{ matrix.os }}

    name: ${{ matrix.os }} 🐘${{ matrix.pg }} (${{ matrix.config }})

    steps:
      - uses: actions/checkout@v4

      - name: Setup pg_validate_extupgrade
        uses: baptiste0928/cargo-install@v3
        with:
          crate: pg_validate_extupgrade
          git: https://github.com/rjuju/pg_validate_extupgrade

      - name: Setup PostgreSQL
        run: |
          sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -p -i -v ${{ matrix.pg }}
          sudo apt-get -y install postgresql-${{ matrix.pg }}-postgis-3
          sudo -u postgres -i createuser --superuser runner
          sudo -u postgres -i createdb runner
          psql -c "CREATE EXTENSION postgis; CREATE EXTENSION postgis_raster;"

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

      - name: Build
        run: cmake --build build

      - name: Install
        run: sudo cmake --install build --component h3-pg

      - name: Test
        env:
          PGHOST: /var/run/postgresql
        run: ctest --test-dir build --output-on-failure --build-config ${{ matrix.config }}

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