-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor CI into seperate path-specific workflows (#174)
* Refactor CI into seperate path-specific workflows * Add PR builds back and include workflow files in targets * Remove some extra dependencies in setup.sh
- Loading branch information
1 parent
671653c
commit 693e5cd
Showing
5 changed files
with
105 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Test setup.ps1 | ||
|
||
on: | ||
workflow_call: | ||
push: | ||
paths: | ||
- "setup.ps1" | ||
- ".github/workflows/setup-ps1.yml" | ||
pull_request: | ||
paths: | ||
- "setup.ps1" | ||
- ".github/workflows/setup-ps1.yml" | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: | ||
- windows-2022 | ||
python: | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
fail-fast: false | ||
name: Run setup.ps1 on ${{ matrix.os }} with python ${{ matrix.python }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Run setup.ps1 | ||
run: .\setup.ps1 | ||
|
||
- name: Test angr import | ||
run: python -c "import angr; print('angr imports!')" | ||
|
||
- name: Test angr management import | ||
run: python -c "import angrmanagement; print('angr management imports!')" |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Test extremely-simple-setup.sh | ||
|
||
on: | ||
workflow_call: | ||
push: | ||
paths: | ||
- "extremely-simple-setup.sh" | ||
- ".github/workflows/simple-sh.yml" | ||
pull_request: | ||
paths: | ||
- "extremely-simple-setup.sh" | ||
- ".github/workflows/simple-sh.yml" | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-20.04 | ||
- ubuntu-22.04 | ||
- macos-12 | ||
python: | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
fail-fast: false | ||
name: Run extremely-simple-setup.sh on ${{ matrix.os }} with python ${{ matrix.python }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Run setup.sh | ||
run: ./extremely-simple-setup.sh | ||
|
||
- name: Test angr import | ||
run: python -c "import angr; print('angr imports!')" | ||
|
||
- name: Test angrmanagement import | ||
run: python -c "import angrmanagement; print('angr management imports!')" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -z "$VIRTUAL_ENV" ]; then | ||
echo "Are you sure you want to install angr outside a python virtual environment?" | ||
echo "It is highly recommended to use a virtualenv when working with angr." | ||
echo -n "y/N " | ||
read choice | ||
if ! [ "$choice" = y -o "$choice" = Y ]; then | ||
exit 1 | ||
fi | ||
fi | ||
|
||
## BEGIN VERY COMPLICATED INSTALL PROCEDURE | ||
|
||
git clone https://github.com/angr/archinfo.git | ||
git clone --recursive https://github.com/angr/pyvex.git | ||
git clone https://github.com/angr/claripy.git | ||
git clone https://github.com/angr/cle.git | ||
git clone https://github.com/angr/angr.git | ||
git clone https://github.com/angr/claripy.git | ||
git clone https://github.com/angr/ailment.git | ||
git clone https://github.com/angr/angr.git | ||
git clone https://github.com/angr/angr-management.git | ||
git clone https://github.com/angr/angr-doc.git | ||
git clone https://github.com/angr/binaries.git | ||
|
||
python -m pip install -U pip wheel setuptools cffi "unicorn==2.0.1" | ||
|
||
pip install -e ./ailment | ||
pip install -e ./archinfo | ||
pip install -e ./pyvex | ||
pip install -e ./claripy | ||
pip install -e ./cle | ||
pip install -e ./claripy | ||
pip install -e ./ailment | ||
pip install --no-build-isolation -e ./angr | ||
|
||
## END VERY COMPLICATED INSTALL PROCEDURE | ||
pip install -e ./angr-management | ||
|
This file contains 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