Update build-project.yml

This commit is contained in:
DJ2LS 2021-08-28 14:34:23 +02:00 committed by GitHub
parent 3aff144d77
commit b9906f0f7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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