Update build-project.yml

This commit is contained in:
DJ2LS 2021-09-05 15:34:28 +02:00 committed by GitHub
parent 2a61b70235
commit 063cb368df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,18 +60,12 @@ jobs:
- name: Build Linux
if: matrix.os == 'ubuntu-latest'
working-directory: tnc
run: |
pyinstaller -F daemon.py -n daemon
pyinstaller -F main.py -n tnc
- name: Build codec2 Linux - name: Build codec2 Linux
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
# working-directory: tnc working-directory: tnc
run: | run: |
cd ~ #cd ~
git clone https://github.com/drowe67/codec2.git git clone https://github.com/drowe67/codec2.git
cd codec2 && mkdir build_linux && cd build_linux cd codec2 && mkdir build_linux && cd build_linux
cmake ../ cmake ../
@ -79,22 +73,30 @@ jobs:
- name: Build LPCNet Linux - name: Build LPCNet Linux
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
# working-directory: tnc working-directory: tnc
run: | run: |
cd ~ #cd ~
git clone https://github.com/drowe67/LPCNet git clone https://github.com/drowe67/LPCNet
cd LPCNet && mkdir build_linux && cd build_linux cd LPCNet && mkdir build_linux && cd build_linux
cmake -DCODEC2_BUILD_DIR=~/codec2/build_linux ../ cmake -DCODEC2_BUILD_DIR=~/tnc/codec2/build_linux ../
make make
- name: ReBuild codec2 with LPCNet Linux - name: ReBuild codec2 with LPCNet Linux
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
# working-directory: tnc working-directory: tnc
run: | run: |
cd ~/codec2/build_linux && rm -Rf * cd ./codec2/build_linux && rm -Rf *
cmake -DLPCNET_BUILD_DIR=~/LPCNet/build_linux .. cmake -DLPCNET_BUILD_DIR=~/tnc/LPCNet/build_linux ..
make make
- name: Build Linux
if: matrix.os == 'ubuntu-latest'
working-directory: tnc
run: |
pyinstaller -F daemon.py -n daemon
pyinstaller -F main.py -n tnc
- name: LIST ALL FILES - name: LIST ALL FILES
shell: bash shell: bash
run: | run: |
@ -110,16 +112,16 @@ jobs:
- name: Copy codec2 to TNC Linux - name: Copy codec2 to TNC Linux
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
# working-directory: tnc working-directory: tnc
run: | run: |
cp -R ~/codec2 ./tnc/dist cp -R ./codec2 ./tnc/dist
ls -R ls -R
- name: Copy LPCNet to TNC Linux - name: Copy LPCNet to TNC Linux
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
# working-directory: tnc working-directory: tnc
run: | run: |
cp -R ~/LPCNet ./tnc/dist cp -R ./LPCNet ./tnc/dist
ls -R ls -R