diff --git a/.github/workflows/iroha2-dev-pr-unstable.yml b/.github/workflows/iroha2-dev-pr-unstable.yml index 54454633d7d..911b9b7476a 100644 --- a/.github/workflows/iroha2-dev-pr-unstable.yml +++ b/.github/workflows/iroha2-dev-pr-unstable.yml @@ -25,4 +25,4 @@ jobs: - uses: actions/checkout@v2 - uses: Swatinem/rust-cache@v1 - name: Run tests - run: cargo test -p iroha_client --tests unstable_network --quiet + run: mold --run cargo test -p iroha_client --tests unstable_network --quiet diff --git a/.github/workflows/iroha2-dev-pr-wasm.yaml b/.github/workflows/iroha2-dev-pr-wasm.yaml index 7681cce3d04..add1168d143 100644 --- a/.github/workflows/iroha2-dev-pr-wasm.yaml +++ b/.github/workflows/iroha2-dev-pr-wasm.yaml @@ -43,4 +43,4 @@ jobs: # Tests - name: Run tests - run: mold -run cargo test --tests --quiet --no-fail-fast + run: mold --run cargo test --tests --quiet --no-fail-fast diff --git a/.github/workflows/iroha2-dev-pr.yml b/.github/workflows/iroha2-dev-pr.yml index 57409efe7c2..01daea11130 100644 --- a/.github/workflows/iroha2-dev-pr.yml +++ b/.github/workflows/iroha2-dev-pr.yml @@ -14,7 +14,6 @@ on: env: CARGO_TERM_COLOR: always - RUSTC_BOOTSTRAP: 1 jobs: test: @@ -35,7 +34,7 @@ jobs: working-directory: actor if: always() - name: Verify wasm smartcontracts are able to build - run: mold -run cargo build --target wasm32-unknown-unknown --quiet + run: mold --run cargo build --target wasm32-unknown-unknown --quiet working-directory: wasm env: RUSTC_BOOTSTRAP: 1 @@ -62,7 +61,7 @@ jobs: - uses: Swatinem/rust-cache@v1 - name: Run tests run: | - mold --run cargo +nightly-2022-04-20 test \ + mold --run cargo test \ --quiet --workspace --no-fail-fast -- \ --skip unstable_network --skip ui --test-threads 3 env: @@ -73,7 +72,7 @@ jobs: grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info if: always() - name: Upload coverage to codecov.io - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v2 if: always() with: file: lcov.info diff --git a/.github/workflows/iroha2-dev.yml b/.github/workflows/iroha2-dev.yml index 17ee0508766..8826defeb14 100644 --- a/.github/workflows/iroha2-dev.yml +++ b/.github/workflows/iroha2-dev.yml @@ -7,9 +7,9 @@ on: env: CARGO_TERM_COLOR: always - # Note jobs in this workflow are run on `push` meaning that there's - # no point in burning our AWS self-hosted runners' time. Hence - # `ubuntu-latest` and not `[self-hosted, Linux]`. +# Note jobs in this workflow are run on `push` meaning that there's +# no point in burning our AWS self-hosted runners' time. Hence +# `ubuntu-latest` and not `[self-hosted, Linux]`. jobs: deploy: runs-on: ubuntu-latest @@ -28,7 +28,7 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build and push Iroha Docker image + - name: Build and push docker image uses: docker/build-push-action@v2 with: context: . @@ -37,7 +37,7 @@ jobs: build-args: | TARGET_DIR=release PROFILE=--release - - name: Build and push Iroha client cli Docker image + - name: Build and push docker image (iroha_client_cli) uses: docker/build-push-action@v2 with: context: . @@ -47,7 +47,7 @@ jobs: TARGET_DIR=release PROFILE=--release BIN=iroha_client_cli - - name: Build and push Iroha Crypto CLI Docker image + - name: Build and push docker image (kagami) uses: docker/build-push-action@v2 with: context: . @@ -58,7 +58,7 @@ jobs: PROFILE=--release BIN=kagami - - name: Build and push load-rs:dev docker image + - name: Build and push docker image (load-rs:dev) run: | sleep 10s echo "wait to other workflow" @@ -97,7 +97,7 @@ jobs: - uses: actions/checkout@v2 - uses: Swatinem/rust-cache@v1 - name: Build - run: cargo build --release --verbose + run: mold --run cargo build --release --verbose - name: Archive build uses: actions/upload-artifact@v2 with: @@ -116,7 +116,7 @@ jobs: - name: Run schema generation run: | mkdir -p target/schema - cargo run --bin kagami -- schema > target/schema/schema.json + cargo run --bin kagami -- schema >target/schema/schema.json - name: Upload schema uses: actions/upload-artifact@v2 with: @@ -139,7 +139,7 @@ jobs: - name: Run release tests and save telemetry env: TELEMETRY_FILE: ../target/telemetry/release.json.lz4 - run: cargo test -p iroha_client --all-features --release -- unstable_network || true + run: mold --run cargo test -p iroha_client --all-features --release -- unstable_network || true - name: Install script dependencies run: | apt-get update @@ -187,7 +187,7 @@ jobs: - uses: Swatinem/rust-cache@v1 - name: Run tests run: | - mold --run cargo +nightly-2022-04-20 test \ + mold --run cargo test \ --quiet --workspace --no-fail-fast -- \ --skip unstable_network --skip ui --test-threads 3 env: @@ -198,7 +198,7 @@ jobs: grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info if: always() - name: Upload coverage to codecov.io - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v2 if: always() with: file: lcov.info diff --git a/.github/workflows/iroha2-pr.yml b/.github/workflows/iroha2-pr.yml index cc971bfd40f..46c74f49d63 100644 --- a/.github/workflows/iroha2-pr.yml +++ b/.github/workflows/iroha2-pr.yml @@ -16,10 +16,10 @@ jobs: - uses: actions/checkout@v2 - uses: Swatinem/rust-cache@v1 - name: Build Client CLI - run: mold -run cargo build + run: mold --run cargo build working-directory: client_cli - name: Build Iroha Peer - run: mold -run cargo build + run: mold --run cargo build working-directory: cli - name: Mark both binaries as executable run: | @@ -52,7 +52,7 @@ jobs: id: buildx uses: docker/setup-buildx-action@v1 - name: Build Client CLI - run: mold -run cargo build + run: mold --run cargo build working-directory: client_cli - name: Build and push Iroha Docker image uses: docker/build-push-action@v2 @@ -79,7 +79,7 @@ jobs: - uses: actions/checkout@v2 - uses: Swatinem/rust-cache@v1 - name: Run benchmarks - run: mold -run cargo bench --workspace --quiet + run: mold --run cargo bench --workspace --quiet # ------------------------------ SDK tests go here ------------------------ @@ -103,10 +103,10 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- - name: Build Iroha Peer - run: mold -run cargo build + run: mold --run cargo build working-directory: cli - name: Build Client CLI - run: mold -run cargo build + run: mold --run cargo build working-directory: client_cli - name: Mark both binaries as executable run: | @@ -135,4 +135,4 @@ jobs: steps: - uses: actions/checkout@v2 - name: Run long tests - run: cargo test --workspace --no-fail-fast -- --ignored --test-threads=1 long + run: mold --run cargo test --workspace --no-fail-fast -- --ignored --test-threads=1 long diff --git a/.github/workflows/iroha2.yml b/.github/workflows/iroha2.yml index 1e29e80f613..efd4e9901ea 100644 --- a/.github/workflows/iroha2.yml +++ b/.github/workflows/iroha2.yml @@ -6,13 +6,8 @@ on: env: CARGO_TERM_COLOR: always - RUSTC_BOOTSTRAP: 1 jobs: - # Coverage is both in PR and in push pipelines so that: - # 1. PR can get coverage report from bot. - # 2. Coverage bot can have results from - # `iroha2-dev` to report coverage changes. coverage: runs-on: ubuntu-latest container: @@ -22,7 +17,7 @@ jobs: - uses: Swatinem/rust-cache@v1 - name: Run tests run: | - mold --run cargo +nightly-2022-04-20 test \ + mold --run cargo test \ --quiet --workspace --no-fail-fast -- \ --skip unstable_network --skip ui --test-threads 3 env: @@ -33,7 +28,7 @@ jobs: grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info if: always() - name: Upload coverage to codecov.io - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v2 if: always() with: file: lcov.info @@ -56,7 +51,7 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build and push Iroha Docker image + - name: Build and push docker image uses: docker/build-push-action@v2 with: context: . @@ -65,7 +60,7 @@ jobs: build-args: | TARGET_DIR=release PROFILE=--release - - name: Build and push Iroha client cli Docker image + - name: Build and push docker image (iroha_client_cli) uses: docker/build-push-action@v2 with: context: . @@ -75,7 +70,7 @@ jobs: TARGET_DIR=release PROFILE=--release BIN=iroha_client_cli - - name: Build and push Iroha Crypto CLI Docker image + - name: Build and push docker image (kagami) uses: docker/build-push-action@v2 with: context: . @@ -86,7 +81,7 @@ jobs: PROFILE=--release BIN=kagami - - name: Build and push load-rs:release docker image + - name: Build and push docker image (load-rs:release) run: | sleep 10s echo "wait to finish other workflow"