sorting out GitHub action .yml ...

pull/42/head
drowe67 2021-12-31 13:34:29 +10:30 committed by David Rowe
parent 67effb03ac
commit 76e8910923
1 changed files with 10 additions and 17 deletions

View File

@ -19,27 +19,20 @@ jobs:
sudo apt-get update sudo apt-get update
sudo apt-get install octave octave-common octave-signal lgnuplot sox p7zip-full sudo apt-get install octave octave-common octave-signal lgnuplot sox p7zip-full
- name: Create Build Directory - name Build codec2
shell: bash shell: bash
run: mkdir $GITHUB_WORKSPACE/build_linux run: |
git clone https://github.com/drowe67/codec2.git
- name: Configure codec2 CMake cd codec2 && mkdir -p build_linux && cd build_linux
shell: bash cmake ..
working-directory: ${{github.workspace}}/build_linux make
run: cmake $GITHUB_WORKSPACE pwd
- name: Build codec2
working-directory: ${{github.workspace}}/build_linux
shell: bash
run: make -j4
- name: Build LPCNet - name: Build LPCNet
shell: bash shell: bash
run: | run: |
cd $HOME mkdir -p build_linux && cd build_linux
git clone https://github.com/drowe67/LPCNet.git cmake -DCODEC2_BUILD_DIR=$GITHUB_WORKSPACE/codec2/build_linux ..
cd LPCNet && mkdir -p build_linux && cd build_linux
cmake -DCODEC2_BUILD_DIR=$GITHUB_WORKSPACE/build_linux ..
make make
# simple test to make sure the code runs # simple test to make sure the code runs
cd src && sox ../../wav/wia.wav -t raw -r 16000 - | ./lpcnet_enc -s | ./lpcnet_dec -s > /dev/null cd src && sox ../../wav/wia.wav -t raw -r 16000 - | ./lpcnet_enc -s | ./lpcnet_dec -s > /dev/null