Skip to content

15 latest (for ref only, NOT for merge) #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 63 commits into
base: 16-latest
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
d4c0438
Add deparse
tomquist Mar 25, 2023
d22bece
readme, addon
pyramation Feb 21, 2024
c8f42ee
readme
pyramation Feb 21, 2024
dd3398f
readme
pyramation Feb 21, 2024
b22906b
udpate version
pyramation Feb 21, 2024
f351a42
clean
pyramation Feb 21, 2024
d0f0a64
Update README.md
pyramation Feb 21, 2024
ec882d2
Merge pull request #51 from launchql/wasm/origin-branch
pyramation May 1, 2024
3e8966b
add updates from 16-latest re building on windows, upgrade node gyp
pyramation May 2, 2024
a9f5ca8
remove build step from workflow
pyramation May 2, 2024
daf4051
Merge pull request #53 from launchql/wasm/15-latest
pyramation May 2, 2024
ef3edbb
workflows
pyramation May 2, 2024
9c432ce
Merge pull request #59 from launchql/wasm/15-latest
pyramation May 2, 2024
f07f04e
pkg
pyramation May 2, 2024
b94a20e
Merge pull request #60 from launchql/wasm/15-latest
pyramation May 2, 2024
16cbb4c
Merge branch 'tom/deparse-pr' into tom/deparse
pyramation May 2, 2024
f87e729
readme
pyramation May 2, 2024
9b6a671
Merge pull request #32 from tomquist/tom/deparse
pyramation May 2, 2024
ed041ac
use protobufjs with modifications for [json_name]
pyramation May 2, 2024
1355247
lock and proto
pyramation May 2, 2024
fa16a64
package up protogen
pyramation May 3, 2024
81e9370
update workflows
pyramation May 23, 2024
77e6b12
workflows
pyramation May 23, 2024
966d2cd
build
pyramation May 23, 2024
0906409
15.1.1-rc.0
May 23, 2024
3700cc7
add types
pyramation May 28, 2024
0e60754
15.1.1-rc.1
May 28, 2024
34987b4
windows not supported on PG15
pyramation May 28, 2024
243f82d
Merge branch '15-latest' of github.com:launchql/libpg-query-node into…
pyramation May 28, 2024
8538d13
15.1.1-rc.2
May 28, 2024
ced8827
build for PG 15
pyramation May 28, 2024
0f25677
15.1.1-rc.3
May 28, 2024
53c5d84
remove windows
pyramation May 28, 2024
4addf25
Merge branch '15-latest' of github.com:launchql/libpg-query-node-15-l…
pyramation May 28, 2024
b76e737
15.1.1-rc.4
May 28, 2024
35fd443
include @pgsql/types
pyramation May 29, 2024
4e2ce6e
workflows
pyramation May 29, 2024
407b502
workflows
pyramation May 29, 2024
26498fc
dry run workflow
pyramation May 29, 2024
9e4627d
minor version
pyramation May 29, 2024
e255b3f
export all types
pyramation May 29, 2024
1f95e07
update version to proper @pgsql/types 🚀
pyramation May 30, 2024
5ea5ded
Merge branch 'tom/deparse-pr' into 15-deparse
pyramation May 30, 2024
33b698f
use 15-latest for protogen
pyramation Jun 25, 2024
d22d9ff
feat: deparse wasm
gregnr Jun 25, 2024
1f2afbf
package.json
pyramation Jun 25, 2024
e327718
Merge pull request #74 from gregnr/feat/deparse-wasm
pyramation Jun 25, 2024
1bcb7e9
no windows workflow
pyramation Jun 25, 2024
ea3b57d
fix: proto file for deparsing
gregnr Jun 27, 2024
d74df8b
Merge pull request #77 from gregnr/fix/proto-for-deparse
pyramation Jun 27, 2024
a3da0fc
add insert test
pyramation Jun 27, 2024
2c07e1f
pkg
pyramation Jun 27, 2024
9891da7
fix: missing proto.js in package
gregnr Jun 27, 2024
6004c75
Merge pull request #79 from gregnr/fix/missing-proto-js
pyramation Jun 28, 2024
07a6115
pkg bump
pyramation Jun 28, 2024
3ca2f44
node-gyp uploads and AWS CLI config
pyramation Sep 24, 2024
95a4a03
aws pre-installed
pyramation Sep 24, 2024
faa11b2
add aws-sdk
pyramation Sep 24, 2024
4cb1680
update matrix in Github Action
pyramation Sep 24, 2024
85e453e
Merge pull request #83 from launchql/feat/upload-node-gyp-s3
pyramation Sep 24, 2024
a5616ba
Merge pull request #72 from launchql/15-deparse
pyramation Sep 24, 2024
ad0da43
workflow
pyramation Sep 24, 2024
c713c41
Merge pull request #84 from launchql/feat/upload-node-gyp-s3
pyramation Sep 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 98 additions & 18 deletions .github/workflows/build-dry-run-no-win.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
name: Build Dry Run No Windows 🏗
name: Build and Publish Dry Run libpq-query no windows 🏗

