Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamazeem/c-to-wasm-to-github-pages
C to WebAssembly to GitHub Pages (Sample)
https://github.com/iamazeem/c-to-wasm-to-github-pages
c demo emscripten github-actions github-pages sample webassembly
Last synced: about 3 hours ago
JSON representation
C to WebAssembly to GitHub Pages (Sample)
- Host: GitHub
- URL: https://github.com/iamazeem/c-to-wasm-to-github-pages
- Owner: iamazeem
- License: mit
- Created: 2024-11-13T12:54:13.000Z (5 days ago)
- Default Branch: main
- Last Pushed: 2024-11-15T08:22:54.000Z (3 days ago)
- Last Synced: 2024-11-15T09:21:18.999Z (3 days ago)
- Topics: c, demo, emscripten, github-actions, github-pages, sample, webassembly
- Language: HTML
- Homepage: https://iamazeem.github.io/c-to-wasm-to-github-pages/
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# c-to-wasm-to-github-pages
[![ci](https://github.com/iamazeem/c-to-wasm-to-github-pages/actions/workflows/ci.yml/badge.svg)](https://github.com/iamazeem/c-to-wasm-to-github-pages/actions/workflows/ci.yml)
This is a minimal example of compiling a small C CLI app to WebAssembly using
[emscripten](https://emscripten.org/index.html) (emsdk) and deploying it to
GitHub Pages.Live GitHub Pages site:
Locally built and tested on Ubuntu 22.04 LTS.
## Demo
![demo](demo.gif)
## Build and run locally
- Set up [emsdk](https://emscripten.org/docs/getting_started/downloads.html)
- Clone this repo
- Run: `emmake make serve-wasm`
- Open URL in browserSee the [CI workflow](.github/workflows/ci.yml) for build/deployment details.
## License
[MIT](LICENSE)