Skip to content

Commit

Permalink
Fix build on windows-2022 runner
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaine committed Nov 4, 2023
1 parent 772489b commit 93aaa75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,12 @@ jobs:
- uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install nasm
if: matrix.os == 'windows-latest'
run: choco install -y nasm
- name: Install nmake
if: matrix.os == 'windows-latest'
run: |
& "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" modify `
--installPath "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise" `
--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --passive --norestart
shell: powershell
- name: Install qemu
if: matrix.os == 'ubuntu-latest'
uses: docker/setup-qemu-action@v1
- name: Install nasm
if: matrix.os == 'windows-latest'
run: choco install -y nasm
- name: Build OpenSSL
env:
CIBW_ARCHS: ${{ matrix.arch }}
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-openssl.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if %PYTHON_ARCH% == 64 (
)
set outputfile=output\openssl-%platform%.tar.gz

call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" %VC_ARCH%
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" %VC_ARCH%
SET PATH=%PATH%;C:\Program Files\NASM

mkdir openssl
Expand Down

0 comments on commit 93aaa75

Please sign in to comment.