Merge tag 'v3.2.1' into docs #993
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: push | |
name: Continuous Benchmarks | |
jobs: | |
build: | |
runs-on: macOS-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/workflows/git-identity | |
- uses: ./.github/workflows/custom/before-install | |
if: hashFiles('.github/workflows/custom/before-install/action.yml') != '' | |
- uses: ./.github/workflows/install | |
with: | |
r-version: ${{ matrix.config.r }} | |
cache-version: cb-1 | |
token: ${{ secrets.GITHUB_TOKEN }} | |
extra-packages: r-lib/bench | |
needs: check | |
- uses: ./.github/workflows/custom/after-install | |
if: hashFiles('.github/workflows/custom/after-install/action.yml') != '' | |
- name: Run benchmarks | |
run: | | |
success <- FALSE | |
for (i in 1:100) { | |
message("Attempt ", i) | |
bench::cb_fetch() | |
bench::cb_run() | |
tryCatch( | |
{ | |
bench::cb_push() | |
success <- TRUE | |
break | |
}, | |
error = identity | |
) | |
system("git push . :refs/notes/benchmarks") | |
} | |
stopifnot(success) | |
shell: Rscript {0} | |
- name: Show benchmarks | |
run: git notes --ref benchmarks show |