66
77jobs :
88 windows :
9- runs-on : ${{ matrix.runs_on }}
10- name : " Rust: ${{ matrix.config.rust }}, R: ${{ matrix.config.r }}, Arch: ${{ matrix.arch }}"
11-
9+ name : " Rust: ${{ matrix.config.rust }}, R: ${{ matrix.config.r }}, OS: ${{ matrix.config.runs_on }}"
10+ runs-on : ${{ matrix.config.runs_on }}
1211 strategy :
1312 fail-fast : false
1413 matrix :
15- arch : [x64, arm64]
1614 config :
17- - { rust: 'stable', r: 'release' }
18- include :
19- - arch : x64
20- runs_on : windows-latest
21- - arch : arm64
22- runs_on : windows-11-arm
23-
15+ # x64
16+ - { rust: 'stable', r: 'release', runs_on: 'windows-latest' }
17+ # arm64
18+ - { rust: 'stable', r: 'release', runs_on: 'windows-11-arm' }
2419 timeout-minutes : 30
2520 env :
2621 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -38,32 +33,13 @@ jobs:
3833 with :
3934 tool : cargo-nextest
4035
41- # x86_64: Use setup-r
42- - name : Install R (x64)
43- if : matrix.arch == 'x64'
36+ - name : Install R
4437 uses : r-lib/actions/setup-r@v2
4538 with :
4639 r-version : ${{ matrix.config.r }}
4740 use-public-rspm : true
4841
49- # arm64: Manual R install (until setup-r supports arm64)
50- - name : Install R (arm64)
51- if : matrix.arch == 'arm64'
52- run : |
53- curl -L -o R-installer.exe https://www.r-project.org/nosvn/winutf8/aarch64/R-4-signed/R-4.5.1-aarch64.exe
54- Start-Process -Wait -FilePath .\R-installer.exe -ArgumentList '/VERYSILENT', '/DIR=C:\R'
55- echo "C:\R\bin" >> $env:GITHUB_PATH
56-
57- # arm64: Install Rtools (until setup-r supports arm64)
58- - name : Install Rtools45 (arm64)
59- if : matrix.arch == 'arm64'
60- run : |
61- curl -L -o rtools45-installer.exe https://github.com/r-hub/rtools45/releases/download/latest/rtools45-aarch64.exe
62- Start-Process -Wait -FilePath .\rtools45-installer.exe -ArgumentList '/VERYSILENT'
63-
64- # x86_64: Use setup-r-dependencies
65- - name : Install R Packages Required For Tests (x64)
66- if : matrix.arch == 'x64'
42+ - name : Install R Packages Required For Tests
6743 uses : r-lib/actions/setup-r-dependencies@v2
6844 with :
6945 dependencies : ' "hard"'
7753 survival
7854 tibble
7955
80- # arm64: Manual install.packages (until setup-r-dependencies supports arm64)
81- - name : Install R Packages Required For Tests (arm64)
82- if : matrix.arch == 'arm64'
83- run : |
84- Rscript -e "install.packages(c('data.table', 'dplyr', 'haven', 'R6', 'ragg', 'rstudioapi', 'survival', 'tibble'), repos = 'https://cloud.r-project.org')"
85-
8656 - name : Build
8757 run : |
8858 cargo build
0 commit comments