Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
AKorpusenko committed Mar 28, 2024
1 parent 60d5757 commit 22ec9e8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 25 deletions.
26 changes: 1 addition & 25 deletions .github/workflows/degradation-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
26 changes: 26 additions & 0 deletions .github/workflows/manual-update-benchmarks.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 22ec9e8

Please sign in to comment.