Skip to content

Commit

Permalink
try1 (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
levb authored Jul 28, 2024
1 parent 613ec74 commit 045a50f
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,28 +183,17 @@ jobs:

- name: "Download benchmark results from ${{ github.event.pull_request.base.ref }}"
if: inputs.benchmark == 'ON' && github.event.pull_request.base.ref
uses: actions/download-artifact@v2
uses: actions/cache@v4
with:
name: benchmark_results_${{ github.event.pull_request.base.ref }}
path: ./build/prev_bench.log
key: bench_${{ github.event.pull_request.base.ref }}
path: ./build/bench_${{ github.event.pull_request.base.ref }}.log
continue-on-error: true

- name: "Benchmark"
if: inputs.benchmark == 'ON'
working-directory: ./build
run: |
export PATH=../deps/nats-server:../deps/nats-streaming-server:$PATH
export NATS_TEST_SERVER_VERSION="$(nats-server -v)"
flags=""
ctest -L 'bench' --timeout 600 -VV | tee bench.log
#
# ...coming: compare to base branch
- name: "Upload benchmark result for PR ${{ github.event.pull_request.head.ref }}"
if: inputs.benchmark == 'ON' && github.event.pull_request.head.ref
uses: actions/upload-artifact@v4
uses: actions/cache@v4
with:
name: benchmark_results_${{ github.event.pull_request.head.ref }}
key: bench_${{ github.event.pull_request.head.ref }}
path: ./build/bench.log

- name: Extract branch name
Expand All @@ -214,7 +203,18 @@ jobs:

- name: "Upload benchmark result for branch ${{ env.BRANCH_NAME }}"
if: inputs.benchmark == 'ON' && !github.event.pull_request.head.ref
uses: actions/upload-artifact@v4
uses: actions/cache@v4
with:
name: benchmark_results_${{ env.BRANCH_NAME }}
key: bench_${{ env.BRANCH_NAME }}
path: ./build/bench.log

- name: "Benchmark"
if: inputs.benchmark == 'ON'
working-directory: ./build
run: |
export PATH=../deps/nats-server:../deps/nats-streaming-server:$PATH
export NATS_TEST_SERVER_VERSION="$(nats-server -v)"
flags=""
ctest -L 'bench' --timeout 600 -VV | tee bench.log
#
# ...coming: compare to base branch

0 comments on commit 045a50f

Please sign in to comment.