Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ jobs:
generate_release_notes: true
make_latest: true
fail_on_unmatched_files: true
overwrite_files: false
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ out.js
*.wasm
javy
tests
/javy-x86_64-linux-v1.2.0
/javy-x86_64-linux-v1.2.0.gz
/javy-x86_64-linux-*
/bin/javy
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
generate: examples/plugin.wasm examples/sqlc.dev.yaml
cd examples && sqlc -f sqlc.dev.yaml generate

# https://github.com/bytecodealliance/javy/releases/tag/v1.2.0
# https://github.com/bytecodealliance/javy/releases/tag/v7.0.1
examples/plugin.wasm: out.js bin/javy
./bin/javy compile out.js -o examples/plugin.wasm
./bin/javy build out.js -C source=omitted -o examples/plugin.wasm
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does -C have a more verbose name we can use?


out.js: src/app.ts $(wildcard src/drivers/*.ts) src/gen/plugin/codegen_pb.ts node_modules
npx tsc --noEmit
Expand All @@ -18,12 +18,12 @@ node_modules: package.json package-lock.json
npm install

bin/javy:
wget https://github.com/bytecodealliance/javy/releases/download/v1.2.0/javy-x86_64-linux-v1.2.0.gz
gunzip --force javy-x86_64-linux-v1.2.0.gz
install -Dpv javy-x86_64-linux-v1.2.0 bin/javy
wget https://github.com/bytecodealliance/javy/releases/download/v7.0.1/javy-x86_64-linux-v7.0.1.gz
gunzip --force javy-x86_64-linux-v7.0.1.gz
install -Dpv javy-x86_64-linux-v7.0.1 bin/javy

clean:
$(RM) -r out.js
$(RM) -r examples/plugin.wasm
$(RM) -r node_modules
$(RM) -r bin/javy javy-x86_64-linux-v1.2.0 javy-x86_64-linux-v1.2.0.gz
$(RM) -r bin/javy javy-x86_64-linux-v7.0.1 javy-x86_64-linux-v7.0.1.gz