Use capstone for ARM support, fix multiple crashes #1562
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pipeline | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build-docker-and-run-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: recursive | |
| - name: Setup BinaryNinja License | |
| run: | | |
| echo "${{ secrets.BINJA_LICENSE }}" | base64 --decode > license.txt | |
| - name: Download BinayNinja.zip | |
| run: | | |
| curl -L --header "PRIVATE-TOKEN: ${{ secrets.GITLAB_BINJA_TOKEN }}" "https://gitlab.fkie.fraunhofer.de/api/v4/projects/1250/repository/archive.zip?sha=Binja5" -o complete_repo.zip | |
| - name: Build Docker Image | |
| run: | | |
| docker build -t dewolf . | |
| - name: Run Format Check | |
| run: | | |
| docker run dewolf make check-format | |
| - name: Run Tests | |
| id: run_tests | |
| run: | | |
| docker run -v "$(pwd)"/artifacts:/opt/dewolf/crash_reports dewolf make | |
| - name: Upload Crash Reports | |
| if: ${{ failure() && steps.run_tests.conclusion == 'failure' }} # Only run if previous steps fail | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: crash-reports | |
| path: artifacts/* | |
| retention-days: 7 # Adjust retention as needed |