@@ -26,47 +26,60 @@ jobs:
2626 env :
2727 SQLITE_VERSION : " 3420000"
2828 SQLITE_YEAR : " 2023"
29+ POSTGIS_VERSION : " 3.4.2"
2930 HTTP_PROXY : " "
3031 HTTPS_PROXY : " "
3132 strategy :
3233 fail-fast : false
3334 matrix :
3435 pg : ${{ fromJSON(needs.detect-pgversion.outputs.pgversion) }}
36+ config : ["default", "postgis"]
3537
36- name : Test on PostgreSQL ${{ matrix.pg }}
38+ name : Test on PostgreSQL ${{ matrix.pg }}, ${{ matrix.config }} mode
3739 runs-on : ubuntu-22.04
3840 steps :
3941 - uses : actions/checkout@v4
4042
4143 - name : tar
4244 run : tar zcvf sqlite_fdw.tar.gz ./*
43-
45+
4446 - name : set_proxy
4547 run : bash GitHubActions/env.sh
4648
4749 - name : install locales
4850 run : bash GitHubActions/install_locales.sh
49-
50- - name : build PostgreSQL ${{ matrix.pg }}
51+
52+ - name : build PostgreSQL ${{ matrix.pg }} with ${{ matrix.config }}
5153 run : bash GitHubActions/build_postgres.sh ${{ matrix.pg }}
5254
53- - name : install SQLite
54- run : bash GitHubActions/install_sqlite.sh ${{ env.SQLITE_VERSION }} ${{ env.SQLITE_YEAR }}
55-
56- - name : build sqlite_fdw
57- run : bash GitHubActions/build_sqlite_fdw.sh ${{ matrix.pg }}
58-
55+ - name : build PostGIS ${{ env.POSTGIS_VERSION }} for PostgreSQL ${{ matrix.pg }}, ${{ matrix.config }} mode
56+ run : |
57+ if [[ "${{ matrix.config }}" == "postgis" ]]; then
58+ bash GitHubActions/build_postgis.sh ${{ matrix.pg }} ${{ env.POSTGIS_VERSION }}
59+ fi
60+
61+ - name : install SQLite, ${{ matrix.config }} mode
62+ run : |
63+ if [[ "${{ matrix.config }}" == "default" ]]; then
64+ bash GitHubActions/install_sqlite.sh ${{ env.SQLITE_VERSION }} ${{ env.SQLITE_YEAR }}
65+ elif [[ "${{ matrix.config }}" == "postgis" ]]; then
66+ bash GitHubActions/install_sqlite.sh ${{ env.SQLITE_VERSION }} ${{ env.SQLITE_YEAR }} --enable-rtree
67+ fi
68+
69+ - name : build sqlite_fdw, ${{ matrix.config }} mode
70+ run : |
71+ bash GitHubActions/build_sqlite_fdw.sh ${{ matrix.pg }} ${{ matrix.config }}
72+
5973 - name : execute sqlite_fdw test
60- run : bash GitHubActions/execute_test.sh ${{ matrix.pg }}
61-
74+ run : bash GitHubActions/execute_test.sh ${{ matrix.pg }} ${{ matrix.config }}
75+
6276 - name : download output files (regression.diffs)
6377 if : failure()
6478 uses : actions/upload-artifact@v4
6579 with :
66- name : ${{ matrix.pg }}-test-results
80+ name : ${{ matrix.pg }}-${{ matrix.config }}- test-results
6781 path : |
6882 workdir/postgresql-${{ matrix.pg }}/contrib/sqlite_fdw/regression.diffs
6983 workdir/postgresql-${{ matrix.pg }}/contrib/sqlite_fdw/regression.out
7084 workdir/postgresql-${{ matrix.pg }}/contrib/sqlite_fdw/results
7185 retention-days : 7
72-
0 commit comments