diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4fda4846..b5368623 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1355,6 +1355,40 @@ jobs: env: GRPC_IMAGE_NAME: ${{ needs.set-image-name.outputs.name }} + rust_wtx_bench: + runs-on: ubuntu-latest + needs: + - set-image-name + - changed + if: fromJSON(needs.changed.outputs.base) || contains(needs.changed.outputs.files, 'rust_wtx_bench/') + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Build rust_wtx_bench + run: ./build.sh rust_wtx_bench + env: + GRPC_IMAGE_NAME: ${{ needs.set-image-name.outputs.name }} + + - name: Benchmark rust_wtx_bench + run: ./bench.sh rust_wtx_bench + env: + GRPC_BENCHMARK_DURATION: 30s + GRPC_IMAGE_NAME: ${{ needs.set-image-name.outputs.name }} + + - if: github.ref == 'refs/heads/master' + name: Log in to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - if: github.ref == 'refs/heads/master' + name: If on master push image to GHCR + run: docker push $GRPC_IMAGE_NAME:rust_wtx_bench-complex_proto + env: + GRPC_IMAGE_NAME: ${{ needs.set-image-name.outputs.name }} scala_akka_bench: runs-on: ubuntu-latest