Skip to content

Commit

Permalink
Simplify python3 install in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Grazfather committed Jul 3, 2021
1 parent a87d9ea commit f818ed9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Cache trinity libs
- name: Cache dependencies
uses: actions/cache@v2
id: cache-libs
id: cache-deps
env:
cache-name: cache-trinity-libs-and-python-modules
cache-name: cache-deps
with:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/lockfiles') }}
path: |
Expand All @@ -43,11 +43,11 @@ jobs:
sudo apt-get update
sudo apt-get install -y gdb-multiarch python3-dev python3-pip python3-wheel python3-setuptools git cmake gcc g++ pkg-config libglib2.0-dev
- name: Compile Capstone/Keystone/Unicorn and install Python modules
- name: Install Python modules (Capstone, Keystone, Unicorn, Ropper)
if: steps.cache-libs.outputs.cache-hit != 'true'
run: |
mkdir -p ~/.cache/pip || echo ok
python3 -c 'import capstone, keystone, unicorn' || python3 -m pip install --user --upgrade -r ./requirements.txt
python3 -m pip install --user --upgrade -r ./requirements.txt
- name: Setup GEF
run: |
Expand Down

0 comments on commit f818ed9

Please sign in to comment.