aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/cmake-sm1000.yml
diff options
context:
space:
mode:
authorAuthor Name <[email protected]>2023-07-07 12:20:59 +0930
committerDavid Rowe <[email protected]>2023-07-07 12:29:06 +0930
commitac7c48b4dee99d4c772f133d70d8d1b38262fcd2 (patch)
treea2d0ace57a9c0e2e5b611c4987f6fed1b38b81e7 /.github/workflows/cmake-sm1000.yml
shallow zip-file copy from codec2 e9d726bf20
Diffstat (limited to '.github/workflows/cmake-sm1000.yml')
-rw-r--r--.github/workflows/cmake-sm1000.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/cmake-sm1000.yml b/.github/workflows/cmake-sm1000.yml
new file mode 100644
index 0000000..cce1bbe
--- /dev/null
+++ b/.github/workflows/cmake-sm1000.yml
@@ -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