on:
workflow_dispatch:

jobs:
build-matrix:
make-release-candidate:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository 📥
uses: actions/checkout@v4

- name: Setup Node.js 🌐
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'yarn'

build-artifacts:
needs: make-release-candidate
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -19,33 +32,100 @@ jobs:
node-version: '20.x'
cache: 'yarn'

- name: Install Dependencies 🧶
- name: Install and Build 📦
run: |
yarn
yarn binary:build

- name: Save Artifacts 🏗
- name: Save Artifacts For Supabase CDN 🏗
uses: actions/upload-artifact@v4
with:
name: build-artifact-${{ matrix.os }}
name: build-supabase-artifact-${{ matrix.os }}
path: './build/stage/libpg-query-node/'

- name: Save Artifacts For NPM 🏗
uses: actions/upload-artifact@v4
with:
name: build-npm-artifact-${{ matrix.os }}
path: |
${{ matrix.os == 'macos-latest' && './libpg_query/osx/libpg_query.a' ||
matrix.os == 'ubuntu-latest' && './libpg_query/linux/libpg_query.a'
}}
matrix.os == 'ubuntu-latest' && './libpg_query/linux/libpg_query.a' }}

build-wasm:
needs: build-artifacts
runs-on: ubuntu-latest
steps:
- name: Checkout Repository 📥
uses: actions/checkout@v4

- name: Setup Node.js 🌐
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'yarn'

- name: Install and Build 🚀
run: |
yarn

- name: Install Emscripten ✍🏻
run: |
sudo apt-get update
sudo apt-get install cmake python3 python3-pip
git clone --branch 3.1.59 --depth 1 https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install 3.1.59
./emsdk activate 3.1.59
source ./emsdk_env.sh

- name: Build with Emscripten 🏗
run: |
source ./emsdk/emsdk_env.sh
emmake make
emmake make build

- name: Archive production artifacts 🏛
uses: actions/upload-artifact@v4
with:
name: wasm-artifacts
path: wasm

prepare-and-publish:
needs: build-matrix # Corrected the needs to reflect the actual job name
needs: build-wasm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- name: Checkout Repository 📥
uses: actions/checkout@v4

- name: Get Artifacts 📚
uses: actions/download-artifact@v4
with:
path: downloaded-artifacts
- name: Prepare artifacts

- name: Prepare artifacts 📦
run: |
# move or prepare artifacts
find .
# - name: Publish to NPM
# run: |
# # Assuming you've set up your package.json and .npmrc correctly
# npm publish
# env:
find ./downloaded-artifacts/
cp ./downloaded-artifacts/build-npm-artifact-ubuntu-latest/libpg_query.a ./libpg_query/linux/libpg_query.a
cp ./downloaded-artifacts/build-npm-artifact-macos-latest/libpg_query.a ./libpg_query/osx/libpg_query.a
cp ./downloaded-artifacts/wasm-artifacts/libpg-query.js ./wasm/libpg-query.js
cp ./downloaded-artifacts/wasm-artifacts/libpg-query.wasm ./wasm/libpg-query.wasm
rm -rf ./downloaded-artifacts

