Skip to content

Commit 8094397

Browse files
authored
feat: install rtools4.0
1 parent 8fe6662 commit 8094397

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ ENV GITHUB_RUNNER_VERSION=2.306.0
3131
ENV GITHUB_RUNNER_FILE=actions-runner-win-x64-${GITHUB_RUNNER_VERSION}.zip
3232
ENV GITHUB_RUNNER_URL=https://github.com/actions/runner/releases/download/v${GITHUB_RUNNER_VERSION}/${GITHUB_RUNNER_FILE}
3333
ENV GITHUB_RUNNER_LABELS=windows,win_x64,windows_x64,windows_vagrant_action
34+
ENV DOLLAR=$
3435

3536
COPY Vagrantfile /
3637
COPY startup.sh /

Vagrantfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ Vagrant.configure("2") do |config|
2323
# Install build tools
2424
Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vs_enterprise.exe" -OutFile "vs_enterprise.exe"
2525
./vs_enterprise.exe --quiet --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended # --passive
26+
# Install rtools40
27+
Invoke-WebRequest -Uri "https://cran.r-project.org/bin/windows/Rtools/rtools40-x86_64.exe" -OutFile "rtools.exe"
28+
Start-Process "./rtools.exe" -Argument "/Silent" -PassThru -Wait
29+
${DOLLAR}env:PATH += ";C:\rtools40\usr\bin;C:\rtools40\mingw64\bin"
30+
C:\rtools40\msys2.exe pacman -Sy --noconfirm mingw-w64-x86_64-make
31+
Remove-Item -Path ./rtools.exe
2632
# Resize disk
2733
Resize-Partition -DriveLetter "C" -Size (Get-PartitionSupportedSize -DriveLetter "C").SizeMax
2834
# github actions

0 commit comments

Comments
 (0)