Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Nov 6, 2024
1 parent 0378e79 commit db1c666
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions ci/scripts/install_vcpkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,19 @@ if [ -n "${GITHUB_TOKEN:-}" ] && [ -n "${GITHUB_REPOSITORY_OWNER:-}" ]; then
dnf install -y epel-release
dnf install -y mono-complete
wget --no-verbose https://dist.nuget.org/win-x86-commandline/v6.10.0/nuget.exe
mv nuget.exe /usr/libexec/
cat <<NUGET > /usr/bin/nuget
#!/bin/sh
exec mono /usr/libexec/nuget.exe "\$@"
NUGET
mv nuget.exe /usr/bin/nuget
chmod +x /usr/bin/nuget
fi
vcpkg fetch nuget || :
nuget_url="https://nuget.pkg.github.com/${GITHUB_REPOSITORY_OWNER}/index.json"
nuget \
mono /usr/bin/nuget \
sources add \
-source "${nuget_url}" \
-storepasswordincleartext \
-name "GitHub" \
-username "${GITHUB_REPOSITORY_OWNER}" \
-password "${GITHUB_TOKEN}"
nuget \
mono /usr/bin/nuget \
setapikey "${GITHUB_TOKEN}" \
-source "${nuget_url}"
fi
Expand Down

0 comments on commit db1c666

Please sign in to comment.