Skip to content

Commit aa46415

Browse files
committed
Comparison operators
1 parent 0c5ef7d commit aa46415

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ jobs:
4444
- name: Download and install Rtools45
4545
if: runner.os == 'Windows'
4646
run: |
47-
$ARCH = if ('${{ matrix.os }}' == 'windows-11-arm') { 'aarch64' } else { 'x86_64' }
48-
$RTOOLS = if ('${{ matrix.os }}' == 'windows-11-arm') { 'rtools45-$ARCH' } else { 'rtools45' }
47+
$ARCH = if ('${{ matrix.os }}' -eq 'windows-11-arm') { 'aarch64' } else { 'x86_64' }
48+
$RTOOLS = if ('${{ matrix.os }}' -eq 'windows-11-arm') { 'rtools45-$ARCH' } else { 'rtools45' }
4949
Invoke-WebRequest -Uri https://github.com/r-hub/rtools45/releases/download/latest/$RTOOLS.exe -OutFile $RTOOLS.exe
5050
Start-Process -FilePath $RTOOLS.exe -ArgumentList "/install /norestart /verysilent /SUPPRESSMSGBOXES" -NoNewWindow -Wait
5151
echo "C:/$RTOOLS/usr/bin;C:/$RTOOLS/$ARCH-w64-mingw32.static.posix/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
@@ -92,8 +92,8 @@ jobs:
9292
- name: Download and install Rtools45
9393
if: runner.os == 'Windows'
9494
run: |
95-
$ARCH = if ('${{ matrix.os }}' == 'windows-11-arm') { 'aarch64' } else { 'x86_64' }
96-
$RTOOLS = if ('${{ matrix.os }}' == 'windows-11-arm') { 'rtools45-$ARCH' } else { 'rtools45' }
95+
$ARCH = if ('${{ matrix.os }}' -eq 'windows-11-arm') { 'aarch64' } else { 'x86_64' }
96+
$RTOOLS = if ('${{ matrix.os }}' -eq 'windows-11-arm') { 'rtools45-$ARCH' } else { 'rtools45' }
9797
Invoke-WebRequest -Uri https://github.com/r-hub/rtools45/releases/download/latest/$RTOOLS.exe -OutFile $RTOOLS.exe
9898
Start-Process -FilePath $RTOOLS.exe -ArgumentList "/install /norestart /verysilent /SUPPRESSMSGBOXES" -NoNewWindow -Wait
9999
echo "C:/$RTOOLS/usr/bin;C:/$RTOOLS/$ARCH-w64-mingw32.static.posix/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8

0 commit comments

Comments
 (0)