Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI][windows] windows ci taken from pgrouting #13

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 45 additions & 48 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,62 +3,59 @@ name: Build for Windows
on:
push:
branches-ignore:
- '**'
- 'gh-pages'

env:
postgis_version: 3

jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
runs-on: windows-latest

strategy:
matrix:
psql: [10]
os: [windows-latest]
matrix:
pg_major: [11.13, 12.8, 13.4]

steps:
# - name: Add PostgreSQL APT repository
# run: |
# sudo apt-get install curl ca-certificates gnupg
# curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
# sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ \
# $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

# - name: Install dependencies
# run: |
# sudo apt-get update
# sudo apt-get install -y \
# libboost-graph-dev \
# libtap-parser-sourcehandler-pgtap-perl \
# postgresql-${{ matrix.psql }} \
# postgresql-${{ matrix.psql }}-pgtap \
# postgresql-${{ matrix.psql }}-postgis-${{ matrix.postgis }} \
# postgresql-${{ matrix.psql }}-postgis-${{ matrix.postgis }}-scripts \
# postgresql-server-dev-${{ matrix.psql }} \
# python-sphinx

- name: Checkout repository
uses: actions/checkout@v2

# - name: Prepare
# run: |
# sphinx-build --version
# sudo -u postgres psql -p 5432 -c "CREATE EXTENSION postgis"
# export PATH=/usr/lib/postgresql/${{ matrix.psql }}/bin:$PATH
# sudo -u postgres createdb ___vrp___test___
# sudo -u postgres createdb pgr_test__db__test

# - name: Configure
# run: |
# mkdir build
# cd build
# cmake -DPOSTGRESQL_VERSION=${{ matrix.psql }} -DCMAKE_BUILD_TYPE=Release -DWITH_DOC=OFF ..

# - name: Build
# run: |
# cd build
# make
# sudo make install

# - name: Test
# run: |
# sudo -u postgres bash ./tools/testers/pg_prove_tests.sh postgres 5432 Release
- name: Install boost
uses: MarkusJx/[email protected]
id: install-boost
with:
# REQUIRED: Specify the required boost version
# A list of supported versions can be found here:
# https://github.com/actions/boost-versions/blob/main/versions-manifest.json
boost_version: 1.73.0

- name: Add msbuild to PATH
uses: microsoft/[email protected]

- name: Install PostgreSQL
run: |
curl https://get.enterprisedb.com/postgresql/postgresql-${{ matrix.pg_major }}-1-windows-x64-binaries.zip --output pgsql.zip
Expand-Archive 'pgsql.zip' -Force
$env:path += ";$(Get-Location)\pgsql\pgsql\bin\"
$env:path -split ";"
initdb -D pgsql\data -U postgres
pg_ctl -D pgsql\data start
echo "POSTGRESQL_DIR=$pwd\pgsql\pgsql" >> $env:GITHUB_ENV

- name: Check Postgres running
run: |
${{ env.POSTGRESQL_DIR }}\bin\psql -U postgres -d postgres -c "SELECT version()"

- name: Configure
run: |
mkdir build
cd build
cmake -DPOSTGRESQL_BIN=${{ env.POSTGRESQL_DIR }}\bin -DPOSTGRESQL_INCLUDE_DIR="${{ env.POSTGRESQL_DIR }}\include;${{ env.POSTGRESQL_DIR }}\include\server" -G"Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Release -DWITH_DOC=OFF ..
env:
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}

- name: build
run: |
cd build
msbuild PGROUTING.sln /target:Build /property:Configuration=Release
55 changes: 0 additions & 55 deletions appveyor.yml

This file was deleted.

150 changes: 0 additions & 150 deletions ci/appveyor/install-boost.bat

This file was deleted.

Loading