|
5 | 5 | pull_request: |
6 | 6 | branches: [ develop, master ] |
7 | 7 | push: |
8 | | - branches: [ develop ] |
| 8 | + branches: [ develop, rate-limits ] |
9 | 9 | paths-ignore: |
10 | 10 | - 'doygen/**' |
11 | 11 | - 'hooks/**' |
@@ -41,12 +41,21 @@ jobs: |
41 | 41 | with: |
42 | 42 | python-version: '3.x' |
43 | 43 |
|
44 | | - - name: Download and install Rtools45 |
| 44 | + - name: Download Rtools45 |
45 | 45 | if: runner.os == 'Windows' |
46 | 46 | run: | |
47 | 47 | $ARCH = if ('${{ matrix.os }}' -eq 'windows-11-arm') { 'aarch64' } else { 'x86_64' } |
48 | 48 | $RTOOLS = if ('${{ matrix.os }}' -eq 'windows-11-arm') { "rtools45-$ARCH" } else { 'rtools45' } |
49 | | - Invoke-WebRequest -Uri https://github.com/r-hub/rtools45/releases/download/latest/$RTOOLS.exe -OutFile "$RTOOLS.exe" |
| 49 | + echo $ARCH | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8 |
| 50 | + echo $RTOOLS | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8 |
| 51 | + Invoke-WebRequest ` |
| 52 | + -Uri https://github.com/r-hub/rtools45/releases/download/latest/$RTOOLS.exe ` |
| 53 | + -Headers @{ 'Authorization' = "Bearer ${{ secrets.GITHUB_TOKEN }}" } ` |
| 54 | + -OutFile "$RTOOLS.exe" |
| 55 | +
|
| 56 | + - name: Install Rtools45 |
| 57 | + if: runner.os == 'Windows' |
| 58 | + run: | |
50 | 59 | Start-Process -FilePath "$RTOOLS.exe" -ArgumentList "/install /norestart /verysilent /SUPPRESSMSGBOXES" -NoNewWindow -Wait |
51 | 60 | echo "C:/$RTOOLS/usr/bin;C:/$RTOOLS/$ARCH-w64-mingw32.static.posix/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
52 | 61 | echo "$(pwd)/lib/tbb" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
@@ -85,12 +94,21 @@ jobs: |
85 | 94 | with: |
86 | 95 | python-version: '3.x' |
87 | 96 |
|
88 | | - - name: Download and install Rtools45 |
| 97 | + - name: Download Rtools45 |
89 | 98 | if: runner.os == 'Windows' |
90 | 99 | run: | |
91 | 100 | $ARCH = if ('${{ matrix.os }}' -eq 'windows-11-arm') { 'aarch64' } else { 'x86_64' } |
92 | 101 | $RTOOLS = if ('${{ matrix.os }}' -eq 'windows-11-arm') { "rtools45-$ARCH" } else { 'rtools45' } |
93 | | - Invoke-WebRequest -Uri https://github.com/r-hub/rtools45/releases/download/latest/$RTOOLS.exe -OutFile "$RTOOLS.exe" |
| 102 | + echo $ARCH | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8 |
| 103 | + echo $RTOOLS | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8 |
| 104 | + Invoke-WebRequest ` |
| 105 | + -Uri https://github.com/r-hub/rtools45/releases/download/latest/$RTOOLS.exe ` |
| 106 | + -Headers @{ 'Authorization' = "Bearer ${{ secrets.GITHUB_TOKEN }}" } ` |
| 107 | + -OutFile "$RTOOLS.exe" |
| 108 | +
|
| 109 | + - name: Install Rtools45 |
| 110 | + if: runner.os == 'Windows' |
| 111 | + run: | |
94 | 112 | Start-Process -FilePath "$RTOOLS.exe" -ArgumentList "/install /norestart /verysilent /SUPPRESSMSGBOXES" -NoNewWindow -Wait |
95 | 113 | echo "C:/$RTOOLS/usr/bin;C:/$RTOOLS/$ARCH-w64-mingw32.static.posix/bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
96 | 114 | echo "$(pwd)/lib/tbb" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8 |
|
0 commit comments