Testing everything in refs/pull/1625/merge #106
Workflow file for this run
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
| # tests all packages, including bap-extra | |
| # it requires ghidra, so it works only on ubuntu-22.04 | |
| name: full | |
| run-name: Testing everything in ${{ github.ref }} | |
| on: | |
| - pull_request | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| env: | |
| BAP_LOG_DIR: $HOME/log | |
| OPAMRETRES: 8 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Install Dejagnu | |
| run: | | |
| sudo apt-get update -y | |
| sudo apt-get install dejagnu -y | |
| - name: Build and Install Ghidra | |
| run: | | |
| sudo sh ./tools/install-ghidra.sh | |
| - name: Install OCaml | |
| uses: ocaml/setup-ocaml@v3 | |
| with: | |
| ocaml-compiler: 4.14.x | |
| dune-cache: true | |
| opam-disable-sandboxing: true | |
| - name: Install BAP Dependencies | |
| run: opam install . --deps-only | |
| - name: Configure BAP | |
| run: opam exec -- ocaml tools/configure.ml --with-llvm-config=$(opam var conf-bap-llvm:config) | |
| - name: Build BAP | |
| run: opam exec -- dune build | |
| - name: Install BAP | |
| run: opam exec -- dune install | |
| - name: Run Unit Tests | |
| run: opam exec -- dune test --display=short | |
| - name: Run Functional Tests | |
| run: opam exec -- make check | |
| - uses: actions/upload-artifact@v4 | |
| if: ${{ always() }} | |
| with: | |
| name: bap-log-full | |
| path: ~/.local/state/bap | |
| - uses: actions/upload-artifact@v4 | |
| if: ${{ always() }} | |
| with: | |
| name: fun-tests-log-full | |
| path: | | |
| testsuite/*.log | |
| testsuite/logs |