-
Notifications
You must be signed in to change notification settings - Fork 9
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 #73 from golemcloud/1.1_updates
1.1 updates
- Loading branch information
Showing
53 changed files
with
471 additions
and
672 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,6 @@ | ||
See the documentation about installing tooling: https://learn.golem.cloud/docs/go-language-guide/setup | ||
|
||
Generate wit and bindings, build and link component: | ||
golem-cli app build | ||
|
||
The `out/linked-components/component_name.wasm` file is ready to be uploaded to Golem Cloud! |
This file was deleted.
Oops, something went wrong.
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,45 @@ | ||
# Schema for IDEA: | ||
# $schema: https://schema.golem.cloud/app/golem/1.1.0/golem.schema.json | ||
# Schema for vscode-yaml | ||
# yaml-language-server: $schema=https://schema.golem.cloud/app/golem/1.1.0/golem.schema.json | ||
|
||
tempDir: build/golem-temp | ||
components: | ||
pack:name: | ||
sourceWit: wit | ||
generatedWit: wit-generated | ||
componentWasm: build/adapted-components/component_name.wasm | ||
linkedWasm: build/linked-components/component_name_linked.wasm | ||
build: | ||
- command: wit-bindgen tiny-go --rename-package binding --out-dir binding ./wit-generated | ||
sources: | ||
- wit-generated | ||
targets: | ||
- binding | ||
- command: tinygo build -target=wasi -tags=purego -o build/components/component_name.wasm main.go | ||
mkdirs: | ||
- build/components | ||
sources: | ||
- component_name | ||
- main.go | ||
targets: | ||
- build/components/component_name.wasm | ||
- command: wasm-tools component embed wit-generated build/components/component_name.wasm --output build/embedded-components/component_name.wasm | ||
mkdirs: | ||
- build/embedded-components | ||
sources: | ||
- wit-generated | ||
- build/components/component_name.wasm | ||
targets: | ||
- build/embedded-components/component_name.wasm | ||
- command: wasm-tools component new build/embedded-components/component_name.wasm -o build/adapted-components/component_name.wasm --adapt adapters/tier1/wasi_snapshot_preview1.wasm | ||
mkdirs: | ||
- build/adapted-components | ||
sources: | ||
- adapters/tier1/wasi_snapshot_preview1.wasm | ||
- build/embedded-components/component_name.wasm | ||
targets: | ||
- build/adapted-components/component_name.wasm | ||
clean: | ||
- build | ||
- binding |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
See the documentation about installing tooling: https://learn.golem.cloud/docs/experimental-languages/js-language-guide/setup | ||
|
||
First time node package install: | ||
golem-cli app install | ||
|
||
Generate wit and bindings, build and link component: | ||
golem-cli app build | ||
|
||
The `out/linked-components/component_name.wasm` file is ready to be uploaded to Golem Cloud! |
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,2 +1,3 @@ | ||
node_modules/ | ||
out/ | ||
wit-generated/ |
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,31 @@ | ||
# Schema for IDEA: | ||
# $schema: https://schema.golem.cloud/app/golem/1.1.0/golem.schema.json | ||
# Schema for vscode-yaml | ||
# yaml-language-server: $schema=https://schema.golem.cloud/app/golem/1.1.0/golem.schema.json | ||
|
||
tempDir: out/golem-temp | ||
components: | ||
pack:name: | ||
sourceWit: wit | ||
generatedWit: wit-generated | ||
componentWasm: out/components/component_name.wasm | ||
linkedWasm: out/linked-components/component_name_linked.wasm | ||
build: | ||
- command: npx rollup --config | ||
sources: | ||
- src | ||
- wit-generated | ||
targets: | ||
- out/main.js | ||
- command: npx jco componentize -w wit-generated -o out/components/component_name.wasm out/main.js | ||
mkdirs: | ||
- out/components | ||
sources: | ||
- out/main.js | ||
targets: | ||
- out/components/component_name.wasm | ||
clean: | ||
- src/generated | ||
customCommands: | ||
install: | ||
- command: npm install |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
bindings | ||
component_name.wasm | ||
wit-generated | ||
__pycache__ |
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,6 @@ | ||
See the documentation about installing tooling: https://learn.golem.cloud/docs/python-language-guide/setup | ||
|
||
Generate wit and bindings, build and link component: | ||
golem-cli app build | ||
|
||
The `build/linked-components/component_name_linked.wasm` file is ready to be uploaded to Golem Cloud! |
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,4 @@ | ||
bindings | ||
component_name.wasm | ||
wit-generated | ||
__pycache__ |
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,26 @@ | ||
# Schema for IDEA: | ||
# $schema: https://schema.golem.cloud/app/golem/1.1.0/golem.schema.json | ||
# Schema for vscode-yaml | ||
# yaml-language-server: $schema=https://schema.golem.cloud/app/golem/1.1.0/golem.schema.json | ||
|
||
tempDir: build/golem-temp | ||
components: | ||
pack:name: | ||
sourceWit: wit | ||
generatedWit: wit-generated | ||
componentWasm: build/components/component_name.wasm | ||
linkedWasm: build/linked-components/component_name_linked.wasm | ||
build: | ||
- command: componentize-py bindings bindings | ||
sources: | ||
- wit-generated | ||
targets: | ||
- bindings | ||
- command: componentize-py componentize main -o build/components/component_name.wasm | ||
mkdirs: | ||
- build/components | ||
sources: | ||
- bindings | ||
- main.py | ||
targets: | ||
- build/components/component_name.wasm |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
See the documentation about installing common tooling: https://learn.golem.cloud/docs/rust-language-guide/setup | ||
|
||
Compile the Rust component with golem-cli: | ||
golem-cli app build | ||
|
||
The result component in target/golem-components/debug/component_name.wasm is ready to be used with Golem! | ||
|
||
For compiling with the release build profile, use: | ||
golem-cli app -b release build | ||
|
||
The result release component in target/golem-components/debug/component_name.wasm is ready to be used with Golem! |
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,38 @@ | ||
# Schema for IDEA: | ||
# $schema: https://schema.golem.cloud/app/golem/1.1.0/golem.schema.json | ||
# Schema for vscode-yaml | ||
# yaml-language-server: $schema=https://schema.golem.cloud/app/golem/1.1.0/golem.schema.json | ||
|
||
tempDir: target/golem-temp | ||
components: | ||
pack:name: | ||
profiles: | ||
debug: | ||
build: | ||
- command: cargo component build | ||
sources: | ||
- src | ||
- wit | ||
targets: | ||
- target/wasm32-wasi/debug/component_name.wasm | ||
sourceWit: wit | ||
generatedWit: wit-generated | ||
componentWasm: target/wasm32-wasi/debug/component_name.wasm | ||
linkedWasm: target/golem-components/debug/component_name.wasm | ||
clean: | ||
- src/bindings.rs | ||
release: | ||
build: | ||
- command: cargo component build --release | ||
sources: | ||
- src | ||
- wit | ||
targets: | ||
- target/wasm32-wasi/release/component_name.wasm | ||
sourceWit: wit | ||
generatedWit: wit-generated | ||
componentWasm: target/wasm32-wasi/release/component_name.wasm | ||
linkedWasm: target/golem-components/release/component_name.wasm | ||
clean: | ||
- src/bindings.rs | ||
defaultProfile: debug |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
See the documentation about installing tooling: https://learn.golem.cloud/docs/experimental-languages/ts-language-guide/setup | ||
|
||
First time node package install: | ||
golem-cli app install | ||
|
||
Generate wit and bindings, build and link component: | ||
golem-cli app build | ||
|
||
The `out/linked-components/component_name.wasm` file is ready to be uploaded to Golem Cloud! |
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,3 +1,4 @@ | ||
node_modules/ | ||
out/ | ||
src/generated/ | ||
wit-generated/ |
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,37 @@ | ||
# Schema for IDEA: | ||
# $schema: https://schema.golem.cloud/app/golem/1.1.0/golem.schema.json | ||
# Schema for vscode-yaml | ||
# yaml-language-server: $schema=https://schema.golem.cloud/app/golem/1.1.0/golem.schema.json | ||
|
||
tempDir: out/golem-temp | ||
components: | ||
pack:name: | ||
sourceWit: wit | ||
generatedWit: wit-generated | ||
componentWasm: out/components/component_name.wasm | ||
linkedWasm: out/linked-components/component_name_linked.wasm | ||
build: | ||
- command: npx jco stubgen wit-generated -o src/binding | ||
sources: | ||
- wit-generated | ||
targets: | ||
- src/binding | ||
- command: npx rollup --config | ||
sources: | ||
- src | ||
- wit-generated | ||
targets: | ||
- out/main.js | ||
- command: npx jco componentize -w wit-generated -o out/components/component_name.wasm out/main.js | ||
mkdirs: | ||
- out/components | ||
sources: | ||
- out/main.js | ||
targets: | ||
- out/components/component_name.wasm | ||
clean: | ||
- src/binding | ||
- wit-generated | ||
customCommands: | ||
install: | ||
- command: npm install |
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.