mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-06 21:12:55 +00:00
Install missing openssl packages in the Github Actions workflow
This commit is contained in:
committed by
Alexey Kondratov
parent
ff233cf4c2
commit
af6143ea1f
23
.github/workflows/testing.yml
vendored
23
.github/workflows/testing.yml
vendored
@@ -40,11 +40,11 @@ jobs:
|
|||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install build-essential libreadline-dev zlib1g-dev flex bison libseccomp-dev
|
sudo apt install build-essential libreadline-dev zlib1g-dev flex bison libseccomp-dev libssl-dev
|
||||||
|
|
||||||
- name: Install macOs postgres dependencies
|
- name: Install macOS postgres dependencies
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
run: brew install flex bison
|
run: brew install flex bison openssl
|
||||||
|
|
||||||
- name: Set pg revision for caching
|
- name: Set pg revision for caching
|
||||||
id: pg_ver
|
id: pg_ver
|
||||||
@@ -58,10 +58,27 @@ jobs:
|
|||||||
tmp_install/
|
tmp_install/
|
||||||
key: ${{ runner.os }}-pg-${{ steps.pg_ver.outputs.pg_rev }}
|
key: ${{ runner.os }}-pg-${{ steps.pg_ver.outputs.pg_rev }}
|
||||||
|
|
||||||
|
- name: Set extra env for macOS
|
||||||
|
if: matrix.os == 'macos-latest'
|
||||||
|
run: |
|
||||||
|
echo 'LDFLAGS=-L/usr/local/opt/openssl@3/lib' >> $GITHUB_ENV
|
||||||
|
echo 'CPPFLAGS=-I/usr/local/opt/openssl@3/include' >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build postgres
|
- name: Build postgres
|
||||||
if: steps.cache_pg.outputs.cache-hit != 'true'
|
if: steps.cache_pg.outputs.cache-hit != 'true'
|
||||||
run: make postgres
|
run: make postgres
|
||||||
|
|
||||||
|
# Plain configure output can contain weird errors like 'error: C compiler cannot create executables'
|
||||||
|
# and the real cause will be inside config.log
|
||||||
|
- name: Print configure logs in case of failure
|
||||||
|
if: failure()
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
|
echo '' && echo '=== config.log ===' && echo ''
|
||||||
|
cat tmp_install/build/config.log
|
||||||
|
echo '' && echo '=== configure.log ===' && echo ''
|
||||||
|
cat tmp_install/build/configure.log
|
||||||
|
|
||||||
- name: Cache cargo deps
|
- name: Cache cargo deps
|
||||||
id: cache_cargo
|
id: cache_cargo
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
|
|||||||
Reference in New Issue
Block a user