-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shallow zip-file copy from codec2 e9d726bf20
- Loading branch information
0 parents
commit ac7c48b
Showing
705 changed files
with
233,331 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Build SM1000 | ||
|
||
on: [pull_request] | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: Debug | ||
|
||
jobs: | ||
build: | ||
# The CMake configure and build commands are platform agnostic and should work equally | ||
# well on Windows or Mac. You can convert this to a matrix build if you need | ||
# cross-platform coverage. | ||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install packages | ||
shell: bash | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install octave octave-common octave-signal liboctave-dev gnuplot sox p7zip-full python3-numpy valgrind | ||
- name: Install ST Standard Peripheral Library (SM1000) | ||
working-directory: ${{github.workspace}}/stm32 | ||
shell: bash | ||
run: git clone https://github.com/whimsicalraps/STM32F4xx_DSP_StdPeriph_Lib | ||
|
||
- name: Install SM1000 prerequisites | ||
working-directory: ${{github.workspace}}/stm32 | ||
shell: bash | ||
run: sudo apt install gcc-arm-none-eabi | ||
|
||
- name: Build SM1000 | ||
working-directory: ${{github.workspace}}/stm32 | ||
shell: bash | ||
run: | | ||
mkdir build_stm32 | ||
cd build_stm32 | ||
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/STM32_Toolchain.cmake -DPERIPHLIBDIR=${{github.workspace}}/stm32/STM32F4xx_DSP_StdPeriph_Lib .. | ||
make |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Build Codec2 for Linux | ||
|
||
on: [pull_request] | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: Debug | ||
|
||
jobs: | ||
build: | ||
# The CMake configure and build commands are platform agnostic and should work equally | ||
# well on Windows or Mac. You can convert this to a matrix build if you need | ||
# cross-platform coverage. | ||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install packages | ||
shell: bash | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install octave octave-common octave-signal liboctave-dev gnuplot sox p7zip-full python3-numpy valgrind | ||
- name: Create Build Directory | ||
shell: bash | ||
run: mkdir $GITHUB_WORKSPACE/build_linux | ||
|
||
- name: Configure codec2 CMake | ||
shell: bash | ||
working-directory: ${{github.workspace}}/build_linux | ||
run: cmake -DUNITTEST=1 $GITHUB_WORKSPACE | ||
|
||
- name: Build LPCNet and Run ctests | ||
shell: bash | ||
run: | | ||
cd $HOME | ||
git clone https://github.com/drowe67/LPCNet.git | ||
cd LPCNet && mkdir -p build_linux && cd build_linux | ||
cmake .. && make && ctest | ||
- name: Build codec2 with LPCNet | ||
working-directory: ${{github.workspace}}/build_linux | ||
shell: bash | ||
run: | | ||
cmake -DLPCNET_BUILD_DIR=$HOME/LPCNet/build_linux -DUNITTEST=1 $GITHUB_WORKSPACE | ||
make -j4 | ||
- name: Run ctests | ||
working-directory: ${{github.workspace}}/build_linux | ||
shell: bash | ||
run: ctest --output-on-failure | ||
|
||
- name: Test library installation | ||
working-directory: ${{github.workspace}}/build_linux | ||
shell: bash | ||
run: cmake --install . --prefix "$HOME/codec2_install" && rm -rf "$HOME/codec2_install" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
build_linux | ||
stm32/build_stm32 | ||
stm32/libstm32f4.a | ||
stm32/unittest/lib/python/__pycache__/ | ||
stm32/unittest/src/libstm32f4.a | ||
stm32/unittest/src/*.map | ||
stm32/unittest/test_run/ | ||
*.pyc |
Oops, something went wrong.