Skip to content

Build JavaScript SDK on old glibc #995

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

Merged
merged 7 commits into from
Sep 7, 2023
Merged
Changes from all commits
Commits
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
59 changes: 55 additions & 4 deletions .github/workflows/javascript-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ name: deploy javascript sdk
on:
workflow_dispatch:
jobs:
build-javascript-sdk:
build-javascript-sdk-macos-windows:
strategy:
matrix:
os: ["ubuntu-22.04", "buildjet-4vcpu-ubuntu-2204-arm", "macos-latest", "windows-latest"]
os:
[
"macos-latest",
"windows-latest",
]
include:
- neon-out-name: "x86_64-unknown-linux-gnu-index.node"
os: "ubuntu-22.04"
Expand Down Expand Up @@ -37,7 +41,54 @@ jobs:
- name: Upload built .node file
uses: actions/upload-artifact@v3
with:
name: node-artifacts
name: node-artifacts
path: pgml-sdks/pgml/javascript/dist/${{ matrix.neon-out-name }}
retention-days: 1
build-javascript-sdk-linux:
strategy:
matrix:
os:
[
"ubuntu-22.04",
"buildjet-4vcpu-ubuntu-2204-arm",
]
include:
- neon-out-name: "x86_64-unknown-linux-gnu-index.node"
os: "ubuntu-22.04"
- neon-out-name: "aarch64-unknown-linux-gnu-index.node"
os: "buildjet-4vcpu-ubuntu-2204-arm"
runs-on: ubuntu-latest
container: ubuntu:16.04
defaults:
run:
working-directory: pgml-sdks/pgml/javascript
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
apt update
apt-get -y install curl
apt-get -y install build-essential
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Validate cargo is working
uses: postgresml/gh-actions-cargo@master
with:
command: version
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Do build
env:
TYPESCRIPT_DECLARATION_FILE: "javascript/index.d.ts"
run: |
npm i
npm run build-release
- name: Upload built .node file
uses: actions/upload-artifact@v3
with:
name: node-artifacts
path: pgml-sdks/pgml/javascript/dist/${{ matrix.neon-out-name }}
retention-days: 1
# publish-javascript-sdk:
Expand Down Expand Up @@ -69,7 +120,7 @@ jobs:
# - name: Generate types declaration
# run: |
# npm i
# npm run build
# npm run build
# rm index.node
# - run: npm ci
# - run: npm publish
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy