Skip to content

Commit

Permalink
Pages config
Browse files Browse the repository at this point in the history
  • Loading branch information
mishushakov committed Feb 26, 2024
1 parent decbdc4 commit 300a791
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build docs
on:
push:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Build Docs
run: cargo doc
- name: Add redirect
run: echo '<meta http-equiv="refresh" content="0;url=rusty_hermes/index.html">' > target/doc/index.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: target/doc
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,35 @@

[Hermes](https://hermesengine.dev) JavaScript engine wrapper for Rust programming language.

> Note: Currently only supports on Linux and macOS. Adding Windows support should be trivial.
Crates:

- [`rusty_hermes`] - High-level wrapper for libhermesabi-sys (WIP).
- [`rusty_hermes`](./) - High-level wrapper for libhermesabi-sys (WIP).
- [`libhermesabi-sys`](./libhermesabi-sys) - Hermes C ABI bindings using bindgen.

Install the required dependencies:

**Ubuntu**

```
apt install cmake git ninja-build libicu-dev python zip libreadline-dev
```

**Arch**

```
pacman -S cmake git ninja icu python zip readline
```

**macOS via Homebrew**

```
brew install cmake git ninja
```

Add to your **Cargo.toml**:

```
rusty_hermes = { git = "https://github.com/rust-hermes/rusty_hermes", branch = "main" }
```

0 comments on commit 300a791

Please sign in to comment.