build pglite ts #27
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
name: CI | |
on: | |
workflow_dispatch: | |
release: | |
# this runs CI only when a release is created at first (and not when it is | |
# edited or published) | |
types: [created] | |
push: | |
branches: main | |
pull_request: | |
branches: main | |
jobs: | |
build: | |
name: Build WASM Postgres | |
runs-on: ubuntu-22.04 | |
env: | |
PGVERSION: 16.4 | |
SDK_VERSION: 3.1.65.12bi | |
SDK_ARCHIVE: python3.12-wasm-sdk-Ubuntu-22.04.tar.lz4 | |
SDKROOT: /opt/python-wasm-sdk | |
SYS_PYTHON: /usr/bin/python3 | |
PGROOT: /tmp/pglite | |
DEBUG: true | |
WASI: false | |
PGES6: true | |
contrib: contrib | |
OBJDUMP: true | |
TOTAL_MEMORY: 256MB | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Install python-wasm-sdk for emsdk/wasi+prebuilts | |
working-directory: / | |
run: | | |
sudo apt-get install -y lz4 wget pv bash | |
sudo rm $(which node) $(which npm) | |
echo https://github.com/pygame-web/python-wasm-sdk/releases/download/$SDK_VERSION/$SDK_ARCHIVE | |
curl -sL --retry 5 https://github.com/pygame-web/python-wasm-sdk/releases/download/$SDK_VERSION/$SDK_ARCHIVE | tar xvP --use-compress-program=lz4 | pv -p -l -s 36000 >/dev/null | |
- name: Build postgres WASM via emsdk | |
run: | | |
bash ./cibuild.sh vector contrib node linkweb pglite | |
- name : "Upload to GitHub pages" | |
uses: JamesIves/github-pages-deploy-action@v4.4.1 | |
with: | |
branch: gh-pages | |
folder: /tmp/web | |
- name: Test pglite | |
run: | | |
bash ./cibuild.sh pglite-test | |