From e4b9ffa9c324692ddd842dcd82da0756ec452439 Mon Sep 17 00:00:00 2001 From: Deda Date: Sun, 25 Feb 2024 13:17:34 +0100 Subject: [PATCH] Add step to cleanup afte benchmarks and code analysis --- .github/workflows/testflow.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testflow.yml b/.github/workflows/testflow.yml index c8529bbf9..81327bceb 100644 --- a/.github/workflows/testflow.yml +++ b/.github/workflows/testflow.yml @@ -332,12 +332,13 @@ jobs: release_benchmarks: name: "Release benchmarks" + # Add Gen7 runs-on: [self-hosted, magneto] env: THREADS: 24 MEMGRAPH_ENTERPRISE_LICENSE: ${{ secrets.MEMGRAPH_ENTERPRISE_LICENSE }} MEMGRAPH_ORGANIZATION_NAME: ${{ secrets.MEMGRAPH_ORGANIZATION_NAME }} - OS: ubuntu-20.04 + OS: debian-11 TOOLCHAIN: v5 ARCH: amd BUILD_TYPE: Release @@ -429,6 +430,15 @@ jobs: --github-run-number "${{ github.run_number }}" \ --head-branch-name "${{ env.BRANCH_NAME }}" + - name: Stop mgbuild container + if: always() + run: | + ./release/package/run2.sh \ + --toolchain $TOOLCHAIN \ + --os $OS \ + --arch $ARCH \ + stop --remove + code_analysis: name: "Code analysis" runs-on: [self-hosted, gamora] @@ -539,3 +549,12 @@ jobs: --enterprise-license $MEMGRAPH_ENTERPRISE_LICENSE \ --organization-name $MEMGRAPH_ORGANIZATION_NAME \ test-memgraph clang-tidy --base-branch "${{ env.BASE_BRANCH }}" + + - name: Stop mgbuild container + if: always() + run: | + ./release/package/run2.sh \ + --toolchain $TOOLCHAIN \ + --os $OS \ + --arch $ARCH \ + stop --remove