From 22ec9e8c069ff99f19ca82dfe53be9f94f155dcb Mon Sep 17 00:00:00 2001 From: Anton Korpusenko Date: Thu, 28 Mar 2024 04:37:14 +0300 Subject: [PATCH] update workflows --- .github/workflows/degradation-test.yml | 26 +------------------ .../workflows/manual-update-benchmarks.yml | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/manual-update-benchmarks.yml diff --git a/.github/workflows/degradation-test.yml b/.github/workflows/degradation-test.yml index 4468eb8653..e5763a2a7f 100644 --- a/.github/workflows/degradation-test.yml +++ b/.github/workflows/degradation-test.yml @@ -4,10 +4,9 @@ on: push: branches: - "**" - workflow_dispatch: # This allows the workflow to be manually triggered jobs: - align: + performance-degradation-check: runs-on: ubuntu-latest steps: - name: Check out code @@ -40,26 +39,3 @@ jobs: make degradation-test env: GO111MODULE: on - - update-benchmarks: # New job for updating the benchmarks - needs: align # This job runs after the 'align' job - if: github.event_name == 'workflow_dispatch' # Runs only when triggered manually - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@v3 - - - name: Setup make - run: sudo apt-get update && sudo apt-get install make - - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: "1.20.x" - - - name: Tidy up dependencies - run: go mod tidy - - - name: Update benchmarks - run: | - make update-benchmarks diff --git a/.github/workflows/manual-update-benchmarks.yml b/.github/workflows/manual-update-benchmarks.yml new file mode 100644 index 0000000000..274499330c --- /dev/null +++ b/.github/workflows/manual-update-benchmarks.yml @@ -0,0 +1,26 @@ +name: Update benchmarks in repo + +on: + workflow_dispatch: + +jobs: + update-benchmarks: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v3 + + - name: Setup make + run: sudo apt-get update && sudo apt-get install make + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: "1.20.x" + + - name: Tidy up dependencies + run: go mod tidy + + - name: Update benchmarks + run: | + make update-benchmarks