Skip to content

Commit fef2ce0

Browse files
committed
Test winarm64 in ci
1 parent 50f1313 commit fef2ce0

1 file changed

Lines changed: 13 additions & 19 deletions

File tree

.github/workflows/main.yml

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
pull_request:
66
branches: [ develop, master ]
77
push:
8-
branches: [ develop ]
8+
branches: [ develop, winarm64-ci ]
99
paths-ignore:
1010
- 'doygen/**'
1111
- 'hooks/**'
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
fail-fast: false
2828
matrix:
29-
os: [windows-latest, ubuntu-24.04-arm]
29+
os: [windows-11-arm]
3030
config: [
3131
{ label: misc, tests: 'test/unit/*_test.cpp test/unit/math/*_test.cpp test/unit/math/memory' },
3232
{ label: prim, tests: 'test/unit/math/prim' },
@@ -41,15 +41,12 @@ jobs:
4141
with:
4242
python-version: '3.x'
4343

44-
- uses: r-lib/actions/setup-r@v2
44+
- name: Download and install Rtools45
4545
if: runner.os == 'Windows'
46-
with:
47-
r-version: 'release'
48-
rtools-version: '45'
49-
50-
- name: Set path for Rtools45
51-
if: runner.os == 'Windows'
52-
run: echo "C:/rtools45/usr/bin;C:/rtools45/x86_64-w64-mingw32.static.posix/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
46+
run: |
47+
Invoke-WebRequest -Uri https://github.com/r-hub/rtools45/releases/download/latest/rtools45-aarch64.exe -OutFile rtools45-aarch64.exe
48+
Start-Process -FilePath rtools45-aarch64.exe -ArgumentList "/install /norestart /verysilent /SUPPRESSMSGBOXES" -NoNewWindow -Wait
49+
echo "C:/rtools45-aarch64/usr/bin;C:/rtools45-aarch64/aarch64-w64-mingw32.static.posix/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
5350
5451
- name: Build Math libs
5552
shell: pwsh
@@ -80,7 +77,7 @@ jobs:
8077
strategy:
8178
fail-fast: false
8279
matrix:
83-
os: [windows-latest, ubuntu-24.04-arm]
80+
os: [windows-11-arm]
8481
group: [1, 2, 3, 4, 5]
8582

8683
steps:
@@ -89,15 +86,12 @@ jobs:
8986
with:
9087
python-version: '3.x'
9188

92-
- uses: r-lib/actions/setup-r@v2
89+
- name: Download and install Rtools45
9390
if: runner.os == 'Windows'
94-
with:
95-
r-version: 'release'
96-
rtools-version: '45'
97-
98-
- name: Set path for Rtools45
99-
if: runner.os == 'Windows'
100-
run: echo "C:/rtools45/usr/bin;C:/rtools45/x86_64-w64-mingw32.static.posix/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
91+
run: |
92+
Invoke-WebRequest -Uri https://github.com/r-hub/rtools45/releases/download/latest/rtools45-aarch64.exe -OutFile rtools45-aarch64.exe
93+
Start-Process -FilePath rtools45-aarch64.exe -ArgumentList "/install /norestart /verysilent /SUPPRESSMSGBOXES" -NoNewWindow -Wait
94+
echo "C:/rtools45-aarch64/usr/bin;C:/rtools45-aarch64/aarch64-w64-mingw32.static.posix/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
10195
10296
- name: Build Math libs
10397
shell: pwsh

0 commit comments

Comments
 (0)