Skip to content

Commit

Permalink
Windows: Set the environment variables outside the download step
Browse files Browse the repository at this point in the history
Otherwise, when the cache is used, the job breaks because LIB isn't set correctly.
  • Loading branch information
Geod24 committed Apr 4, 2020
1 parent fe58cc1 commit 9b39764
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ jobs:
if ((Get-FileHash '${{ github.workspace }}\lib\libsodium.zip' -Algorithm "SHA256").Hash -ne $sha256hash) {
exit 1
}
Expand-Archive '${{ github.workspace }}\lib\libsodium.zip' -DestinationPath ${{ github.workspace }}\lib\
Expand-Archive '${{ github.workspace }}\lib\libsodium.zip' -DestinationPath '${{ github.workspace }}\lib\'
# Need to be its own step because we execute either the restore cache step or the download libsodium step
- name: '[Windows] Setup LIB variable'
if: runner.os == 'Windows'
run: |
echo "::set-env name=LIB::${{ github.workspace }}\lib\libsodium\x64\Release\v142\static\;$LIB"
# Build and run the tests
Expand Down

0 comments on commit 9b39764

Please # to comment.