Skip to content

Merge tag 'v3.2.1' into docs #993

Merge tag 'v3.2.1' into docs

Merge tag 'v3.2.1' into docs #993

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