7474 if : runner.os != 'Windows'
7575 uses : r-lib/actions/setup-r@v2
7676 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' }}
7879 Ncpus : 2
7980
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+
8088 - name : build lib
8189 env :
8290 NOT_CRAN : " true"
92100 if [[ "${{ runner.os }}" != "Windows" ]]; then
93101 # Rinternals header is needed
94102 pushd ..
95- Rscript -e 'install.packages("pkgbuild")'
96103 Rscript -e 'pkgbuild::compile_dll()'
97104 popd
98105 else
@@ -130,6 +137,8 @@ jobs:
130137 include :
131138 - os : macos-13
132139 r : release
140+ - os : ubuntu-22.04-arm
141+ r : release
133142
134143 permissions :
135144 contents : read
@@ -145,7 +154,7 @@ jobs:
145154 if [[ "${{ runner.os }}" == "Windows" ]]; then
146155 echo "LIB_TARGET=x86_64-pc-windows-gnu" >>"$GITHUB_ENV"
147156 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"
149158 else
150159 echo "LIB_TARGET=$(rustc -vV | grep host | cut -d' ' -f2)" >>"$GITHUB_ENV"
151160 fi
@@ -167,10 +176,13 @@ jobs:
167176 - uses : r-lib/actions/setup-r@v2
168177 with :
169178 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' }}
171181 Ncpus : " 2"
172182
173183 - uses : r-lib/actions/setup-r-dependencies@v2
184+ # TODO: uncomment after <https://github.com/r-lib/actions/pull/961>
185+ # dependencies: 'FALSE'
174186 with :
175187 extra-packages : any::pkgload, any::testthat
176188
0 commit comments