Update ci.yml

pull/40/head
Anichitei Ionel-Cristinel 3 years ago committed by GitHub
parent e2e972c84f
commit a20d4e4755
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -38,24 +38,24 @@ jobs:
- name: Build dependencies - name: Build dependencies
run: | run: |
cd rapidjson cd rapidjson
mkdir _build mkdir build
cd _build cd build
cmake .. cmake ..
make -j$(nproc) make -j$(nproc)
sudo make install sudo make install
cd .. cd ..
cd .. cd ..
- name: Build bddisasm and bdshemu - name: Build all
run: | run: |
mkdir build mkdir build
cd build cd build
cmake .. -DINCLUDE_TOOL=y -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release cmake .. -DCMAKE_BUILD_TYPE=Release
make bddisasm bdshemu -j$(nproc) make -j$(nproc)
cd - cd -
- name: Build disasmtool_lix - name: Install
run: | run: |
cd build cd build
make disasmtool -j$(nproc) sudo make install
cd - cd -
- name: Install setuptools - name: Install setuptools
run: | run: |
@ -63,10 +63,9 @@ jobs:
python3 -m pip install setuptools python3 -m pip install setuptools
- name: Build pybddisasm - name: Build pybddisasm
run: | run: |
sudo make install
cd pybddisasm cd pybddisasm
python3 setup.py build python3 setup.py build
cd .. cd -
- name: Create package - name: Create package
if: ${{ github.event_name == 'release' }} if: ${{ github.event_name == 'release' }}
run: | run: |
@ -80,7 +79,7 @@ jobs:
files: 'build/*.deb' files: 'build/*.deb'
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
Windows-build: Windows-msbuild:
runs-on: windows-latest runs-on: windows-latest
@ -88,7 +87,7 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Add msbuild to PATH - name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2 uses: microsoft/setup-msbuild@v1.0.2
- name: Build bddisasm and bdshemu for x64 - name: Build all
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
@ -109,7 +108,20 @@ jobs:
with: with:
files: 'x64-windows-release.zip;x86-windows-release.zip' files: 'x64-windows-release.zip;x86-windows-release.zip'
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
Windows-cmake-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Build all
run: |
mkdir build
cd build
cmake .. -G Ninja
ninja
cd -
Code-checks: Code-checks:

Loading…
Cancel
Save