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 4, 2021
1 parent c83c04d commit 023870f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:
run: |
echo "::set-output name=dir::$(pip cache dir)"
- 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 }}-pip-${{ hashFiles('**/requirements.txt') }}
path: |
Expand All @@ -51,11 +51,11 @@ jobs:
${{ runner.os }}-${{ env.cache-name }}-
${{ runner.os }}-

- name: Compile Capstone/Keystone/Unicorn and install Python modules
if: steps.cache-libs.outputs.cache-hit != 'true'
- name: Install Python modules (Capstone, Keystone, Unicorn, Ropper)
if: steps.cache-deps.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 023870f

Please sign in to comment.