Skip to content

Commit 8b34f0d

Browse files
committed
Fix release workflow for Zero-Dependency architecture
1 parent 27edc5b commit 8b34f0d

1 file changed

Lines changed: 1 addition & 24 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,8 @@ jobs:
2020
env:
2121
PG_CONFIG: /usr/lib/postgresql/${{ matrix.pg_version }}/bin/pg_config
2222

23-
2423
steps:
2524
- uses: actions/checkout@v3
26-
with:
27-
submodules: true
28-
lfs: false
29-
30-
- name: Install dependencies
31-
run: |
32-
sudo apt-get update
33-
sudo apt-get install -y build-essential libprotobuf-c-dev protobuf-c-compiler
3425

3526
- name: Setup PostgreSQL ${{ matrix.pg_version }}
3627
run: |
@@ -64,8 +55,6 @@ jobs:
6455
runs-on: ubuntu-latest
6556
steps:
6657
- uses: actions/checkout@v3
67-
with:
68-
submodules: recursive
6958

7059
- name: Set Version
7160
run: |
@@ -75,18 +64,13 @@ jobs:
7564
- name: Package Source Bundle for PGXN
7665
run: |
7766
mkdir -p dist/pgproto-${{ env.VERSION }}
78-
# Copy source files
7967
cp -R src/ dist/pgproto-${{ env.VERSION }}/
8068
cp -R sql/ dist/pgproto-${{ env.VERSION }}/
8169
cp Makefile dist/pgproto-${{ env.VERSION }}/
8270
cp pgproto.control dist/pgproto-${{ env.VERSION }}/
8371
cp META.json dist/pgproto-${{ env.VERSION }}/
8472
cp LICENSE dist/pgproto-${{ env.VERSION }}/
8573
cp README.md dist/pgproto-${{ env.VERSION }}/
86-
cp -R third_party/ dist/pgproto-${{ env.VERSION }}/
87-
# Debug: check if files are there
88-
ls -la dist/pgproto-${{ env.VERSION }}/third_party/protobuf/upb/reflection/def_pool.h || echo "FILE NOT FOUND"
89-
# Zip it
9074
cd dist && zip -r ../pgproto-${{ env.VERSION }}.zip pgproto-${{ env.VERSION }}/
9175
9276
- name: Upload Source Release Asset
@@ -122,10 +106,8 @@ jobs:
122106
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
123107
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
124108
sudo apt-get update
125-
sudo apt-get install -y postgresql-server-dev-18 libprotobuf-c-dev protobuf-c-compiler python3-pip
109+
sudo apt-get install -y postgresql-server-dev-18 python3-pip
126110
sudo pip3 install pgxnclient
127-
- name: List files
128-
run: ls -la
129111
- name: Test PGXN Install
130112
run: |
131113
sudo pgxn install ./pgproto-${{ env.VERSION }}.zip
@@ -135,8 +117,6 @@ jobs:
135117
needs: build-binaries
136118
steps:
137119
- uses: actions/checkout@v3
138-
with:
139-
submodules: true
140120
- name: Log in to GHCR
141121
uses: docker/login-action@v2
142122
with:
@@ -161,8 +141,6 @@ jobs:
161141
runs-on: windows-latest
162142
steps:
163143
- uses: actions/checkout@v3
164-
with:
165-
submodules: true
166144
- name: Setup MSYS2
167145
uses: msys2/setup-msys2@v2
168146
with:
@@ -171,7 +149,6 @@ jobs:
171149
make
172150
zip
173151
mingw-w64-x86_64-gcc
174-
mingw-w64-x86_64-protobuf-c
175152
mingw-w64-x86_64-postgresql
176153
- name: Build
177154
run: |

0 commit comments

Comments
 (0)