Skip to content

Commit

Permalink
Merge branch 'master' into bugfix/no_identifier_rerun
Browse files Browse the repository at this point in the history
  • Loading branch information
ANogin committed Aug 15, 2024
2 parents 7b4e850 + 89a9ae9 commit 58b8e00
Show file tree
Hide file tree
Showing 65 changed files with 4,319 additions and 1,188 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ disassemblers/ofrak_ghidra/ofrak_ghidra_test/assets/* filter=lfs diff=lfs merge=
ofrak_patch_maker/technical_docs/vbcc.pdf filter=lfs diff=lfs merge=lfs -text
ofrak_core/test_ofrak/components/assets/* filter=lfs diff=lfs merge=lfs -text
ofrak_core/test_ofrak/components/assets/README.md !filter !diff !merge text
ofrak_core/test_ofrak/components/assets/kernel_address_space_build.sh !filter !diff !merge text
ofrak_tutorial/assets/* filter=lfs diff=lfs merge=lfs -text
docs/user-guide/gui/assets/* filter=lfs diff=lfs merge=lfs -text
ofrak_core/test_ofrak/components/assets/elf/* filter=lfs diff=lfs merge=lfs -text
Expand Down
82 changes: 5 additions & 77 deletions .github/workflows/test-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ on:
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
flush_cache:
description: Flush the Docker image cache
default: false
type: boolean

permissions:
contents: read
Expand Down Expand Up @@ -54,43 +50,9 @@ jobs:
cd frontend
make check
build-base-image:
name: Build the common base OFRAK Docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
lfs: true
- uses: actions/setup-python@v4
with:
python-version: '3.7'
cache: pip
cache-dependency-path: '**/setup.py'
- name: Cache base image
id: cache-image
uses: actions/cache@v3
with:
key: ofrak-core-dev
path: ofrak-base.tar.gz
- name: Build base image
# Always rebuild the base image when the scheduled workflow runs
if: inputs.flush_cache || steps.cache-image.outputs.cache-hit != 'true' || github.event_name == 'schedule'
run: |
python3 -m pip install PyYAML
DOCKER_BUILDKIT=1 python3 build_image.py --config ofrak-core-dev.yml --base
- name: Export base image
if: inputs.flush_cache || steps.cache-image.outputs.cache-hit != 'true' || github.event_name == 'schedule'
run: |
sudo apt install pigz pv
docker save redballoonsecurity/ofrak/core-dev-base:latest \
| pigz -9 \
| pv --size 2400m --interval 5 --force \
> ofrak-base.tar.gz
ofrak-ghidra:
name: Test main OFRAK components
runs-on: ubuntu-latest
needs: build-base-image
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -100,18 +62,6 @@ jobs:
python-version: '3.7'
cache: pip
cache-dependency-path: '**/setup.py'
- name: Cache base image
id: cache-image
uses: actions/cache@v3
with:
key: ofrak-core-dev
path: ofrak-base.tar.gz
- name: Load base image
run: |
sudo apt install pv
pv --interval 5 --force ofrak-base.tar.gz \
| docker load
docker images
- name: Build Ghidra image
run: |
python3 -m pip install PyYAML
Expand Down Expand Up @@ -139,12 +89,12 @@ jobs:
--entrypoint bash \
redballoonsecurity/ofrak/ghidra:latest \
-c "python -m ofrak_ghidra.server start \
&& ofrak license --community --i-agree \
&& make test"
ofrak-angr:
name: Test OFRAK angr and capstone components
runs-on: ubuntu-latest
needs: build-base-image
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -154,18 +104,6 @@ jobs:
python-version: '3.7'
cache: pip
cache-dependency-path: '**/setup.py'
- name: Cache base image
id: cache-image
uses: actions/cache@v3
with:
key: ofrak-core-dev
path: ofrak-base.tar.gz
- name: Load base image
run: |
sudo apt install pv
pv --interval 5 --force ofrak-base.tar.gz \
| docker load
docker images
- name: Build angr image
run: |
python3 -m pip install PyYAML
Expand All @@ -183,12 +121,13 @@ jobs:
--entrypoint bash \
--volume "$(pwd)":/ofrak \
redballoonsecurity/ofrak/angr:latest \
-c "make -C /ofrak_angr test && make -C /ofrak_capstone test"
-c "ofrak license --community --i-agree \
&& make -C /ofrak_angr test \
&& make -C /ofrak_capstone test"
ofrak-tutorial:
name: Test OFRAK examples and tutorial notebooks
runs-on: ubuntu-latest
needs: build-base-image
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -198,18 +137,6 @@ jobs:
python-version: '3.7'
cache: pip
cache-dependency-path: '**/setup.py'
- name: Cache base image
id: cache-image
uses: actions/cache@v3
with:
key: ofrak-core-dev
path: ofrak-base.tar.gz
- name: Load base image
run: |
sudo apt install pv
pv --interval 5 --force ofrak-base.tar.gz \
| docker load
docker images
- name: Build tutorial image
run: |
python3 -m pip install PyYAML
Expand All @@ -227,5 +154,6 @@ jobs:
--entrypoint bash \
redballoonsecurity/ofrak/tutorial:latest \
-c "python -m ofrak_ghidra.server start \
&& ofrak license --community --i-agree \
&& make -C /examples test \
&& make -C /ofrak_tutorial test"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ frontend/public/build
ofrak_core/ofrak/core/entropy/entropy_c.cpython*
ofrak_core/ofrak/gui/public
ofrak_core/build
ofrak_core/ofrak/license/license.json
Loading

0 comments on commit 58b8e00

Please sign in to comment.