Skip to content

MacOS CI workflows

MacOS CI workflows #13

name: Build on MacOS with make
on: [pull_request, workflow_dispatch]
jobs:
build:
name: build
runs-on: macos-12
steps:
- name: Install dependencies
run: |
brew install make autoconf curl json-c gettext icu4c
- name: Debug
run : brew info icu4c
- name: Clone postgres repository
uses: actions/checkout@v4
with:
repository: 'postgres/postgres'
ref: 'a81e5516fa4bc53e332cb35eefe231147c0e1749'
path: 'src'
- name: Clone postgres-tde-ext repository
uses: actions/checkout@v2
with:
path: 'src/contrib/postgres-tde-ext'
- name: Create pgsql dir
run: mkdir -p $HOME/pgsql
- name: Build postgres
run: |
export LDFLAGS="-L/usr/local/opt/icu4c/lib"
export CPPFLAGS="-I/usr/local/opt/icu4c/include"
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"
./configure --with-openssl --enable-tap-tests=no --prefix=$HOME/postgres
make -j
sudo make install
working-directory: src
- name: Build postgres-tde-ext
run: |
./configure
make -j
sudo make install
working-directory: src/contrib/postgres-tde-ext
- name: Run debug commands on failure
if: ${{ failure() }}
run: |
env
pwd
git status