Skip to content

Commit 44a92d1

Browse files
committed
fix workflow
1 parent 1c2ccb1 commit 44a92d1

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/build-natives.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,19 +119,20 @@ jobs:
119119

120120
- name: Setup vcpkg (Windows)
121121
if: ${{ !matrix.use-nix }}
122-
shell: pwsh
123122
run: |
124123
& "${{ env.VCPKG_ROOT }}\bootstrap-vcpkg.bat" -disableMetrics
125124
126125
# Fetch the nuget path, filter out any warning lines, and run it
127126
$nugetPath = & "${{ env.VCPKG_ROOT }}\vcpkg" fetch nuget | Select-Object -Last 1
128127
128+
Write-Host "NuGet path: $nugetPath"
129+
129130
& $nugetPath sources add `
130131
-Source "${{ env.GITHUB_PACKAGES_FEED }}" `
131132
-Name "GithubPackages" `
132133
-UserName "${{ github.repository_owner }}" `
133134
-Password "${{ secrets.VCPKG_NUGET_TOKEN }}" `
134-
-StorePasswordInClearText
135+
-StorePasswordInClearText `
135136
-ConfigFile "${{ github.workspace }}\Natives\NetCord.Natives\vcpkg-nuget.config"
136137
137138
# Set the api key for the GitHub Packages feed
@@ -141,13 +142,14 @@ jobs:
141142
142143
- name: Setup vcpkg (Nix)
143144
if: ${{ matrix.use-nix }}
144-
shell: bash
145145
run: |
146146
"${{ env.VCPKG_ROOT }}/bootstrap-vcpkg.sh" -disableMetrics
147147
148148
# Capture the nuget.exe path to a local variable
149149
export NUGET_PATH=$("${{ env.VCPKG_ROOT }}/vcpkg" fetch nuget | tail -n 1)
150150
151+
echo "NuGet path: $NUGET_PATH"
152+
151153
mono "$NUGET_PATH" sources add \
152154
-Source "${{ env.GITHUB_PACKAGES_FEED }}" \
153155
-Name "GithubPackages" \

0 commit comments

Comments
 (0)