Skip to content

Commit

Permalink
Redo CI
Browse files Browse the repository at this point in the history
  • Loading branch information
twizmwazin committed Dec 14, 2023
1 parent 0e2b14d commit 8e6ef08
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 73 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,28 @@ on:
workflow_dispatch:

jobs:
ci:
uses: angr/ci-settings/.github/workflows/angr-ci.yml@master
windows:
uses: ./.github/workflows/windows.yml
macos:
uses: ./.github/workflows/macos.yml
test:
strategy:
matrix:
os: [ubuntu-latest, macos-12, windows-2022]
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.8"
- run: python -m venv $HOME/venv
name: Create venv
shell: bash
- run: |
source $HOME/venv/bin/activate
pip install .[testing]
name: Install
- run: |
source $HOME/venv/bin/activate
pytest -n auto
name: Run pytest
docs:
runs-on: ubuntu-22.04
steps:
Expand Down
109 changes: 109 additions & 0 deletions .github/workflows/ecosystem.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
name: Ecosystem CI

on:
push:
branches:
- master
pull_request:
workflow_dispatch:

jobs:
test-ecosystem:
strategy:
fail-fast: false
matrix:
group: [1, 2, 3, 4, 5]
name: Test Ecosystem
runs-on: ubuntu-22.04
steps:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.8

- uses: actions/checkout@v3
with:
path: archinfo
- run: pip install ./archinfo

# Checkout and install all the ecosystem packages
# Core packages
# pyvex
- run: gh repo clone angr/pyvex
- run: pip install ./pyvex
# cle
- run: gh repo clone angr/cle
- run: pip install ./cle
# TODO: remove this once angr installs claripy directly
- run: gh repo clone angr/claripy
- run: pip install ./claripy
# TODO: remove this once angr installs ailment directly
- run: gh repo clone angr/ailment
- run: pip install ./ailment
# angr
- run: gh repo clone angr/angr
- run: pip install ./angr
# angr management
- run: gh repo clone angr/angr-management
- run: pip install ./angr-management
# binaries
- run: gh repo clone angr/binaries

# Extended packages
# angr-platforms
- run: gh repo clone angr/angr-platforms
- run: pip install ./angr-platforms
# pysoot
- run: gh repo clone angr/pysoot
- run: pip install ./pysoot
# archr, dep of rex
- run: gh repo clone angr/archr
- run: pip install ./archr
# angrop
- run: gh repo clone angr/angrop
- run: pip install ./angrop
# tracer, dep of rex
- run: gh repo clone angr/tracer
- run: pip install ./tracer
# compilerex, patcherex
- run: gh repo clone mechaphish/compilerex
- run: pip install ./compilerex
# colorguard, dep of rex
- run: gh repo clone mechaphish/colorguard
- run: pip install ./colorguard
# povsim, dep of rex
- run: gh repo clone mechaphish/povsim
- run: pip install ./angr
# rex
- run: gh repo clone angr/rex
- run: pip install ./rex
# driller
- run: gh repo clone shellphish/driller
- run: pip install ./driller
# heaphopper
- run: gh repo clone angr/heaphopper
- run: pip install ./heaphopper
# patcherex
- run: gh repo clone angr/patcherex
- run: pip install ./patcherex

# Reinstall archinfo in case it was overwritten by one of the ecosystem packages
- run: pip install ./archinfo[testing]

- name: Run pytest
run: |
pytest -rs -n auto --splits 5 --group ${{matrix.group}} \
pyvex \
cle \
angr \
angr-management \
angr-examples \
angr-platforms \
pysoot \
angrop \
rex \
driller \
heaphopper \
patcherex
env:
SKIP_SLOW_TESTS: 1
26 changes: 0 additions & 26 deletions .github/workflows/macos.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/nightly-ci.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/windows.yml

This file was deleted.

0 comments on commit 8e6ef08

Please sign in to comment.