circuits remember their outer control positions when copying, fix Fix… #83
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
name: Rust WASM Page | |
on: | |
push: | |
branches: [ "master" ] | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --target wasm32-unknown-unknown -F wasm --release | |
- name: Install wasm-bindgen | |
run: cargo install wasm-bindgen-cli | |
- name: Bindgen | |
run: wasm-bindgen target/wasm32-unknown-unknown/release/cuprous.wasm --out-dir web/wasm --target web | |
- name: Package artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: web/ | |
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: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 |