Skip to content

Add github action for portability tests #2

Add github action for portability tests

Add github action for portability tests #2

Workflow file for this run

name: Testing portability (OS and python version)
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-20.04", "ubuntu-latest", "macos-latest"]
python-version: ["3.10", "pypy2.7", "pypy3.9", "graalpy-22.3"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Analyze /bin/sh
run: |
python ./cpu_rec.py /bin/sh
- name: Analyze /bin/sh with LRGH's elfesteem
run: |
git clone https://github.com/LRGH/elfesteem
export PYTHONPATH=./elfesteem
python ./cpu_rec.py /bin/sh
rm -rf elfesteem
- name: Analyze /bin/sh with airbus-seclab's elfesteem
run: |
git clone https://github.com/airbus-seclab/elfesteem
export PYTHONPATH=./elfesteem
python ./cpu_rec.py /bin/sh
rm -rf elfesteem
python23:
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python 2.3
run: |
cd ..
curl -O https://www.python.org/ftp/python/2.3.7/Python-2.3.7.tgz
tar xzf Python-2.3.7.tgz
cd Python-2.3.7
# We need to disable FORTIFY_SOURCE to compile python 2.3
# cf. https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/286334
./configure BASECFLAGS=-U_FORTIFY_SOURCE
make
export PATH=$(pwd):$PATH
cd ../cpu_rec
python -c 'import sys;print(sys.version)'
- name: Install elfesteem
run: |
git clone https://github.com/LRGH/elfesteem
- name: Analyze /bin/sh
run: |
python ./cpu_rec.py /bin/sh