[Github Actions] Fix pygraphviz installation (OSX ARM64) #2
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: OSX ARM64 build/test workflow | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build and test Thug (Python ${{ matrix.python-version }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.10', '3.11', '3.12'] | |
os: [macos-14] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
brew install git automake autoconf libtool | |
brew install graphviz tesseract libmagic | |
brew install --cask wkhtmltopdf | |
ln -s $(which glibtoolize) /usr/local/bin/libtoolize | |
pip install --upgrade pip setuptools wheel tox tox-gh-actions appdirs | |
BUILD_LIB=1 pip install --use-pep517 ssdeep | |
pip install --use-pep517 \ | |
--config-settings="--global-option=build_ext" \ | |
--config-settings="--build-option=-I$(brew --prefix graphviz)/include/" \ | |
--config-settings="--build-option=-L$(brew --prefix graphviz)/lib/" \ | |
pygraphviz | |
- name: Install libemu | |
run: | | |
git clone https://github.com/buffer/libemu.git | |
cd libemu | |
autoreconf -v -i | |
./configure | |
sudo make install | |
cd - | |
- name: Install Thug configuration | |
run: | | |
sudo mkdir -p /etc/thug/ | |
sudo cp -R thug/conf/* /etc/thug/ | |
- name: Test Thug | |
run: | | |
tox |