Skip to content

Commit

Permalink
[ci] upgrade some actions, removed set-output directives
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Oct 21, 2022
1 parent a36ffbe commit e48e2f3
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/run-tests.yml
Expand Up @@ -26,7 +26,7 @@ jobs:
shell: bash

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install python and toolchain
run: |
Expand All @@ -38,26 +38,18 @@ jobs:
run: |
echo PY_VER=`gdb -q -nx -ex "pi print('.'.join(map(str, sys.version_info[:2])))" -ex quit` >> $GITHUB_ENV
echo NB_CPU=`grep -c ^processor /proc/cpuinfo` >> $GITHUB_ENV
- name: Set architecture specific properties
id: set-arch-properties
run: |
echo "::set-output name=arch::$(uname --processor)"
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(python3 -m pip cache dir)"
echo GEF_CI_ARCH=`uname --processor` >> $GITHUB_ENV
echo GEF_CACHE_DIR=`python3 -m pip cache dir` >> $GITHUB_ENV
- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3
id: cache-deps
env:
cache-name: cache-deps
with:
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
path: |
${{ steps.pip-cache.outputs.dir }}
${{ env.GEF_CACHE_DIR }}
restore-keys:
${{ runner.os }}-pip-${{ env.cache-name }}-
${{ runner.os }}-pip-
Expand All @@ -66,7 +58,7 @@ jobs:

- name: Install Python Requirements
run: |
mkdir -p ${{ steps.pip-cache.outputs.dir }}
mkdir -p ${{ env.GEF_CACHE_DIR }}
python${{ env.PY_VER }} -m pip install --user --upgrade -r tests/requirements.txt
- name: Setup GEF
Expand All @@ -75,8 +67,6 @@ jobs:
gdb -q -ex 'gef missing' -ex 'gef help' -ex 'gef config' -ex start -ex continue -ex quit /bin/pwd
- name: Run Tests
env:
GEF_CI_ARCH: ${{ steps.set-arch-properties.outputs.arch }}
run: |
make -C tests/binaries -j ${{ env.NB_CPU }}
python${{ env.PY_VER }} -m pytest --forked -n ${{ env.NB_CPU }} -v -k "not benchmark" tests/
Expand Down

0 comments on commit e48e2f3

Please sign in to comment.