init
This commit is contained in:
25
pack_and_upload.ps1
Normal file
25
pack_and_upload.ps1
Normal file
@@ -0,0 +1,25 @@
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
# Navigate to Mingw and package Debug and Release
|
||||
cd mingw-windows
|
||||
Write-Host "Packaging MinGW Release version..." -ForegroundColor Green
|
||||
conan export-pkg . -s compiler=gcc -s compiler.version=7 -s compiler.cppstd=14 -s compiler.libcxx=libstdc++11 -s os=Windows -s arch=x86_64 -s build_type=Release
|
||||
|
||||
Write-Host "Packaging MinGW Debug version..." -ForegroundColor Green
|
||||
conan export-pkg . -s compiler=gcc -s compiler.version=7 -s compiler.cppstd=14 -s compiler.libcxx=libstdc++11 -s os=Windows -s arch=x86_64 -s build_type=Debug
|
||||
cd ..
|
||||
|
||||
# Navigate to MSVC and package Debug and Release
|
||||
cd msvc-windows
|
||||
Write-Host "Packaging MSVC Release version..." -ForegroundColor Green
|
||||
conan export-pkg . -s compiler=msvc -s compiler.version=191 -s compiler.cppstd=14 -s compiler.runtime=dynamic -s compiler.runtime_type=Release -s os=Windows -s arch=x86_64 -s build_type=Release
|
||||
|
||||
Write-Host "Packaging MSVC Debug version..." -ForegroundColor Green
|
||||
conan export-pkg . -s compiler=msvc -s compiler.version=191 -s compiler.cppstd=14 -s compiler.runtime=dynamic -s compiler.runtime_type=Debug -s os=Windows -s arch=x86_64 -s build_type=Debug
|
||||
cd ..
|
||||
|
||||
Write-Host "Uploading all configurations to Gitea..." -ForegroundColor Green
|
||||
# Push to the remote (it uploads all 4 variants of qt/5.14.2)
|
||||
conan upload qt/5.14.2 -r gitea -c
|
||||
|
||||
Write-Host "All done! Fast and lightweight packages are live." -ForegroundColor Green
|
||||
Reference in New Issue
Block a user