-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af8bbc8
commit d43d049
Showing
2 changed files
with
44 additions
and
0 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,34 @@ | ||
name: pgcrypsi CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set permission to install_ubuntu_deps | ||
run: chmod +x ./scripts/install_ubuntu_deps | ||
- name: Install Ubuntu dependecies | ||
run: bash ./scripts/install_ubuntu_deps | ||
- name: Check Builder | ||
run: | | ||
cmake --version | ||
gcc --version | ||
openssl version -a | ||
- name: Build Extension | ||
run: | | ||
cc -fPIC -c pgcrypsi.c -I /usr/include/postgresql/10/server/ | ||
cc -shared -o pgcrypsi.so pgcrypsi.o | ||
- name: Check libdir | ||
run: | | ||
pg_config --pkglibdir |
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
sudo apt-get update | ||
sudo apt-get install -y build-essential | ||
#sudo apt-get install -y libprotobuf-dev protobuf-compiler && \ | ||
sudo apt-get install -y cmake | ||
sudo apt-get install -y git | ||
sudo apt-get install -y gcc-multilib | ||
sudo apt install libpq-dev | ||
sudo apt-get install -y postgresql-server-dev-10 |