diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 54e5262..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,70 +0,0 @@ -name: ci - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -env: - CARGO_TERM_COLOR: always - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - - name: lint - run: cargo fmt -- --check - - - name: install wasm-pack - run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - - - run: cargo check - - - run: cargo test - - - run: wasm-pack test --headless --firefox - - - run: wasm-pack test --headless --chrome - - build: - runs-on: ubuntu-latest - needs: test - steps: - - uses: actions/checkout@v2 - - - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - - name: install wasm-pack - run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - - - name: build - run: | - wasm-pack build - cd www - npm install - npm run build - - - name: deploy - uses: peaceiris/actions-gh-pages@v3 - if: github.ref == 'refs/heads/main' - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: www/dist - cname: gpx.thermokar.st diff --git a/README.md b/README.md index 614606f..ae4e4c0 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # gpx-web-utils - - ## quickstart 1. install [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/) diff --git a/src/main.rs b/src/main.rs index 83bc17c..da38833 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,9 +40,9 @@ impl Component for Model { fn view(&self) -> Html { html! { -
@@ -68,7 +68,7 @@ impl Component for Model {
-