Add multiplatform CI #1
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: Test on Windows | |
on: | |
push: | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
windows: | |
name: Test Windows | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
path: pyvex | |
- uses: actions/checkout@v3 | |
with: | |
repository: angr/binaries | |
path: binaries | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
- run: python -m venv $HOME/venv | |
name: Create venv | |
shell: bash | |
- run: | | |
call %USERPROFILE%\venv\Scripts\activate | |
pip install git+https://github.com/angr/archinfo.git | |
name: Install dependencies | |
shell: cmd | |
- run: | | |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | |
call %USERPROFILE%\venv\Scripts\activate | |
pip install ./pyvex[testing] | |
name: Install | |
shell: cmd | |
- run: | | |
call %USERPROFILE%\venv\Scripts\activate | |
pytest -n auto pyvex | |
name: Run pytest | |
shell: cmd |