Fix mkl error #284
Workflow file for this run
This file contains hidden or 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
| name: Continuous Benchmarks (Receive) | |
| on: pull_request | |
| jobs: | |
| prepare: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| config: ${{ steps.read_touchstone_config.outputs.config }} | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - id: read_touchstone_config | |
| run: | | |
| { | |
| echo "config<<EOF" | |
| cat ./touchstone/config.json | |
| echo "EOF" | |
| } >> "$GITHUB_OUTPUT" | |
| build: | |
| needs: prepare | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - ${{ fromJson(needs.prepare.outputs.config) }} | |
| env: | |
| R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
| RSPM: ${{ matrix.config.rspm }} | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up git user | |
| run: | | |
| git config --local user.name "GitHub Actions" | |
| git config --local user.email "actions@github.com" | |
| - name: Ensure base branch is fetched | |
| run: | | |
| git checkout -b $GITHUB_HEAD_REF # this is current ref. This is required for naming. | |
| git branch $GITHUB_BASE_REF remotes/origin/$GITHUB_BASE_REF | |
| - name: Setup R | |
| uses: r-lib/actions/setup-r@v2 | |
| - name: Setup dependencies | |
| uses: r-lib/actions/setup-r-dependencies@v2 | |
| with: | |
| cache-version: 1 | |
| extra-packages: | | |
| lorenzwalthert/touchstone | |
| ggplot2 | |
| dplyr | |
| gert | |
| - name: Remove global installation | |
| run: | | |
| pkg <- basename(getwd()) | |
| if (pkg %in% rownames(installed.packages())) { | |
| remove.packages(pkg) | |
| cat('removed package ', pkg, '.', sep = "") | |
| } | |
| shell: Rscript {0} | |
| - name: Checkout benchmarking repo | |
| if: ${{ matrix.config.benchmarking_repo != ''}} | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: ${{ matrix.config.benchmarking_repo }} | |
| ref: ${{ matrix.config.benchmarking_ref }} | |
| path: ${{ matrix.config.benchmarking_path }} | |
| - name: Run benchmarks | |
| run: Rscript -e 'touchstone::run_script("touchstone/script.R")' | |
| - name: Save PR number | |
| run: | | |
| echo ${{ github.event.number }} > ./touchstone/pr-comment/NR | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: visual-benchmarks | |
| path: touchstone/plots/ | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: results | |
| path: touchstone/pr-comment | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: results | |
| - name: comment PR | |
| run: cat touchstone/pr-comment/info.txt | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: pr | |
| path: touchstone/pr-comment/ |