update windows workflows to work properly with windows server 2022

This commit is contained in:
alemuntoni 2022-02-07 18:02:39 +01:00
parent cd64cb5f31
commit 89ebc7defa
2 changed files with 8 additions and 6 deletions

View File

@ -177,16 +177,17 @@ jobs:
echo ::set-output name=artifact_suffix::""
fi
echo "VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC" >> $GITHUB_ENV
- name: Expand PATH for wget
- name: Install wget
run: |
echo "C:\msys64\usr\bin\" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
$env:PATH = "C:\msys64\mingw64\bin;C:\msys64\usr\bin"
pacman.exe -S --noconfirm --noprogressbar wget
- name: Set Certificate
run: |
New-Item -ItemType directory -Path certificate
Set-Content -Path certificate\certificate.txt -Value '${{ secrets.WIN_CERTIFICATE }}'
certutil -decode certificate\certificate.txt certificate\certificate.pfx
- name: Download external libraries
shell: bash
shell: C:\shells\msys2bash.cmd {0}
run: |
bash scripts/${{ runner.os }}/0_download_ext.sh
- name: Configure and Build

View File

@ -28,11 +28,12 @@ jobs:
echo ::set-output name=artifact_suffix::""
fi
echo "VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC" >> $GITHUB_ENV
- name: Expand PATH for wget
- name: Install wget
run: |
echo "C:\msys64\usr\bin\" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
$env:PATH = "C:\msys64\mingw64\bin;C:\msys64\usr\bin"
pacman.exe -S --noconfirm --noprogressbar wget
- name: Download external libraries
shell: bash
shell: C:\shells\msys2bash.cmd {0}
run: |
bash scripts/${{ runner.os }}/0_download_ext.sh
- name: Configure and Build