Skip to content

refactor some syntax; gain little perf via Rc #80

refactor some syntax; gain little perf via Rc

refactor some syntax; gain little perf via Rc #80

Workflow file for this run

on:
push:
branches:
- main
pull_request: {}
name: Test
jobs:
build_and_test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v1
- run: cargo test --features "use-serde"
- uses: jetli/[email protected]
with:
version: "latest"
- run: (cd wasm-example/ && wasm-pack build -t web)
- name: "compiles to js"
run: (cd wasm-example/ && yarn && yarn vite build --base=./)
- name: Deploy to server
id: deploy
uses: Pendect/[email protected]
env:
DEPLOY_KEY: ${{secrets.rsync_private_key}}
with:
flags: "-avzr --progress"
options: ""
ssh_options: ""
src: "wasm-example/dist/*"
dest: "[email protected]:/web-assets/repo/${{ github.repository }}"
- name: Display status from deploy
run: echo "${{ steps.deploy.outputs.status }}"