Skip to content

Commit

Permalink
2 steps bench
Browse files Browse the repository at this point in the history
  • Loading branch information
alvicsam committed Nov 5, 2024
1 parent e6d8ff8 commit 9373264
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4

- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.GH_APP_SAS_APP_ID }}
private-key: ${{ secrets.GH_APP_SAS_APP_KEY }}

- run: apt-get update && apt-get install -y git

- name: benchmarks
run: |
yarn --immutable
Expand All @@ -45,6 +37,27 @@ jobs:
name: benchmarks
path: ./artifacts

benchmark-publish:
name: benchmark publish
runs-on: ubuntu-latest
needs: [benchmark]
environment: master_n_tags
steps:
- name: Checkout sources
uses: actions/checkout@v4

- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.GH_APP_SAS_APP_ID }}
private-key: ${{ secrets.GH_APP_SAS_APP_KEY }}

- name: download artifacts
uses: actions/download-artifact@v3
with:
name: benchmarks
path: ./artifacts

- name: Modify benches result for benhcmark action
run: ./scripts/ci/benchmarks/generate_benchmark_result.sh artifacts/benchmarks.txt > artifacts/benchmarks.json

Expand Down

0 comments on commit 9373264

Please sign in to comment.