diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a19d99537..2422b111c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,9 +19,39 @@ jobs: - name: Build FFTS Library shell: bash - run: pushd /tmp/ffts && mkdir build && cd build && cmake ../ && make && sudo make install && popd + run: pushd /tmp/ffts && mkdir build && cd build && cmake .. -DENABLE_SHARED=ON && make -j4 && sudo make install && popd - name: Build shell: bash working-directory: ${{runner.workspace}}/scopehal-apps - run: mkdir build && cd build && cmake ../ && make + run: mkdir build && cd build && cmake ../ && make -j4 + + windows: + runs-on: windows-latest + + defaults: + run: + shell: msys2 {0} + + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + + - uses: msys2/setup-msys2@v2 + with: + update: true + install: mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-make mingw-w64-x86_64-glm mingw-w64-x86_64-libsigc++ mingw-w64-x86_64-gtkmm3 mingw-w64-x86_64-yaml-cpp mingw-w64-x86_64-glew + + - name: Clone FFTS Repository + shell: bash + working-directory: ${{runner.workspace}} + run: git clone https://github.com/anthonix/ffts.git + + - name: Build FFTS Library + working-directory: ${{runner.workspace}}/ffts + run: mkdir build && cd build && cmake -G"MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=$MSYSTEM_PREFIX -DENABLE_SHARED=ON .. && mingw32-make -j4 && mingw32-make install + + - name: Build + working-directory: ${{runner.workspace}}/scopehal-apps + run: mkdir build && cd build && cmake -G"MinGW Makefiles" -DLIBFFTS_INCLUDE_DIR=/mingw64/include/ffts/ -DLIBFFTS_LIBRARIES=/mingw64/lib/libffts_static.a ./.. && mingw32-make -j4