# - name: Setup AWS CLI
# run: sudo apt-get update && sudo apt-get install awscli -y

# - name: Configure AWS Credentials
# uses: aws-actions/configure-aws-credentials@v4
# with:
# aws-access-key-id: ${{ secrets.SUPABASE_AWS_KEY }}
# aws-secret-access-key: ${{ secrets.SUPABASE_AWS_SECRET }}
# aws-region: us-east-1

# - name: List Bucket Contents
# run: aws s3 ls s3://supabase-public-artifacts-bucket/

# - name: Publish to NPM 🚀
# run: |
# npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_API_KEY}}
26 changes: 17 additions & 9 deletions .github/workflows/build-dry-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,36 @@ jobs:
run: |
yarn

- name: Save Artifacts 🏗
- name: Save Artifacts For NPM 🏗
uses: actions/upload-artifact@v4
with:
name: build-artifact-${{ matrix.os }}
path: |
${{ matrix.os == 'macos-latest' && './libpg_query/osx/libpg_query.a' ||
matrix.os == 'ubuntu-latest' && './libpg_query/linux/libpg_query.a' ||
matrix.os == 'windows-latest' && './libpg_query/windows/queryparser.lib' }}
matrix.os == 'windows-latest' && './libpg_query/windows/pg_query.lib' }}

prepare-and-publish:
needs: build-matrix # Corrected the needs to reflect the actual job name
needs: build-matrix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- name: Checkout Repository 📥
uses: actions/checkout@v4

- name: Get Artifacts 📚
uses: actions/download-artifact@v4
with:
path: downloaded-artifacts
- name: Prepare artifacts

- name: Prepare artifacts 📦
run: |
# move or prepare artifacts
find .
# - name: Publish to NPM
cp ./downloaded-artifacts/build-artifact-windows-latest/pg_query.lib ./libpg_query/windows/queryparser.lib
cp ./downloaded-artifacts/build-artifact-ubuntu-latest/libpg_query.a ./libpg_query/linux/libpg_query.a
cp ./downloaded-artifacts/build-artifact-macos-latest/libpg_query.a ./libpg_query/osx/libpg_query.a
rm -rf ./downloaded-artifacts
find ./libpg_query

# - name: Publish to NPM 🚀
# run: |
# # Assuming you've set up your package.json and .npmrc correctly
# npm publish
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/build-supabase-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build Supabase Artifacts 🏗

on:
workflow_dispatch:

jobs:
build-matrix:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- name: Checkout Repository 📥
uses: actions/checkout@v4

- name: Setup Node.js 🌐
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'yarn'

- name: Configure AWS CLI for Supabase
env:
AWS_ACCESS_KEY_ID: ${{ secrets.SUPABASE_AWS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SUPABASE_AWS_SECRET }}
AWS_EC2_METADATA_DISABLED: true
run: |
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID --profile supabase-dev
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY --profile supabase-dev
aws configure set region us-east-1 --profile supabase-dev

- name: Install and Build Dependencies 🧶
run: |
yarn
yarn binary:build

- name: Publish binary
env:
AWS_ACCESS_KEY_ID: ${{ secrets.SUPABASE_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SUPABASE_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
run: yarn binary:publish

31 changes: 0 additions & 31 deletions .github/workflows/build-wasm-linux.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build Wasm 🛠

on:
workflow_dispatch:

jobs:
build-wasm:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository 📥
uses: actions/checkout@v4

- name: Setup Node.js 🌐
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'yarn'

- name: Install and Build 🚀
run: |
yarn

- name: Install Emscripten ✍🏻
run: |
sudo apt-get update
sudo apt-get install cmake python3 python3-pip
git clone --branch 3.1.59 --depth 1 https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install 3.1.59
./emsdk activate 3.1.59
source ./emsdk_env.sh

- name: Build with Emscripten 🏗
run: |
source ./emsdk/emsdk_env.sh
emmake make
emmake make build

- name: Archive production artifacts 🏛
uses: actions/upload-artifact@v4
with:
name: compiled-files
path: wasm
Loading