Skip to content

Commit

Permalink
Changed URL for windows rsync
Browse files Browse the repository at this point in the history
  • Loading branch information
akenmorris committed Feb 18, 2024
1 parent 3ee983b commit 6f753dd
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/copy_artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,16 @@ if [[ "$PLATFORM" == "windows" ]]; then
# install rsync on for windows/msys2 (the one from chocolatey doesn't work)
# (adapted from https://github.com/GuillaumeFalourd/setup-rsync)
echo "Installing rsync for Windows/msys2"
curl.exe --output rsync-3.2.3-2-x86_64.pkg.tar.zst --url https://repo.msys2.org/msys/x86_64/rsync-3.2.3-1-x86_64.pkg.tar.zst
zstd -d rsync-3.2.3-2-x86_64.pkg.tar.zst
tar -xvf rsync-3.2.3-2-x86_64.pkg.tar
mv usr/bin/rsync.exe "C:\Program Files\Git\usr\bin\\"
curl.exe --output libzstd-1.5.2-1-x86_64.pkg.tar.zst https://repo.msys2.org/msys/x86_64/libzstd-1.5.2-1-x86_64.pkg.tar.zst
zstd -d libzstd-1.5.2-1-x86_64.pkg.tar.zst
tar -xvf libzstd-1.5.2-1-x86_64.pkg.tar
mv usr/bin/msys-zstd-1.dll "C:\Program Files\Git\usr\bin\\"
curl.exe --output libxxhash-0.8.0-1-x86_64.pkg.tar.zst https://repo.msys2.org/msys/x86_64/libxxhash-0.8.1-1-x86_64.pkg.tar.zst
zstd -d libxxhash-0.8.0-1-x86_64.pkg.tar.zst
tar -xvf libxxhash-0.8.0-1-x86_64.pkg.tar
mv usr/bin/msys-xxhash-0.8.0.dll "C:\Program Files\Git\usr\bin\\"

# These were the original URLs, but they keep changing and it's time consuming to keep up
# So I have just combined them in this windows_rsync.tar.gz that I'm hosting myself

# https://repo.msys2.org/msys/x86_64/rsync-3.2.3-1-x86_64.pkg.tar.zst
# https://repo.msys2.org/msys/x86_64/libzstd-1.5.2-1-x86_64.pkg.tar.zst
# https://repo.msys2.org/msys/x86_64/libxxhash-0.8.1-1-x86_64.pkg.tar.zst
curl.exe --output windows_rsync.tar.gz http://www.sci.utah.edu/~amorris/windows_rsync.tar.gz

mv usr/bin/* "C:\Program Files\Git\usr\bin\\"
echo "rsync installed on windows runner"
fi

Expand Down

0 comments on commit 6f753dd

Please sign in to comment.