diff --git a/.github/workflows/build-project.yml b/.github/workflows/build-project.yml index e8743b11..ac9cf8c2 100644 --- a/.github/workflows/build-project.yml +++ b/.github/workflows/build-project.yml @@ -1,8 +1,8 @@ name: Build/PROJECT on: push: - tags: - - '*' + #tags: + #- '*' jobs: @@ -35,7 +35,7 @@ jobs: - name: Install Linux dependencies if: matrix.os == 'ubuntu-latest' run: | - sudo apt install portaudio19-dev + sudo apt install portaudio19-dev build-essential cmake python -m pip install --upgrade pip pip3 install pyaudio pip3 install psutil @@ -48,7 +48,41 @@ jobs: run: | pyinstaller -F daemon.py -n daemon pyinstaller -F main.py -n tnc + + - name: Build codec2 Linux + if: matrix.os == 'ubuntu-latest' + # working-directory: tnc + run: | + cd ~ + git clone https://github.com/drowe67/codec2.git + cd codec2 && mkdir build_linux && cd build_linux + cmake ../ + make + - name: Build LPCNet Linux + if: matrix.os == 'ubuntu-latest' + # working-directory: tnc + run: | + cd ~ + git clone https://github.com/drowe67/LPCNet + cd LPCNet && mkdir build_linux && cd build_linux + cmake -DCODEC2_BUILD_DIR=~/codec2/build_linux ../ + make + + - name: ReBuild codec2 with LPCNet Linux + if: matrix.os == 'ubuntu-latest' + # working-directory: tnc + run: | + cd ~/codec2/build_linux && rm -Rf * + cmake -DLPCNET_BUILD_DIR=~/LPCNet/build_linux .. + make + + - name: Copy codec2 to TNC Linux + if: matrix.os == 'ubuntu-latest' + # working-directory: tnc + run: | + cp ~/codec2 ./tnc/dist + ls -R - name: Compress Linux shell: bash