bots-garden / capsule

A Capsule application is a runner (or launcher) of wasm functions. Capsule HTTP can serve the functions through HTTP (it’s possible to use Capsule as a simple CLI with Capsule CLI). And soon: NATS and MQTT
https://bots-garden.github.io/capsule/
MIT License
286 stars 8 forks source link

Windows release #224

Open gedw99 opened 1 year ago

gedw99 commented 1 year ago

Is it possible to turn on Windows builds at https://github.com/bots-garden/capsule/blob/main/.github/workflows/release.yml#L15

Tinygo works on windows so should be ok:

https://tinygo.org/getting-started/install/windows/

k33g commented 1 year ago

I will test with the next version of Capsule

Right now I removed the Release GitHub action, and do it manually

gedw99 commented 1 year ago

You can just turn it on in GitHub CI and run tests there. I do it this at with golang projects.

Makefiles run just fine on Mac, windows and Linux inside GitHub Workflows.

I define a “test” makefile target and it runs off the build.

So same makefile you use on your laptop runs in CI too .

If you want an example I can point you to one of mine.

gedw99 commented 1 year ago

You can even build pkg and msi installers this way. All from make file

k33g commented 1 year ago

I need to test it on a real Windows computer because I think I am using specific linux/darwin features that do not exist on Windows

gedw99 commented 1 year ago

I need to test it on a real Windows computer because I think I am using specific linux/darwin features that do not exist on Windows

fair enough - i guess CI is not enough to fix . like coding blind i guess. hetzner robot can spin up your own windows box fast btw. also linux of coure. https://github.com/floshodan/hrobot-go https://medium.com/codex/how-to-install-a-windows-os-for-free-on-a-hetzner-virtual-machine-1f26c8fd4b9e

If you want help with what i mentioned just let me know.