Merge pull request #679 from MrServo/master #462
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: enigma2-plugins build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Build enigma2-plugins | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
gcc: [11,13] | |
python: ['3.10','3.11','3.12'] | |
steps: | |
- name: Install prerequisites | |
run: | | |
sudo add-apt-repository -y ppa:deadsnakes/ppa | |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | |
sudo apt-get -q update | |
sudo apt remove -y libunwind-14-dev | |
sudo apt-get install -y g++-${{ matrix.gcc }} build-essential autoconf autotools-dev gettext python${{ matrix.python }}-dev libntirpc-dev | |
- uses: actions/checkout@v4 | |
with: | |
ref: 'master' | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Build plugins, gcc-${{ matrix.gcc }}, python ${{ matrix.python }} | |
env: | |
CC: "gcc-${{ matrix.gcc }}" | |
CXX: "g++-${{ matrix.gcc }}" | |
PY: "${{ matrix.python }}" | |
run: | | |
pip3 install six | |
sed -i '/PKG_CHECK_MODULES(ENIGMA2, enigma2)/d' ./configure.ac | |
sed -i '/PKG_CHECK_MODULES(LIBCRYPTO, libcrypto)/d' ./configure.ac | |
sed -i '/networkbrowser\/src\/lib\/Makefile/d' ./configure.ac | |
sed -i 's/^SUBDIRS = icons lib$/SUBDIRS = icons/' ./networkbrowser/src/Makefile.am | |
sudo cp /usr/include/ntirpc/rpc/* /usr/include/rpc/ | |
sudo cp /usr/include/ntirpc/netconfig.h /usr/include/ | |
sudo cp /usr/include/ntirpc/intrinsic.h /usr/include/ | |
sudo cp /usr/include/ntirpc/reentrant.h /usr/include/ | |
sudo cp /usr/include/ntirpc/misc/* /usr/include/misc/ | |
autoreconf -i | |
./configure --without-debug --with-po | |
make | |
rm -rf ./subsdownloader2 | |
if [ $PY != "3.12" ]; then rm -rf ./partnerbox2; fi | |
python -m compileall . |