diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f576664..f64ee47 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,12 +13,12 @@ jobs: with: sqlc-version: '1.24.0' - uses: actions/setup-node@v4 - - run: wget https://github.com/bytecodealliance/javy/releases/download/v1.2.0/javy-x86_64-linux-v1.2.0.gz - - run: gzip -d javy-x86_64-linux-v1.2.0.gz - - run: chmod +x javy-x86_64-linux-v1.2.0 + - run: wget https://github.com/bytecodealliance/javy/releases/download/v7.0.1/javy-x86_64-linux-v7.0.1.gz + - run: gzip -d javy-x86_64-linux-v7.0.1.gz + - run: chmod +x javy-x86_64-linux-v7.0.1 - run: npm install - run: npx tsc --noEmit - run: npx esbuild --bundle src/app.ts --tree-shaking=true --format=esm --target=es2020 --outfile=out.js - - run: ./javy-x86_64-linux-v1.2.0 compile out.js -o examples/plugin.wasm + - run: ./javy-x86_64-linux-v7.0.1 compile out.js -o examples/plugin.wasm - run: sqlc -f sqlc.dev.yaml diff working-directory: examples \ No newline at end of file diff --git a/Makefile b/Makefile index 8ab6195..6a50cd4 100644 --- a/Makefile +++ b/Makefile @@ -3,9 +3,9 @@ generate: examples/plugin.wasm examples/sqlc.dev.yaml cd examples && sqlc-dev -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 - ./javy compile out.js -o examples/plugin.wasm + ./javy build out.js --codegen source=omitted -o examples/plugin.wasm out.js: src/app.ts $(wildcard src/drivers/*.ts) src/gen/plugin/codegen_pb.ts npx tsc --noEmit