Rename r.yml to test.yml #7
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
name: Testing multiarch installation | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false # Ensure all jobs in the matrix run even if one fails | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
rversion: ["4.4.2"] # Add or remove versions as needed | |
steps: | |
# Step 1: Checkout the repository | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.rversion }} # The R version to download (if necessary) and use. | |
- name: Install pak | |
run: R -e 'install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/stable/%s/%s/%s", .Platform$pkgType, R.Version()$os, R.Version()$arch))' | |
- name: Install rblm | |
run: R -e 'library(pak); pak::pkg_install(".")' | |