-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from Florents-Tselai/cleanups
Cleanups
- Loading branch information
Showing
25 changed files
with
183 additions
and
441 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/.git/ | ||
/dist/ | ||
/results/ | ||
/tmp_check/ | ||
/pgdata/ | ||
regression.* | ||
*.o | ||
*.so | ||
*.dylib | ||
/.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,62 @@ | ||
name: build | ||
on: [push, pull_request] | ||
on: [ push, pull_request ] | ||
jobs: | ||
ubuntu: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- postgres: 18 | ||
os: ubuntu-24.04 | ||
- postgres: 17 | ||
os: ubuntu-22.04 | ||
os: ubuntu-24.04 | ||
- postgres: 16 | ||
os: ubuntu-22.04 | ||
- postgres: 15 | ||
os: ubuntu-22.04 | ||
- postgres: 14 | ||
os: ubuntu-22.04 | ||
- postgres: 13 | ||
os: ubuntu-20.04 | ||
- postgres: 12 | ||
os: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- run: | | ||
sudo apt update | ||
- uses: ankane/setup-postgres@v1 | ||
with: | ||
postgres-version: ${{ matrix.postgres }} | ||
dev-files: true | ||
- run: make | ||
# env: | ||
# PG_CFLAGS: -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare | ||
- run: | | ||
export PG_CONFIG=`which pg_config` | ||
sudo --preserve-env=PG_CONFIG make install | ||
|
||
- run: make PG_CFLAGS=-Wno-declaration-after-statement -Wno-format-security | ||
|
||
- run: sudo make install | ||
|
||
- run: make installcheck | ||
|
||
- if: ${{ failure() }} | ||
run: cat regression.diffs | ||
|
||
mac: | ||
runs-on: ${{ matrix.os }} | ||
if: ${{ !startsWith(github.ref_name, 'windows') }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- postgres: 17 | ||
os: macos-14 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ankane/setup-postgres@v1 | ||
with: | ||
postgres-version: ${{ matrix.postgres }} | ||
- run: make PG_CFLAGS=-Wno-declaration-after-statement -Wno-format-security | ||
|
||
- run: make install | ||
|
||
- run: make installcheck | ||
- if: ${{ failure() }} | ||
run: cat regression.diffs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: [v*] | ||
jobs: | ||
release: | ||
name: Release on PGXN | ||
runs-on: ubuntu-latest | ||
container: pgxn/pgxn-tools | ||
env: | ||
PGXN_USERNAME: ${{ secrets.PGXN_USERNAME }} | ||
PGXN_PASSWORD: ${{ secrets.PGXN_PASSWORD }} | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
- name: Bundle the Release | ||
id: bundle | ||
run: pgxn-bundle | ||
- name: Release on PGXN | ||
run: pgxn-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
ARG PG_MAJOR=17 | ||
FROM postgres:$PG_MAJOR | ||
ARG PG_MAJOR | ||
|
||
COPY . /tmp/vasco | ||
|
||
RUN apt-get update && \ | ||
apt-mark hold locales && \ | ||
apt-get install -y --no-install-recommends libpoppler-glib-dev pkg-config wget build-essential postgresql-server-dev-$PG_MAJOR && \ | ||
cd /tmp/vasco && \ | ||
make clean && \ | ||
make install && \ | ||
mkdir /usr/share/doc/vasco && \ | ||
cp LICENSE README.md /usr/share/doc/vasco && \ | ||
rm -r /tmp/vasco && \ | ||
apt-get remove -y pkg-config wget build-essential postgresql-server-dev-$PG_MAJOR && \ | ||
apt-get autoremove -y && \ | ||
apt-mark unhold locales && \ | ||
rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.