Skip to content

Commit

Permalink
hack windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed May 31, 2023
1 parent adf9c48 commit 7dbbe48
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: ["master"]

env:
VCPKG_BINARY_SOURCES: 'clear;nuget,GitHub,readwrite'
VCPKG_BINARY_SOURCES: "clear;nuget,GitHub,readwrite"

jobs:
build:
Expand All @@ -17,31 +17,30 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
submodules: true
submodules: true

- name: Bootstrap vcpkg
run: |
./vcpkg/bootstrap-vcpkg.bat
env:
CI: 1
- name: 'Setup NuGet Credentials'
shell: 'bash'

- name: "Setup NuGet Credentials"
shell: "bash"
run: |
./vcpkg/vcpkg.exe fetch nuget | tail -n 1 \
sources add \
-source "https://nuget.pkg.github.com/Julusian/index.json" \
-storepasswordincleartext \
-name "GitHub" \
-username "Julusian" \
-password "${{ secrets.GITHUB_TOKEN }}"
./vcpkg/vcpkg.exe fetch nuget | tail -n 1 \
setapikey "${{ secrets.GITHUB_TOKEN }}" \
-source "https://nuget.pkg.github.com/Julusian/index.json"
./vcpkg/vcpkg.exe fetch nuget \
sources add \
-source "https://nuget.pkg.github.com/Julusian/index.json" \
-storepasswordincleartext \
-name "GitHub" \
-username "Julusian" \
-password "${{ secrets.GITHUB_TOKEN }}"
./vcpkg/vcpkg.exe fetch nuget \
setapikey "${{ secrets.GITHUB_TOKEN }}" \
-source "https://nuget.pkg.github.com/Julusian/index.json"
env:
has_token: ${{ !!secrets.GITHUB_TOKEN && github.repository_owner == 'Julusian' && github.event_name == 'push' }}


- name: Cache nuget
uses: actions/cache@v3
with:
Expand Down

0 comments on commit 7dbbe48

Please sign in to comment.