-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from launchql/15-deparse
15 deparse
- Loading branch information
Showing
23 changed files
with
102,696 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
name: Build and Publish Dry Run libpq-query no windows 🏗 | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
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: | ||
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: Install and Build 📦 | ||
run: | | ||
yarn | ||
yarn binary:build | ||
- name: Save Artifacts For Supabase CDN 🏗 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
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' }} | ||
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-wasm | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository 📥 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get Artifacts 📚 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: downloaded-artifacts | ||
|
||
- name: Prepare artifacts 📦 | ||
run: | | ||
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}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.