-
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Try to put the windows store build in GH actions and add a MinGW…
… action
- Loading branch information
Showing
64 changed files
with
208 additions
and
73 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,93 @@ | ||
name: Windows build | ||
on: push | ||
|
||
jobs: | ||
winstore: | ||
name: Windows (store) | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Dependencies | ||
shell: bash | ||
run: | | ||
./ci/win32.deps.sh | ||
- name: Build | ||
shell: cmd | ||
run: | | ||
call "%cd%\ci\win32store.build.cmd" | ||
- name: Create certificate | ||
shell: pwsh | ||
env: | ||
OSSIA_WIN32_CERT_SUBJECT: ${{ secrets.OSSIA_WIN32_CERT_SUBJECT }} | ||
OSSIA_WIN32_CERT_PASSWORD: ${{ secrets.OSSIA_WIN32_CERT_PASSWORD }} | ||
run: | | ||
.\ci\win32store.cert.ps1 | ||
- name: Deploy | ||
shell: cmd | ||
env: | ||
OSSIA_WIN32_CERT_SUBJECT: ${{ secrets.OSSIA_WIN32_CERT_SUBJECT }} | ||
OSSIA_WIN32_CERT_PASSWORD: ${{ secrets.OSSIA_WIN32_CERT_PASSWORD }} | ||
run: | | ||
call "%cd%\ci\win32store.deploy.cmd" | ||
- name: Upload build | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: windows-store | ||
path: | | ||
output/*.appxbundle | ||
mingw: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- { sys: mingw64, env: x86_64 } | ||
- { sys: mingw32, env: i686 } | ||
- { sys: ucrt64, env: ucrt-x86_64 } | ||
- { sys: clang64, env: clang-x86_64 } | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Setup msys2 and mingw-w64 | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: ${{matrix.sys}} | ||
update: true | ||
pacboy: >- | ||
cmake:p | ||
ninja:p | ||
toolchain:p | ||
qt6-base:p | ||
qt6-declarative:p | ||
qt6-websockets:p | ||
qt6-serialport:p | ||
qt6-shadertools:p | ||
qt6-5compat:p | ||
qt6-scxml:p | ||
qt6-tools:p | ||
boost:p | ||
portaudio:p | ||
fftw:p | ||
ffmpeg:p | ||
SDL2:p | ||
- name: Dependencies | ||
shell: msys2 {0} | ||
run: | | ||
./ci/mingw.deps.sh | ||
- name: Build | ||
shell: msys2 {0} | ||
run: | | ||
./ci/mingw.build.sh |
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
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
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
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,20 +1,15 @@ | ||
#!/bin/bash -eux | ||
|
||
sudo pacman -S --needed --noconfirm \ | ||
mingw-w64-qt5-base mingw-w64-qt5-declarative mingw-w64-qt5-serialport mingw-w64-qt5-websockets \ | ||
mingw-w64-portaudio \ | ||
mingw-w64-fftw \ | ||
mingw-w64-ffmpeg \ | ||
ninja \ | ||
mingw-w64-gcc | ||
# Done in the GH action for caching: | ||
# pacboy -S --needed --noconfirm \ | ||
# cmake:p ninja:p toolchain:p \ | ||
# qt6-base:p qt6-declarative:p qt6-websockets:p qt6-serialport:p \ | ||
# qt6-shadertools:p qt6-5compat:p qt6-scxml:p qt6-tools:p \ | ||
# boost:p portaudio:p fftw:p ffmpeg:p \ | ||
# SDL2:p | ||
|
||
# sudo pacman -S --needed --noconfirm \ | ||
# mingw-w64-x86_64-qt5 \ | ||
# mingw-w64-x86_64-portaudio \ | ||
# mingw-w64-x86_64-fftw \ | ||
# mingw-w64-x86_64-ffmpeg \ | ||
# mingw-w64-x86_64-cmake \ | ||
# mingw-w64-x86_64-ninja \ | ||
# mingw-w64-x86_64-gcc | ||
# TODO: | ||
# jack2:p not available on clang? | ||
# lv2 suil lilv | ||
|
||
source ci/common.deps.sh | ||
# source ci/common.deps.sh |
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,19 +1,30 @@ | ||
set SCORE_DIR=%cd% | ||
mkdir build | ||
cd build | ||
|
||
mkdir install | ||
|
||
set PATH=%PATH%;c:\ossia-sdk\llvm\bin | ||
cmake -GNinja %BUILD_SOURCESDIRECTORY% ^ | ||
cmake -GNinja %SCORE_DIR% ^ | ||
-DCMAKE_C_COMPILER=c:/ossia-sdk/llvm/bin/clang.exe ^ | ||
-DCMAKE_CXX_COMPILER=c:/ossia-sdk/llvm/bin/clang++.exe ^ | ||
-DCMAKE_C_FLAGS=" -flto -fno-stack-protector -Ofast -fno-finite-math-only -D_WIN32_WINNT_=0x0A00 -DWINVER=0x0A00 " ^ | ||
-DCMAKE_CXX_FLAGS=" -flto -fno-stack-protector -Ofast -fno-finite-math-only -D_WIN32_WINNT_=0x0A00 -DWINVER=0x0A00 " ^ | ||
-DOSSIA_SDK=c:\ossia-sdk ^ | ||
-DCMAKE_INSTALL_PREFIX=install ^ | ||
-DCMAKE_BUILD_TYPE=Release ^ | ||
-DCMAKE_UNITY_BUILD=1 ^ | ||
-DOSSIA_STATIC_EXPORT=0 ^ | ||
-DSCORE_INSTALL_HEADERS=0 ^ | ||
-DSCORE_DISABLED_PLUGINS="score-plugin-faust;score-plugin-jit;score-plugin-pd" ^ | ||
-DSCORE_DISABLED_PLUGINS="score-plugin-faust;score-plugin-jit" ^ | ||
-DSCORE_DEPLOYMENT_BUILD=1 ^ | ||
-DSCORE_MSSTORE_DEPLOYMENT=1 | ||
-DSCORE_MSSTORE_DEPLOYMENT=1 ^ | ||
-DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=1 | ||
|
||
cmake --build . | ||
cmake --build . --target install | ||
cmake --build . --target install/strip | ||
REM | ||
REM llvm-strip install/score.exe | ||
REM llvm-strip install/ossia-score-vstpuppet.exe | ||
REM llvm-strip install/ossia-score-vst3puppet.exe | ||
REM |
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,14 @@ | ||
$cert = New-SelfSignedCertificate ` | ||
-Type Custom ` | ||
-Subject $Env:OSSIA_WIN32_CERT_SUBJECT ` | ||
-KeyUsage DigitalSignature ` | ||
-FriendlyName "ossia.io" ` | ||
-CertStoreLocation "Cert:\CurrentUser\My" ` | ||
-TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.3", "2.5.29.19={text}") | ||
|
||
$password = ConvertTo-SecureString -String $Env:OSSIA_WIN32_CERT_PASSWORD -Force -AsPlainText | ||
|
||
Export-PfxCertificate ` | ||
-cert "Cert:\CurrentUser\My\$($cert.Thumbprint)" ` | ||
-FilePath ossia-selfsigned.pfx ` | ||
-Password $password |
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,22 +1,47 @@ | ||
set SCORE_PATH=%CD% | ||
cd build | ||
cd install | ||
|
||
REM makepri createconfig /cf priconfig.xml /dq en-US | ||
REM makepri.exe new /pr %cd% /cf %cd%\priconfig.xml | ||
@echo off | ||
set SCORE_PATH=%cd% | ||
set BUILD_PATH=%cd%\build | ||
set OSSIA_WIN32_CERTIFICATE=%SCORE_PATH%\ossia-selfsigned.pfx | ||
|
||
cd %BUILD_PATH% | ||
rmdir output /s | ||
|
||
cd install | ||
|
||
REM Cleanup unused things | ||
rmdir faust\docs /s | ||
|
||
del /s /q *.eot | ||
del /s /q *.ttf | ||
del /s /q *.woff | ||
del /s /q *.md | ||
del /s /q *.css | ||
del /s /q *.html | ||
del /s /q *.gz | ||
del /s /q *.jpg | ||
del /s /q *.jpeg | ||
del /s /q *.xml | ||
del /s /q *.pri | ||
|
||
REM Create resource files | ||
REM (Necessary for multi-scale images, etc.) | ||
makepri.exe createconfig /cf priconfig.xml /dq en-US | ||
makepri.exe new /pr %cd% /cf %cd%\priconfig.xml /mn %cd%\manifests\Package.appxmanifest | ||
|
||
REM Embed manifest inside score.exe | ||
mt.exe -nologo -manifest score.exe.manifest -outputresource:"score.exe;#1" | ||
|
||
signtool sign /fd sha256 /a /f %OSSIA_WIN32_CERTIFICATE% /p %OSSIA_WIN32_CERTIFICATE_PASSWORD% /debug score.exe | ||
signtool sign /fd sha256 /a /f %OSSIA_WIN32_CERTIFICATE% /p %OSSIA_WIN32_CERTIFICATE_PASSWORD% /debug libc++.dll | ||
signtool sign /fd sha256 /a /f %OSSIA_WIN32_CERTIFICATE% /p %OSSIA_WIN32_CERTIFICATE_PASSWORD% /debug libunwind.dll | ||
signtool sign /fd sha256 /a /f %OSSIA_WIN32_CERTIFICATE% /p %OSSIA_WIN32_CERTIFICATE_PASSWORD% /debug libwinpthread-1.dll | ||
signtool sign /fd sha256 /a /f %OSSIA_WIN32_CERTIFICATE% /p %OSSIA_WIN32_CERTIFICATE_PASSWORD% /debug ossia-score-vstpuppet.exe | ||
signtool sign /fd sha256 /a /f %OSSIA_WIN32_CERTIFICATE% /p %OSSIA_WIN32_CERTIFICATE_PASSWORD% /debug ossia-score-vst3puppet.exe | ||
REM Sign every binary file | ||
signtool sign /fd sha256 /a /f %OSSIA_WIN32_CERTIFICATE% /p %OSSIA_WIN32_CERT_PASSWORD% score.exe | ||
signtool sign /fd sha256 /a /f %OSSIA_WIN32_CERTIFICATE% /p %OSSIA_WIN32_CERT_PASSWORD% ossia-score-vstpuppet.exe | ||
signtool sign /fd sha256 /a /f %OSSIA_WIN32_CERTIFICATE% /p %OSSIA_WIN32_CERT_PASSWORD% ossia-score-vst3puppet.exe | ||
signtool sign /fd sha256 /a /f %OSSIA_WIN32_CERTIFICATE% /p %OSSIA_WIN32_CERT_PASSWORD% libc++.dll | ||
signtool sign /fd sha256 /a /f %OSSIA_WIN32_CERTIFICATE% /p %OSSIA_WIN32_CERT_PASSWORD% libunwind.dll | ||
signtool sign /fd sha256 /a /f %OSSIA_WIN32_CERTIFICATE% /p %OSSIA_WIN32_CERT_PASSWORD% libwinpthread-1.dll | ||
|
||
makeappx build /v /f %SCORE_PATH%\cmake\Deployment\Windows\store\PackagingLayout.xml /op ..\output /bv %GITTAGNOV%.0 /pv %GITTAGNOV%.0 /ca | ||
REM Create the appxbundle | ||
makeappx build /v /f %SCORE_PATH%\cmake\Deployment\Windows\store\PackagingLayout.xml /op %SCORE_PATH%\output /bv %GITTAGNOV%.0 /pv %GITTAGNOV%.0 /ca | ||
|
||
signtool sign /fd sha256 /a /f %OSSIA_WIN32_CERTIFICATE% /p %OSSIA_WIN32_CERTIFICATE_PASSWORD% /debug %SCORE_PATH%\build\output\ossia-score.appxbundle | ||
REM Sign the appxbundle | ||
signtool sign /fd sha256 /a /f %OSSIA_WIN32_CERTIFICATE% /p %OSSIA_WIN32_CERT_PASSWORD% %SCORE_PATH%\output\ossia-score.appxbundle | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.23 KB
cmake/Deployment/Windows/store/images/Square150x150Logo.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.39 KB
cmake/Deployment/Windows/store/images/Square150x150Logo.scale-125.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.87 KB
cmake/Deployment/Windows/store/images/Square150x150Logo.scale-150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.85 KB
cmake/Deployment/Windows/store/images/Square150x150Logo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22.5 KB
cmake/Deployment/Windows/store/images/Square150x150Logo.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+814 Bytes
...nt/Windows/store/images/Square44x44Logo.altform-lightunplated_targetsize-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.34 KB
...nt/Windows/store/images/Square44x44Logo.altform-lightunplated_targetsize-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25.1 KB
...t/Windows/store/images/Square44x44Logo.altform-lightunplated_targetsize-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.97 KB
...nt/Windows/store/images/Square44x44Logo.altform-lightunplated_targetsize-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.31 KB
...nt/Windows/store/images/Square44x44Logo.altform-lightunplated_targetsize-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+803 Bytes
...loyment/Windows/store/images/Square44x44Logo.altform-unplated_targetsize-16.png
Oops, something went wrong.
Binary file added
BIN
+25.2 KB
...oyment/Windows/store/images/Square44x44Logo.altform-unplated_targetsize-256.png
Oops, something went wrong.
Binary file added
BIN
+1.98 KB
...loyment/Windows/store/images/Square44x44Logo.altform-unplated_targetsize-32.png
Oops, something went wrong.
Binary file added
BIN
+3.33 KB
...loyment/Windows/store/images/Square44x44Logo.altform-unplated_targetsize-48.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+613 Bytes
cmake/Deployment/Windows/store/images/Square44x44Logo.targetsize-16.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+1.34 KB
...loyment/Windows/store/images/Square44x44Logo.targetsize-24_altform-unplated.png
Oops, something went wrong.
Binary file added
BIN
+18.5 KB
cmake/Deployment/Windows/store/images/Square44x44Logo.targetsize-256.png
Oops, something went wrong.
Binary file added
BIN
+1.42 KB
cmake/Deployment/Windows/store/images/Square44x44Logo.targetsize-32.png
Oops, something went wrong.
Binary file added
BIN
+2.46 KB
cmake/Deployment/Windows/store/images/Square44x44Logo.targetsize-48.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
Diff not rendered.
Diff not rendered.
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
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