Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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 browser

See the [CI workflow](.github/workflows/ci.yml) for build/deployment details.

## License

[MIT](LICENSE)