Android Packed Relocations #98
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: LIEF PR | |
on: [pull_request, workflow_dispatch] | |
env: | |
python-osx-version: '3.10' | |
python-win-version: '3.10' | |
jobs: | |
osx: | |
runs-on: macos-11.0 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.python-osx-version }} | |
- name: Install system dependencies | |
run: | | |
brew install cmake ninja ccache | |
python -m pip install --upgrade pip setuptools wheel | |
- name: Build with Python ${{ env.python-osx-version }} & Test | |
shell: bash | |
env: | |
LIEF_SAMPLES_DIR: "/tmp/samples" | |
LIEF_BUILD_DIR: "/tmp/lief-build" | |
run: | | |
python -m pip install -r tests/requirements.txt | |
python tests/dl_samples.py ${LIEF_SAMPLES_DIR} | |
cd api/python | |
PYLIEF_CONF=${GITHUB_WORKSPACE}/scripts/osx/osx-testing-x64.toml \ | |
python -m pip install -e . | |
cd ${GITHUB_WORKSPACE} | |
python tests/run_pytest.py | |
python tests/run_tools_check.py ${BUILD_DIR}/temp | |
ctest --output-on-failure --test-dir ${BUILD_DIR}/temp | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Build & Test | |
shell: bash | |
env: | |
PYTHON_VERSION: 39 | |
run: | | |
docker run --rm \ | |
-e PYTHON_VERSION=$PYTHON_VERSION \ | |
-e PYTHON_BINARY=/opt/python/cp39-cp39/bin/python3.9 \ | |
-v $GITHUB_WORKSPACE:/src \ | |
liefproject/manylinux_2_28_x86_64 bash /src/scripts/docker/test-linux-x64 | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ env.python-win-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.python-win-version }} | |
architecture: x64 | |
- name: Install system dependencies | |
run: | | |
choco install ninja | |
python -m pip install --upgrade pip setuptools | |
- uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
toolset: "14.16" | |
- name: Set env variables | |
run: | | |
chcp 65001 #set code page to utf-8 | |
echo ("LIEF_SAMPLES_DIR=" + $env:RUNNER_TEMP + "/samples") >> $env:GITHUB_ENV | |
echo ("LIEF_BUILD_DIR=" + $env:RUNNER_TEMP + "/lief-build") >> $env:GITHUB_ENV | |
echo ("PYLIEF_CONF=" + $env:GITHUB_WORKSPACE + "/scripts/windows/py-x64-test.toml") >> $env:GITHUB_ENV | |
- name: Build Python ${{ env.python-win-version }} | |
run: | | |
python -m pip install -r tests/requirements.txt | |
python tests/dl_samples.py %LIEF_SAMPLES_DIR% | |
cd api/python | |
python -m pip install -e . | |
shell: cmd | |
- name: Run tests | |
run: | | |
cd %GITHUB_WORKSPACE% | |
python tests/run_pytest.py | |
ctest --output-on-failure --test-dir %BUILD_DIR%/temp | |
shell: cmd | |