| 1 |
name: CI |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
pull_request: |
| 6 |
|
| 7 |
jobs: |
| 8 |
build: |
| 9 |
|
| 10 |
runs-on: ubuntu-22.04 |
| 11 |
|
| 12 |
steps: |
| 13 |
- uses: actions/checkout@v2 |
| 14 |
|
| 15 |
|
| 16 |
- name: Build |
| 17 |
run: | |
| 18 |
sudo apt-get -y install python2 |
| 19 |
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py |
| 20 |
python2 get-pip.py |
| 21 |
rm get-pip.py |
| 22 |
python2 -m pip install --upgrade setuptools wheel importlib_metadata packaging |
| 23 |
python3 -m pip install --upgrade setuptools wheel importlib_metadata packaging |
| 24 |
python2 setup.py sdist bdist_wheel |
| 25 |
python3 setup.py sdist bdist_wheel |
| 26 |
- name: Install |
| 27 |
run: | |
| 28 |
python2 -m pip install dist/ROPGadget*py2*.whl |
| 29 |
python3 -m pip install dist/ropgadget*py3*.whl |
| 30 |
- name: Run tests |
| 31 |
run: | |
| 32 |
cd test-suite-binaries |
| 33 |
./test.sh |
| 34 |
./test.sh python2 |
| 35 |
cd .. |