Skip to content

Commit

Permalink
Add multiplatform CI
Browse files Browse the repository at this point in the history
  • Loading branch information
twizmwazin committed Aug 17, 2023
1 parent 7c7fbc2 commit 2ca0b3f
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 66 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
jobs:
ci:
uses: angr/ci-settings/.github/workflows/angr-ci.yml@master
windows:
uses: .github/workflows/windows.yml
macos:
uses: .github/workflows/macos.yml
docs:
runs-on: ubuntu-22.04
steps:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test on macOS

on:
workflow_dispatch:
workflow_call:

jobs:
macos:
name: Test macOS
runs-on: macos-12
steps:
- uses: actions/checkout@v3
with:
path: pyvex
submodules: true
- 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: |
source $HOME/venv/bin/activate
pip install git+https://github.com/angr/archinfo.git
name: Install dependencies
- run: |
source $HOME/venv/bin/activate
pip install ./pyvex[testing]
name: Install
- run: |
source $HOME/venv/bin/activate
pytest -n auto pyvex
name: Run pytest
66 changes: 0 additions & 66 deletions .github/workflows/smoketest.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ docs =
myst-parser
sphinx
sphinx-autodoc-typehints
testing =
pytest

[options.package_data]
pyvex =
Expand Down

0 comments on commit 2ca0b3f

Please sign in to comment.