74
74
if : runner.os != 'Windows'
75
75
uses : r-lib/actions/setup-r@v2
76
76
with :
77
- use-public-rspm : true
77
+ # TODO: `true` after rspm supports arm linux <https://github.com/r-lib/actions/issues/960>
78
+ use-public-rspm : ${{ matrix.os != 'ubuntu-22.04-arm' }}
78
79
Ncpus : 2
79
80
81
+ - uses : r-lib/actions/setup-r-dependencies@v2
82
+ if : runner.os != 'Windows'
83
+ with :
84
+ # TODO: uncomment after <https://github.com/r-lib/actions/pull/961>
85
+ # dependencies: 'FALSE'
86
+ extra-packages : any::pkgload
87
+
80
88
- name : build lib
81
89
env :
82
90
NOT_CRAN : " true"
92
100
if [[ "${{ runner.os }}" != "Windows" ]]; then
93
101
# Rinternals header is needed
94
102
pushd ..
95
- Rscript -e 'install.packages("pkgbuild")'
96
103
Rscript -e 'pkgbuild::compile_dll()'
97
104
popd
98
105
else
@@ -130,6 +137,8 @@ jobs:
130
137
include :
131
138
- os : macos-13
132
139
r : release
140
+ - os : ubuntu-22.04-arm
141
+ r : release
133
142
134
143
permissions :
135
144
contents : read
@@ -145,7 +154,7 @@ jobs:
145
154
if [[ "${{ runner.os }}" == "Windows" ]]; then
146
155
echo "LIB_TARGET=x86_64-pc-windows-gnu" >>"$GITHUB_ENV"
147
156
elif [[ "${{ runner.os }}" == "Linux" ]]; then
148
- echo "LIB_TARGET=x86_64 -unknown-linux-musl" >>"$GITHUB_ENV"
157
+ echo "LIB_TARGET=$(uname -m) -unknown-linux-musl" >>"$GITHUB_ENV"
149
158
else
150
159
echo "LIB_TARGET=$(rustc -vV | grep host | cut -d' ' -f2)" >>"$GITHUB_ENV"
151
160
fi
@@ -167,10 +176,13 @@ jobs:
167
176
- uses : r-lib/actions/setup-r@v2
168
177
with :
169
178
r-version : ${{ matrix.r }}
170
- use-public-rspm : true
179
+ # TODO: `true` after rspm supports arm linux <https://github.com/r-lib/actions/issues/960>
180
+ use-public-rspm : ${{ matrix.os != 'ubuntu-22.04-arm' }}
171
181
Ncpus : " 2"
172
182
173
183
- uses : r-lib/actions/setup-r-dependencies@v2
184
+ # TODO: uncomment after <https://github.com/r-lib/actions/pull/961>
185
+ # dependencies: 'FALSE'
174
186
with :
175
187
extra-packages : any::pkgload, any::testthat
176
188
0 commit comments