From 9ab04b2e9893d5071f2e0d21f8928b74d7a6b952 Mon Sep 17 00:00:00 2001 From: Kevin Phoenix Date: Fri, 5 Apr 2024 12:16:56 -0700 Subject: [PATCH] Add macOS CI This reverts commit b0572416d3ab48f9c15767578f334475598c48b8. --- .github/workflows/ci.yml | 2 ++ .github/workflows/macos.yml | 42 +++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .github/workflows/macos.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 695b5d60cb..b694325d42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,3 +12,5 @@ jobs: uses: angr/ci-settings/.github/workflows/angr-ci.yml@master windows: uses: ./.github/workflows/windows.yml + macos: + uses: ./.github/workflows/macos.yml diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000000..59f0c07d46 --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,42 @@ +name: Test on macOS + +on: + workflow_dispatch: + workflow_call: + +jobs: + macos: + name: Test macOS + runs-on: macos-12 + steps: + - uses: actions/checkout@v4 + with: + path: angr-management + - uses: actions/checkout@v4 + 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 "setuptools>=59" wheel cffi "unicorn==2.0.1.post1" + pip install git+https://github.com/angr/archinfo.git + pip install git+https://github.com/angr/pyvex.git + pip install git+https://github.com/angr/cle.git + pip install git+https://github.com/angr/claripy.git + pip install git+https://github.com/angr/ailment.git + pip install --no-build-isolation git+https://github.com/angr/angr.git + name: Install dependencies + - run: | + source $HOME/venv/bin/activate + pip install ./angr-management[testing] + name: Install angr-management + - run: | + source $HOME/venv/bin/activate + pytest -n auto angr-management + name: Run pytest