This repository has been archived by the owner on Feb 26, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
67 additions
and
195 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 |
---|---|---|
@@ -1,26 +1,45 @@ | ||
# Schema for IDEA: | ||
# $schema: https://schema.golem.cloud/app/golem/1.1.0-rc3/golem.schema.json | ||
# $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-rc3/golem.schema.json | ||
# 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 | ||
componentWasm: build/adapted-components/component_name.wasm | ||
linkedWasm: build/linked-components/component_name_linked.wasm | ||
build: | ||
- command: componentize-py bindings bindings | ||
- command: wit-bindgen tiny-go --rename-package binding --out-dir binding ./wit-generated | ||
sources: | ||
- wit-generated | ||
targets: | ||
- bindings | ||
- command: componentize-py componentize main -o build/components/component_name.wasm | ||
- binding | ||
- command: tinygo build -target=wasi -tags=purego -o build/components/component_name.wasm main.go | ||
mkdirs: | ||
- build/components | ||
sources: | ||
- bindings | ||
- main.py | ||
- 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
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
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
4 changes: 2 additions & 2 deletions
4
...c/component-template/component/golem.yaml → ...nt-template/component/golem.yaml.template
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
2 changes: 1 addition & 1 deletion
2
examples/ts/ts-multi-rpc/component-template/component/main.ts.template
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 |
---|---|---|
|
@@ -8,13 +8,8 @@ interface comp-name-api { | |
} | ||
|
||
world comp-name { | ||
<<<<<<< HEAD | ||
======= | ||
// Golem dependencies | ||
import golem:api/[email protected]; | ||
import golem:rpc/[email protected]; | ||
|
||
>>>>>>> main | ||
// WASI dependencies | ||
import wasi:blobstore/blobstore; | ||
import wasi:blobstore/container; | ||
|
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
4 changes: 2 additions & 2 deletions
4
examples/ts/ts-multi-rpc/src/components/component-one/golem.yaml
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
39 changes: 0 additions & 39 deletions
39
...es/ts/ts-multi-rpc/src/components/component-one/wit/deps/pack-ns_component-three/main.wit
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
...ples/ts/ts-multi-rpc/src/components/component-one/wit/deps/pack-ns_component-two/main.wit
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
4 changes: 2 additions & 2 deletions
4
examples/ts/ts-multi-rpc/src/components/component-three/golem.yaml
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.