Skip to content

Commit 328b75c

Browse files
authored
ci: refactor arm64 linux detection (#335)
1 parent 43f5de2 commit 328b75c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release-lib.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
uses: r-lib/actions/setup-r@v2
7676
with:
7777
# 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+
use-public-rspm: ${{ runner.os != 'Linux' || runner.arch != 'ARM64' }}
7979
Ncpus: 2
8080

8181
- uses: r-lib/actions/setup-r-dependencies@v2
@@ -177,7 +177,7 @@ jobs:
177177
with:
178178
r-version: ${{ matrix.r }}
179179
# 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' }}
180+
use-public-rspm: ${{ runner.os != 'Linux' || runner.arch != 'ARM64' }}
181181
Ncpus: "2"
182182

183183
- uses: r-lib/actions/setup-r-dependencies@v2

0 commit comments

Comments
 (0)