-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
120 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 |
---|---|---|
@@ -1,133 +1,37 @@ | ||
name: FFTW3 Build | ||
name: Demo Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
# fftw-mingw64-build: | ||
# name: FFTW3 MinGW64 Build | ||
# runs-on: windows-2019 | ||
# steps: | ||
# - name: Set Mingw64 Ninja | ||
# run: | | ||
# (new-object System.Net.WebClient).DownloadFile('https://github.com/cristianadam/mingw-builds/releases/download/v11.2.0-rev3/x86_64-11.2.0-release-posix-seh-rt_v9-rev3.7z','mingw64.7z') | ||
# 7z x -aoa -oC:\ mingw64.7z | ||
# del mingw64.7z | ||
# (new-object System.Net.WebClient).DownloadFile('https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-win.zip','ninja-win.zip') | ||
# 7z x -aoa -oC:\ninja ninja-win.zip | ||
# del ninja-win.zip | ||
# (new-object System.Net.WebClient).DownloadFile('https://www.fftw.org/fftw-3.3.10.tar.gz','fftw-3.3.10.tar.gz') | ||
# 7z x -aoa fftw-3.3.10.tar.gz | ||
# 7z x -aoa -oC:\ fftw-3.3.10.tar | ||
# del fftw-3.3.10.tar.gz | ||
# del fftw-3.3.10.tar | ||
# - uses: msys2/setup-msys2@v2 | ||
# with: | ||
# msystem: mingw64 | ||
# - shell: msys2 {0} | ||
# run: | | ||
# pacman -S --noconfirm make | ||
# export PATH="/c/mingw64/bin:/c/ninja:$PATH" | ||
# cd /c/fftw-3.3.10 | ||
# ls | ||
# ./configure --prefix=/c/FFTW --enable-shared=no --enable-static=yes --enable-threads --enable-sse2 --enable-avx --enable-avx2 | ||
# mingw32-make -j | ||
# mingw32-make install | ||
# - name: Package Directories | ||
# run: | | ||
# 7z a FFTW_MinGW64_Static.7z C:\FFTW | ||
# - uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: FFTW_MinGW64_Static | ||
# path: FFTW_MinGW64_Static.7z | ||
|
||
fftw-vcpkg-mingw64-build: | ||
name: FFTW3 Vcpkg MinGW64 Build | ||
runs-on: windows-2019 | ||
demo-build: | ||
name: Demo Build | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Set Mingw64 Ninja | ||
run: | | ||
(new-object System.Net.WebClient).DownloadFile('https://github.com/cristianadam/mingw-builds/releases/download/v11.2.0-rev3/x86_64-11.2.0-release-posix-seh-rt_v9-rev3.7z','mingw64.7z') | ||
7z x -aoa -oC:\ mingw64.7z | ||
rm mingw64.7z | ||
7z x -aoa -oC:\ mingw64.7z ; rm mingw64.7z | ||
(new-object System.Net.WebClient).DownloadFile('https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-win.zip','ninja-win.zip') | ||
7z x -aoa -oC:\ninja ninja-win.zip | ||
rm ninja-win.zip | ||
- name: Build | ||
run: | | ||
$env:Path = "C:\mingw64\bin;C:\ninja;$env:Path" | ||
cd C:\vcpkg | ||
git pull | ||
./bootstrap-vcpkg.bat | ||
vcpkg install fftw3[avx2,threads]:x64-mingw-static | ||
- name: Package Directories | ||
run: | | ||
7z a FFTW_MinGW64_Static.7z C:\vcpkg\installed\x64-mingw-static\lib C:\vcpkg\installed\x64-mingw-static\include | ||
- uses: actions/upload-artifact@v3 | ||
7z x -aoa -oC:\ninja ninja-win.zip ; rm ninja-win.zip | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
with: | ||
name: FFTW_vcpkg_MinGW64_Static | ||
path: FFTW_MinGW64_Static.7z | ||
arch: amd64 | ||
toolset: 14.3 | ||
# - name: Package Directories | ||
# run: | | ||
# cp -r C:\curl_install\lib C:\cpr_install -Force | ||
# cp -r C:\curl_install\include C:\cpr_install -Force | ||
# 7z a cpr_MinGW64_Static.7z C:\cpr_install | ||
# - uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: cpr_MinGW64_Static | ||
# path: cpr_MinGW64_Static.7z | ||
# - name: Update Cpr Release | ||
# uses: softprops/action-gh-release@v1 | ||
# with: | ||
# tag_name: cpr-build | ||
# files: | | ||
# cpr_MinGW64_Static.7z | ||
|
||
libsndfile-mingw64-build: | ||
name: libsndfile MinGW64 Build | ||
runs-on: windows-2019 | ||
steps: | ||
- name: Set Mingw64 Ninja | ||
run: | | ||
(new-object System.Net.WebClient).DownloadFile('https://github.com/cristianadam/mingw-builds/releases/download/v11.2.0-rev3/x86_64-11.2.0-release-posix-seh-rt_v9-rev3.7z','mingw64.7z') | ||
7z x -aoa -oC:\ mingw64.7z | ||
rm mingw64.7z | ||
(new-object System.Net.WebClient).DownloadFile('https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-win.zip','ninja-win.zip') | ||
7z x -aoa -oC:\ninja ninja-win.zip | ||
rm ninja-win.zip | ||
(new-object System.Net.WebClient).DownloadFile('https://github.com/libsndfile/libsndfile/archive/refs/tags/1.1.0.zip','libsndfile-1.1.0.zip') | ||
7z x -aoa -oC:\ libsndfile-1.1.0.zip | ||
rm libsndfile-1.1.0.zip | ||
- name: Build | ||
run: | | ||
# $env:Path = "C:\mingw64\bin;C:\ninja;C:\ffmpeg\include;C:\ffmpeg\lib;C:\ffmpeg\bin;$env:Path" | ||
# $env:Path = "C:\openssl-1.1\x64\lib;C:\openssl-1.1\x64\include;C:\mingw64\bin;C:\ninja;C:\ffmpeg\include;C:\ffmpeg\lib;C:\ffmpeg\bin;C:\Strawberry\perl\bin;C:\hostedtoolcache\windows\Python\3.7.9\x64;C:\Program Files\PowerShell\7;C:\Program Files\CMake\bin;C:\Windows\System32\WindowsPowerShell\v1.0" | ||
$env:Path = "C:\mingw64\bin;C:\ninja;C:\vcpkg\installed\x64-mingw-static\lib;C:\vcpkg\installed\x64-mingw-static\include;$env:Path" | ||
vcpkg install libogg:x64-mingw-static libvorbis:x64-mingw-static libflac:x64-mingw-static opus:x64-mingw-static mp3lame:x64-mingw-static mpg123:x64-mingw-static | ||
$env:CMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" | ||
cd C:\libsndfile-1.1.0 | ||
mkdir build | ||
cd build | ||
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:\libsndfile -DBUILD_EXAMPLES=OFF | ||
ninja | ||
ninja install | ||
- name: Package Directories | ||
run: | | ||
7z a libsndfile_MinGW64_Static.7z C:\libsndfile C:\vcpkg\installed\x64-mingw-static\lib C:\vcpkg\installed\x64-mingw-static\include | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: libsndfile_MinGW64_Static | ||
path: libsndfile_MinGW64_Static.7z | ||
|
||
# libsndfile-vcpkg-mingw64-build: | ||
# name: libsndfile Vcpkg MinGW64 Build | ||
# runs-on: windows-2019 | ||
# steps: | ||
# - name: Set Mingw64 Ninja | ||
# run: | | ||
# (new-object System.Net.WebClient).DownloadFile('https://github.com/cristianadam/mingw-builds/releases/download/v11.2.0-rev3/x86_64-11.2.0-release-posix-seh-rt_v9-rev3.7z','mingw64.7z') | ||
# 7z x -aoa -oC:\ mingw64.7z | ||
# rm mingw64.7z | ||
# (new-object System.Net.WebClient).DownloadFile('https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-win.zip','ninja-win.zip') | ||
# 7z x -aoa -oC:\ninja ninja-win.zip | ||
# rm ninja-win.zip | ||
# - name: Build | ||
# run: | | ||
# $env:Path = "C:\mingw64\bin;C:\ninja;$env:Path" | ||
# cd C:\vcpkg | ||
# git pull | ||
# ./bootstrap-vcpkg.bat | ||
# vcpkg install libsndfile:x64-mingw-static | ||
# - name: Package Directories | ||
# run: | | ||
# 7z a libsndfile_MinGW64_Static.7z C:\vcpkg\installed\x64-mingw-static\lib C:\vcpkg\installed\x64-mingw-static\include | ||
# - uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: libsndfile_vcpkg_MinGW64_Static | ||
# path: libsndfile_MinGW64_Static.7z |