Fix arm64 CI.

This commit is contained in:
aouinizied 2022-03-08 17:35:00 +01:00
parent 321c0aa75b
commit fcd17e504b

View file

@ -40,7 +40,14 @@ jobs:
run: |
${{ matrix.python-version }} -m pip install -r dev_requirements.txt
- name: Build Engine dependencies
- name: Check cached dependencies
run: |
exit $(ls /usr/local/lib/ | grep libgpg-error.a | wc -l)
exit $(ls /usr/local/lib/ | grep libgcrypt.a | wc -l)
exit $(ls /usr/local/lib/ | grep libpcap.a | wc -l)
- name: Build Engine dependencies (non changing)
if: failure()
run: |
git clone --branch libgpg-error-1.42 https://github.com/gpg/libgpg-error
cd libgpg-error
@ -65,18 +72,20 @@ jobs:
sudo make install
cd ..
rm -rf libpcap
- name: Build Engine dependencies (changing)
run: |
git clone --branch dev https://github.com/ntop/nDPI.git
cd nDPI
./autogen.sh --with-local-libgcrypt
./configure
make
sudo mkdir /usr/local/include/ndpi
sudo cp -a src/include/. /usr/local/include/ndpi/
sudo cp example/ndpiReader /usr/local/bin/ndpiReader
sudo cp src/lib/libndpi.a /usr/local/lib/libndpi.a
cd ..
rm -rf nDPI
${{ matrix.python-version }} setup.py bdist_wheel
python setup.py bdist_wheel
- name: Generated wheel
run: |