-
Notifications
You must be signed in to change notification settings - Fork 1
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 #12 from partiql/cow-jan
GitHub Action and Encoding logic.
- Loading branch information
Showing
26 changed files
with
204 additions
and
16,835 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,35 @@ | ||
name: pr wasm to website | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install WASM | ||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
|
||
- name: Build WASM | ||
run: make build | ||
|
||
- name: Copy WASM | ||
run: | | ||
# the auto generated gitignore will ignore all the wasm build file. | ||
rm pkg-web/.gitignore | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "PartiQL Team" | ||
git add pkg-web | ||
git commit -m "commit wasm files" | ||
git fetch | ||
git checkout react-website | ||
git checkout main -- pkg-web | ||
git add pkg-web | ||
git commit -m "wasm update" | ||
- name: pr | ||
uses: peter-evans/create-pull-request@v5 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
build: | ||
wasm-pack --version && \ | ||
wasm-pack build --target web --out-dir pkg-web/ && \ | ||
wasm-pack build --target nodejs --out-dir pkg-node/ && \ | ||
npm i | ||
wasm-pack build --target web --out-dir pkg-web/ | ||
|
||
container-build: | ||
docker build . -t partiql-team/partiql-playground | ||
wasm-pack --version && \ | ||
wasm-pack build --target nodejs --out-dir pkg-node/ && \ | ||
docker build -f docker/Dockerfile . -t partiql-team/partiql-playground | ||
|
||
container-run: | ||
docker run -d -p 8000:8000 partiql-team/partiql-playground |
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
File renamed without changes.
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
Oops, something went wrong.