diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..aa5f59e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,65 @@ +name: My Test + +on: + workflow_dispatch: + +jobs: + test: + + runs-on: windows-latest + + strategy: + fail-fast: false + + name: Test + + defaults: + run: + shell: msys2 {0} + + steps: + + - name: Install MSYS2 + uses: msys2/setup-msys2@v2 + with: + msystem: mingw64 + install: >- + curl + git + make + icu + perl + flex + bison + zlib + zlib-devel + mingw-w64-x86_64-gcc + + - name: Install PostgreSQL + run: | + git clone --single-branch -b REL_16_STABLE git://git.postgresql.org/git/postgresql.git + cd ${GITHUB_WORKSPACE}/postgresql + ./configure --prefix=${GITHUB_WORKSPACE}/install --enable-cassert --without-icu + make -j$(nproc) + make install + + - name: Clone pgSphere + uses: actions/checkout@v4 + with: + ref: 'master' + fetch-depth: 1 + + - name: Build pgSphere + run: | + export PATH=${GITHUB_WORKSPACE}/install/bin:$PATH + export LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/install/lib:$LD_LIBRARY_PATH + make --keep-going -j$(nproc) -Wall PROFILE='-Werror -Wall' USE_HEALPIX=0 + + + #- name: Build pgSphere + # run: make USE_HEALPIX=0 + + #- name: Setup PostgreSQL + # uses: tj-actions/install-postgresql@v3 + # with: + # postgresql-version: 16