diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 97b361e..0809379 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Main Workflow +name: Main on: push: @@ -16,13 +16,3 @@ jobs: - uses: actions/checkout@v2 - uses: Swatinem/rust-cache@v1 - run: cargo test --workspace --all-features --verbose - - site: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - run: cargo doc --verbose --workspace --all-features --no-deps - - name: Build (Release) - run: "cargo xtask dist --release" - - name: Move doc to build/api - run: mv ./target/doc ./target/release/dist/api diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 5cfce87..af56a99 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,4 +1,4 @@ -name: PR Workflow +name: PR on: pull_request: @@ -8,22 +8,13 @@ env: CARGO_TERM_COLOR: always jobs: - - build: + checks: runs-on: ubuntu-latest - outputs: - size: ${{ steps.build.outputs.size }} steps: - uses: actions/checkout@v2 - uses: Swatinem/rust-cache@v1 - run: cargo test --workspace --all-features --verbose - - name: Build (Release) - id: build - run: "cargo xtask dist --release && echo ::set-output name=size::`cat target/release/dist/app.wasm | wc -c`" - checks: - runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 - run: rustup install --profile default nightly # NOTE: we use nightly here to enable the options error_on_line_overflow and diff --git a/netlify.toml b/netlify.toml index f444604..3d60501 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,10 +1,3 @@ [build] publish = "target/release/dist" - -# All deploys from the Production branch -[context.production] -command = "cargo xtask dist --release && cargo doc --workspace --all-features --no-deps && mv target/doc target/release/dist/api" - -# all deploys generated from a pull/merge request -[context.deploy-preview] command = "cargo xtask dist --release"