mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 13:19:54 +00:00
Add support for Visual Studio 2022 (community+enterprise) ##build
* add rule in the CI
This commit is contained in:
parent
7043983bd2
commit
83bfc83c9f
49
.github/workflows/build.yml
vendored
49
.github/workflows/build.yml
vendored
@ -325,6 +325,51 @@ jobs:
|
||||
path: |
|
||||
radare2-${{ steps.r2v.outputs.branch }}-w32.zip
|
||||
# radare2-win-installer\Output\radare2.exe
|
||||
w64-static-2022:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- name: Win configure Pagefile
|
||||
uses: al-cheb/configure-pagefile-action@v1.2
|
||||
with:
|
||||
minimum-size: 16GB
|
||||
maximum-size: 16GB
|
||||
disk-root: "C:"
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
# with:
|
||||
# python-version: '3.7'
|
||||
- name: Preparing nmake
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
with:
|
||||
arch: x64
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install git+https://github.com/frida/meson.git@f7f25b19a8d71cebf8e2934733eb041eb6862eee
|
||||
pip install ninja r2pipe wget r2env
|
||||
- name: preconfigure
|
||||
continue-on-error: true
|
||||
shell: cmd
|
||||
run: |
|
||||
preconfigure
|
||||
- name: Build with meson + ninja
|
||||
shell: cmd
|
||||
run: |
|
||||
call configure static
|
||||
call make
|
||||
- name: Test executable
|
||||
continue-on-error: true
|
||||
shell: cmd
|
||||
run: |
|
||||
cd prefix\bin
|
||||
r2blob -v
|
||||
- uses: actions/upload-artifact@v2
|
||||
continue-on-error: true
|
||||
with:
|
||||
name: w64-static-2022
|
||||
path: prefix\bin\r2blob.static.exe
|
||||
|
||||
w64-static:
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
@ -354,10 +399,6 @@ jobs:
|
||||
REM preconfigure
|
||||
call configure static
|
||||
call make
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: w32-mingw
|
||||
path: radare2*.zip
|
||||
- name: Test executable
|
||||
continue-on-error: true
|
||||
shell: cmd
|
||||
|
@ -57,24 +57,35 @@ cl --help > NUL 2> NUL
|
||||
if %ERRORLEVEL% == 0 (
|
||||
echo FOUND
|
||||
) else (
|
||||
if EXIST "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community" (
|
||||
echo "Found community edition"
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %VSARCH%
|
||||
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
if EXIST "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" (
|
||||
echo "Found 2022 Enterprise edition"
|
||||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" %VSARCH%
|
||||
) else (
|
||||
if EXIST "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" (
|
||||
echo "Found Enterprise edition"
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" %VSARCH%
|
||||
if EXIST "C:\Program Files\Microsoft Visual Studio\2022\Community" (
|
||||
echo "Found 2022 Community edition"
|
||||
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" %VSARCH%
|
||||
) else (
|
||||
if EXIST "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat" (
|
||||
echo "Found Professional edition"
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat" %VSARCH%
|
||||
if EXIST "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community" (
|
||||
echo "Found 2019 community edition"
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %VSARCH%
|
||||
) else (
|
||||
if EXIST "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" (
|
||||
echo "Found BuildTools"
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" %VSARCH%
|
||||
if EXIST "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" (
|
||||
echo "Found 2019 Enterprise edition"
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" %VSARCH%
|
||||
) else (
|
||||
echo "Not Found"
|
||||
exit /b 1
|
||||
if EXIST "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat" (
|
||||
echo "Found 2019 Professional edition"
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat" %VSARCH%
|
||||
) else (
|
||||
if EXIST "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" (
|
||||
echo "Found 2019 BuildTools"
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" %VSARCH%
|
||||
) else (
|
||||
echo "Not Found"
|
||||
exit /b 1
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user