mirror of
https://github.com/bitdefender/bddisasm.git
synced 2025-05-08 20:18:44 +00:00
Merge pull request #33 from ianichitei/master
Automatically add binaries to a release
This commit is contained in:
commit
83ee0d120d
57
.github/workflows/ci.yml
vendored
57
.github/workflows/ci.yml
vendored
@ -19,6 +19,9 @@ on:
|
|||||||
- 'bddisasm_test/**'
|
- 'bddisasm_test/**'
|
||||||
- 'bdshemu_test/**'
|
- 'bdshemu_test/**'
|
||||||
- 'LICENSE'
|
- 'LICENSE'
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Linux-build:
|
Linux-build:
|
||||||
@ -27,13 +30,6 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Build bddisasm and bdshemu
|
|
||||||
run: |
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake ..
|
|
||||||
make
|
|
||||||
cd -
|
|
||||||
- name: Install rapidjson
|
- name: Install rapidjson
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
with:
|
with:
|
||||||
@ -49,15 +45,18 @@ jobs:
|
|||||||
sudo make install
|
sudo make install
|
||||||
cd ..
|
cd ..
|
||||||
cd ..
|
cd ..
|
||||||
|
- name: Build bddisasm and bdshemu
|
||||||
|
run: |
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake .. -DINCLUDE_TOOL=y -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
|
||||||
|
make bddisasm bdshemu -j$(nproc)
|
||||||
|
cd -
|
||||||
- name: Build disasmtool_lix
|
- name: Build disasmtool_lix
|
||||||
run: |
|
run: |
|
||||||
cd disasmtool_lix
|
cd build
|
||||||
mkdir _build
|
make disasmtool -j$(nproc)
|
||||||
cd _build
|
cd -
|
||||||
cmake ..
|
|
||||||
make -j$(nproc)
|
|
||||||
cd ..
|
|
||||||
cd ..
|
|
||||||
- name: Install setuptools
|
- name: Install setuptools
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
@ -68,6 +67,18 @@ jobs:
|
|||||||
cd pybddisasm
|
cd pybddisasm
|
||||||
python3 setup.py build
|
python3 setup.py build
|
||||||
cd ..
|
cd ..
|
||||||
|
- name: Create package
|
||||||
|
if: ${{ github.event_name == 'release' }}
|
||||||
|
run: |
|
||||||
|
cd build
|
||||||
|
make package
|
||||||
|
cd -
|
||||||
|
- name: Release
|
||||||
|
if: ${{ github.event_name == 'release' }}
|
||||||
|
uses: AButler/upload-release-assets@v2.0
|
||||||
|
with:
|
||||||
|
files: 'build/*.deb'
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
Windows-build:
|
Windows-build:
|
||||||
|
|
||||||
@ -81,6 +92,24 @@ jobs:
|
|||||||
run: MSBuild /t:Rebuild /p:Configuration=Release /p:Platform=x64 bddisasm.sln
|
run: MSBuild /t:Rebuild /p:Configuration=Release /p:Platform=x64 bddisasm.sln
|
||||||
- name: Build bddisasm and bdshemu for Win32
|
- name: Build bddisasm and bdshemu for Win32
|
||||||
run: MSBuild /t:Rebuild /p:Configuration=Release /p:Platform=Win32 bddisasm.sln
|
run: MSBuild /t:Rebuild /p:Configuration=Release /p:Platform=Win32 bddisasm.sln
|
||||||
|
- name: Zip binaries
|
||||||
|
if: ${{ github.event_name == 'release' }}
|
||||||
|
run: |
|
||||||
|
del bin\x64\Release\*.idb
|
||||||
|
del bin\x64\Release\*.iobj
|
||||||
|
del bin\x64\Release\*.ipdb
|
||||||
|
del bin\Win32\Release\*.idb
|
||||||
|
del bin\Win32\Release\*.iobj
|
||||||
|
del bin\Win32\Release\*.ipdb
|
||||||
|
tar.exe -acf x64-windows-release.zip bin\x64\Release
|
||||||
|
tar.exe -acf x86-windows-release.zip bin\Win32\Release
|
||||||
|
- name: Release
|
||||||
|
if: ${{ github.event_name == 'release' }}
|
||||||
|
uses: AButler/upload-release-assets@v2.0
|
||||||
|
with:
|
||||||
|
files: 'x64-windows-release.zip;x86-windows-release.zip'
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
||||||
Code-checks:
|
Code-checks:
|
||||||
|
|
||||||
|
@ -30,11 +30,15 @@ Global
|
|||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.Debug|Win32.ActiveCfg = Debug|Win32
|
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.Debug|x64.ActiveCfg = Debug|x64
|
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.Debug|x64.Build.0 = Debug|x64
|
||||||
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.DebugKernel|Win32.ActiveCfg = Debug|Win32
|
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.DebugKernel|Win32.ActiveCfg = Debug|Win32
|
||||||
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.DebugKernel|x64.ActiveCfg = Debug|x64
|
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.DebugKernel|x64.ActiveCfg = Debug|x64
|
||||||
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.Release|Win32.ActiveCfg = Release|Win32
|
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.Release|Win32.Build.0 = Release|Win32
|
||||||
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.Release|x64.ActiveCfg = Release|x64
|
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.Release|x64.Build.0 = Release|x64
|
||||||
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.ReleaseKernel|Win32.ActiveCfg = Release|Win32
|
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.ReleaseKernel|Win32.ActiveCfg = Release|Win32
|
||||||
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.ReleaseKernel|x64.ActiveCfg = Release|x64
|
{94F1B65D-3305-4CCB-9DF1-50B56900D867}.ReleaseKernel|x64.ActiveCfg = Release|x64
|
||||||
{3653AA19-048B-410E-B5C4-FF78E1D84C12}.Debug|Win32.ActiveCfg = Debug|Win32
|
{3653AA19-048B-410E-B5C4-FF78E1D84C12}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
@ -63,7 +63,7 @@ target_compile_options(${PROJECT_NAME} PRIVATE
|
|||||||
-g3
|
-g3
|
||||||
-gdwarf-4
|
-gdwarf-4
|
||||||
-grecord-gcc-switches
|
-grecord-gcc-switches
|
||||||
-march=native
|
-march=nehalem
|
||||||
-fno-omit-frame-pointer
|
-fno-omit-frame-pointer
|
||||||
# -fsanitize=leak
|
# -fsanitize=leak
|
||||||
# -fsanitize=address
|
# -fsanitize=address
|
||||||
@ -254,7 +254,6 @@ endif()
|
|||||||
|
|
||||||
target_include_directories(${PROJECT_NAME} PRIVATE
|
target_include_directories(${PROJECT_NAME} PRIVATE
|
||||||
${DISASM_DIRECTORY}/inc
|
${DISASM_DIRECTORY}/inc
|
||||||
${DISASM_DIRECTORY}/inc/bdshemu
|
|
||||||
${DISASM_DIRECTORY}/bddisasm/include
|
${DISASM_DIRECTORY}/bddisasm/include
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user