Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into python-gzip-trailin…
Browse files Browse the repository at this point in the history
…g-bytes
  • Loading branch information
alchzh committed Aug 15, 2024
2 parents 8609b8e + 6157c77 commit f996194
Showing 1 changed file with 0 additions and 76 deletions.
76 changes: 0 additions & 76 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 @@ -145,7 +95,6 @@ jobs:
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 @@ -155,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 @@ -191,7 +128,6 @@ jobs:
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 @@ -201,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 Down

0 comments on commit f996194

Please sign in to comment.