Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wuriyanto48 committed Aug 30, 2023
1 parent af8bbc8 commit d43d049
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
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
10 changes: 10 additions & 0 deletions scripts/install_ubuntu_deps
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

0 comments on commit d43d049

Please sign in to comment.