Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove non-essential Windows x86 deps builds #196

Merged
merged 4 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,11 @@ jobs:
strategy:
fail-fast: true
matrix:
target: [x64, x86]
target: [x64]
include:
- target: x64
config: Release
type: static
- target: x86
config: Release
type: static
defaults:
run:
shell: pwsh
Expand Down Expand Up @@ -502,6 +499,7 @@ jobs:
Remove-Item -Recurse -Force ${{ github.workspace }}/windows_build_temp

- name: Build qrcodegencpp Debug
if: matrix.target == 'x64'
shell: pwsh
run: |
# Build qrcodegencpp Debug
Expand Down Expand Up @@ -536,7 +534,7 @@ jobs:
strategy:
fail-fast: true
matrix:
target: [x64, x86]
target: [x64]
config: [RelWithDebInfo, Debug]

steps:
Expand Down Expand Up @@ -572,7 +570,7 @@ jobs:
strategy:
fail-fast: true
matrix:
target: [x64, x86]
target: [x64]
needs: [pre-checks, windows-qt6-build]
steps:
- name: Checkout
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,11 @@ jobs:
strategy:
fail-fast: true
matrix:
target: [x64, x86]
target: [x64]
include:
- target: x64
config: Release
type: static
- target: x86
config: Release
type: static
defaults:
run:
shell: pwsh
Expand Down Expand Up @@ -271,6 +268,7 @@ jobs:
Remove-Item -Recurse -Force ${{ github.workspace }}/windows_build_temp

- name: Build qrcodegencpp Debug
if: matrix.target == 'x64'
shell: pwsh
run: |
# Build qrcodegencpp Debug
Expand Down Expand Up @@ -343,7 +341,7 @@ jobs:
strategy:
fail-fast: true
matrix:
target: [x64, x86]
target: [x64]
config: [RelWithDebInfo, Debug]

steps:
Expand Down
14 changes: 9 additions & 5 deletions Build-Dependencies.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,15 @@ function Package-Dependencies {
dependencies {
Get-ChildItem ./bin/*.lib | Move-Item -Destination ./lib
Get-ChildItem ./bin -Exclude 'lua51.dll','libcurl.dll','swig.exe','Lib' | Remove-Item
Get-ChildItem ./cmake/pcre2*,./lib/pcre2* | Remove-Item
Remove-Item -Recurse ./lib/pkgconfig
Remove-Item -Recurse ./man
Get-ChildItem ./share -Exclude 'cmake' | Remove-Item -Recurse
Get-ChildItem ./share/cmake -Exclude 'nlohmann_json*' | Remove-Item -Recurse

if ( $script:Target -ne 'x86' ) {
Get-ChildItem ./cmake/pcre2*,./lib/pcre2* | Remove-Item
Remove-Item -Recurse ./lib/pkgconfig
Remove-Item -Recurse ./man
Get-ChildItem ./share -Exclude 'cmake' | Remove-Item -Recurse
Get-ChildItem ./share/cmake -Exclude 'nlohmann_json*' | Remove-Item -Recurse
}

$ArchiveFileName = "windows-deps-${CurrentDate}-${Target}.zip"
}
qt {
Expand Down
3 changes: 2 additions & 1 deletion deps.ffmpeg/10-zlib.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ param(
PatchFile = "${PSScriptRoot}/patches/zlib/0001-fix-unistd-detection.patch"
HashSum = "2114ff9ebfc79765019353b06915a09f4dc4802ce722d2df6e640a59666dd875"
}
)
),
[array] $Targets = @('x64')
)

function Setup {
Expand Down
3 changes: 2 additions & 1 deletion deps.ffmpeg/20-libpng.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ param(
[string] $Name = 'libpng',
[string] $Version = '1.6.43',
[string] $Uri = 'https://sourceforge.net/projects/libpng/files/libpng16/1.6.43/lpng1643.zip',
[string] $Hash = "${PSScriptRoot}/checksums/lpng1643.zip.sha256"
[string] $Hash = "${PSScriptRoot}/checksums/lpng1643.zip.sha256",
[array] $Targets = @('x64')
)

function Setup {
Expand Down
3 changes: 2 additions & 1 deletion deps.ffmpeg/20-opus.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ param(
[string] $Name = 'opus',
[string] $Version = '1.5.2',
[string] $Uri = 'https://github.com/xiph/opus.git',
[string] $Hash = "ddbe48383984d56acd9e1ab6a090c54ca6b735a6"
[string] $Hash = "ddbe48383984d56acd9e1ab6a090c54ca6b735a6",
[array] $Targets = @('x64')
)

function Setup {
Expand Down
3 changes: 2 additions & 1 deletion deps.ffmpeg/30-libogg.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ param(
[string] $Name = 'libogg',
[string] $Version = '1.3.5',
[string] $Uri = 'https://github.com/xiph/ogg/releases/download/v1.3.5/libogg-1.3.5.zip',
[string] $Hash = "${PSScriptRoot}/checksums/libogg-1.3.5.zip.sha256"
[string] $Hash = "${PSScriptRoot}/checksums/libogg-1.3.5.zip.sha256",
[array] $Targets = @('x64')
)

function Setup {
Expand Down
3 changes: 2 additions & 1 deletion deps.ffmpeg/30-libvorbis.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ param(
[string] $Name = 'libvorbis',
[string] $Version = '1.3.7',
[string] $Uri = 'https://github.com/xiph/vorbis.git',
[string] $Hash = "84c023699cdf023a32fa4ded32019f194afcdad0"
[string] $Hash = "84c023699cdf023a32fa4ded32019f194afcdad0",
[array] $Targets = @('x64')
)

function Setup {
Expand Down
3 changes: 2 additions & 1 deletion deps.ffmpeg/30-libvpx.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ param(
[string] $Name = 'libvpx',
[string] $Version = '1.14.0',
[string] $Uri = 'https://github.com/webmproject/libvpx/archive/refs/tags/v1.14.0.zip',
[string] $Hash = "${PSScriptRoot}/checksums/v1.14.0.zip.sha256"
[string] $Hash = "${PSScriptRoot}/checksums/v1.14.0.zip.sha256",
[array] $Targets = @('x64')
)

function Setup {
Expand Down
1 change: 1 addition & 0 deletions deps.ffmpeg/40-x264.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ param(
[string] $Version = 'r3106',
[string] $Uri = 'https://github.com/mirror/x264.git',
[string] $Hash = 'eaa68fad9e5d201d42fde51665f2d137ae96baf0',
[array] $Targets = @('x64'),
[switch] $ForceShared = $true
)

Expand Down
3 changes: 2 additions & 1 deletion deps.ffmpeg/50-libtheora.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ param(
PatchFile = "${PSScriptRoot}/patches/libtheora/0001-add-windows-cmake.patch"
HashSum = "9F7554581AABC81F360D040E95C1CBF935E9CD80019526B1A6951A1179524D50"
}
)
),
[array] $Targets = @('x64')
)

function Setup {
Expand Down
3 changes: 2 additions & 1 deletion deps.ffmpeg/60-lame.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ param(
PatchFile = "${PSScriptRoot}/patches/lame/0001-fix-nmake-64-bit-builds.patch"
HashSum = "0772e07d3d0c484d281e3bfdb4f93e81adf303623fe57d955b98196795725f39"
}
)
),
[array] $Targets = @('x64')
)

function Setup {
Expand Down
3 changes: 2 additions & 1 deletion deps.ffmpeg/60-mbedtls.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ param(
PatchFile = "${PSScriptRoot}/patches/mbedtls/0001-enable-dtls-srtp-support-windows.patch"
HashSum = "38dbaff859242c5a4f8196a08e35f0251d2966b22e1d9547ecaaea2aec4aae1b"
}
)
),
[array] $Targets = @('x64')
)

function Setup {
Expand Down
1 change: 1 addition & 0 deletions deps.ffmpeg/60-srt.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ param(
[string] $Version = '1.5.2',
[string] $Uri = 'https://github.com/Haivision/srt/archive/refs/tags/v1.5.2.zip',
[string] $Hash = "${PSScriptRoot}/checksums/v1.5.2.zip.sha256",
[array] $Targets = @('x64'),
[switch] $ForceShared = $true
)

Expand Down
1 change: 1 addition & 0 deletions deps.ffmpeg/70-libdatachannel.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ param(
[string] $Version = 'v0.21.0',
[string] $Uri = 'https://github.com/paullouisageneau/libdatachannel.git',
[string] $Hash = '9d5c46b8f506943727104d766e5dad0693c5a223',
[array] $Targets = @('x64'),
[switch] $ForceShared = $true
)

Expand Down
1 change: 1 addition & 0 deletions deps.ffmpeg/70-librist.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ param(
HashSum = "804B845BC66ED180B6C2F962ECF29D55190AA92248FE25F4478C68AE2A91DFFC"
}
),
[array] $Targets = @('x64'),
[switch] $ForceShared = $true
)

Expand Down
3 changes: 2 additions & 1 deletion deps.ffmpeg/70-nv-codec.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ param(
[string] $Name = 'nv-codec-headers',
[string] $Version = '12.2.72.0',
[string] $Uri = 'https://github.com/FFmpeg/nv-codec-headers.git',
[string] $Hash = 'c69278340ab1d5559c7d7bf0edf615dc33ddbba7'
[string] $Hash = 'c69278340ab1d5559c7d7bf0edf615dc33ddbba7',
[array] $Targets = @('x64')
)

function Setup {
Expand Down
3 changes: 2 additions & 1 deletion deps.ffmpeg/80-amf.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ param(
[string] $Name = 'amf',
[string] $Version = '1.4.33',
[string] $Uri = 'https://github.com/GPUOpen-LibrariesAndSDKs/AMF.git',
[string] $Hash = 'e8c7cd7c10d4e05c1913aa8dfd2be9f9dbdb03d6'
[string] $Hash = 'e8c7cd7c10d4e05c1913aa8dfd2be9f9dbdb03d6',
[array] $Targets = @('x64')
)

function Setup {
Expand Down
3 changes: 2 additions & 1 deletion deps.ffmpeg/99-ffmpeg.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ param(
PatchFile = "${PSScriptRoot}/patches/FFmpeg/0002-libaomenc-presets-Windows.patch"
HashSum = "cec898b957fc289512094fc2c4e6a61d6872f716e4a643fb970c599a453a33f4"
}
)
),
[array] $Targets = @('x64')
)

function Setup {
Expand Down
4 changes: 1 addition & 3 deletions deps.qt/qt6.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ param(
[string] $Version = '6.6.3',
[string] $Uri = 'https://download.qt.io/official_releases/qt/6.6/6.6.3',
[string] $Hash = "${PSScriptRoot}/checksums",
[array] $Targets = @('x64', 'x86')
[array] $Targets = @('x64')
)

$QtComponents = @(
Expand Down Expand Up @@ -124,7 +124,6 @@ function Configure {

$CMakeTarget = @{
x64 = 'x64'
x86 = 'Win32'
}

$Options = ($Options -join ' ') -replace '-G Visual Studio \d+ \d+','-G Ninja' -replace "-A $($CMakeTarget[$Target])",''
Expand Down Expand Up @@ -208,7 +207,6 @@ function Qt-Add-Submodules {

$CMakeTarget = @{
x64 = 'x64'
x86 = 'Win32'
}

$QtComponents | Where-Object { $_ -ne 'qtbase' } | ForEach-Object {
Expand Down
3 changes: 2 additions & 1 deletion deps.windows/20-freetype.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ param(
[string] $Name = 'freetype',
[string] $Version = '2.13.2',
[string] $Uri = 'https://github.com/freetype/freetype.git',
[string] $Hash = '920c5502cc3ddda88f6c7d85ee834ac611bb11cc'
[string] $Hash = '920c5502cc3ddda88f6c7d85ee834ac611bb11cc',
[array] $Targets = @('x64')
)

function Setup {
Expand Down
3 changes: 2 additions & 1 deletion deps.windows/30-cmocka.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ param(
[string] $Name = 'cmocka',
[string] $Version = '1.1.7',
[string] $Uri = 'https://git.cryptomilk.org/projects/cmocka.git',
[string] $Hash = 'a01cc69ee9536f90e57c61a198f2d1944d3d4313'
[string] $Hash = 'a01cc69ee9536f90e57c61a198f2d1944d3d4313',
[array] $Targets = @('x64')
)

function Setup {
Expand Down
3 changes: 2 additions & 1 deletion deps.windows/30-curl.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ param(
[string] $Name = 'curl',
[string] $Version = '8.7.1',
[string] $Uri = 'https://github.com/curl/curl.git',
[string] $Hash = 'de7b3e89218467159a7af72d58cea8425946e97d'
[string] $Hash = 'de7b3e89218467159a7af72d58cea8425946e97d',
[array] $Targets = @('x64')
)

function Setup {
Expand Down
3 changes: 2 additions & 1 deletion deps.windows/30-jansson.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ param(
[string] $Name = 'jansson',
[string] $Version = '2.14',
[string] $Uri = 'https://github.com/akheron/jansson.git',
[string] $Hash = '684e18c927e89615c2d501737e90018f4930d6c5'
[string] $Hash = '684e18c927e89615c2d501737e90018f4930d6c5',
[array] $Targets = @('x64')
)

function Setup {
Expand Down
3 changes: 2 additions & 1 deletion deps.windows/30-rnnoise.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ param(
[string] $Name = 'rnnoise',
[string] $Version = '2020-07-28',
[string] $Uri = 'https://github.com/xiph/rnnoise.git',
[string] $Hash = '2938bcf94a2fe3f850df542f5de3996905059c97'
[string] $Hash = '2938bcf94a2fe3f850df542f5de3996905059c97',
[array] $Targets = @('x64')
)

function Setup {
Expand Down
1 change: 1 addition & 0 deletions deps.windows/30-speexdsp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ param(
[string] $Version = '1.2.1',
[string] $Uri = 'https://github.com/xiph/speexdsp.git',
[string] $Hash = '1b28a0f61bc31162979e1f26f3981fc3637095c8',
[array] $Targets = @('x64'),
[array] $Patches = @(
@{
PatchFile = "${PSScriptRoot}/patches/speexdsp/0001-Add-CMakeLists.patch"
Expand Down
3 changes: 2 additions & 1 deletion deps.windows/40-luajit.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ param(
[string] $Name = 'luajit',
[string] $Version = '2.1',
[string] $Uri = 'https://github.com/luajit/luajit.git',
[string] $Hash = '5790d253972c9d78a0c2aece527eda5b134bbbf7'
[string] $Hash = '5790d253972c9d78a0c2aece527eda5b134bbbf7',
[array] $Targets = @('x64')
)

function Setup {
Expand Down
3 changes: 2 additions & 1 deletion deps.windows/50-bison-bin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ param(
[string] $Name = 'bison',
[string] $Version = '2.4.1',
[string] $Uri = 'http://downloads.sourceforge.net/gnuwin32/bison-2.4.1-bin.zip',
[string] $Hash = "${PSScriptRoot}/checksums/bison-2.4.1-bin.zip.sha256"
[string] $Hash = "${PSScriptRoot}/checksums/bison-2.4.1-bin.zip.sha256",
[array] $Targets = @('x64')
)

function Setup {
Expand Down
3 changes: 2 additions & 1 deletion deps.windows/50-bison-dep.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ param(
[string] $Name = 'bison',
[string] $Version = '2.4.1',
[string] $Uri = 'http://downloads.sourceforge.net/gnuwin32/bison-2.4.1-dep.zip',
[string] $Hash = "${PSScriptRoot}/checksums/bison-2.4.1-dep.zip.sha256"
[string] $Hash = "${PSScriptRoot}/checksums/bison-2.4.1-dep.zip.sha256",
[array] $Targets = @('x64')
)

function Setup {
Expand Down
3 changes: 2 additions & 1 deletion deps.windows/50-pcre.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ param(
[string] $Name = 'pcre',
[string] $Version = '10.40',
[string] $Uri = 'https://github.com/PhilipHazel/pcre2/releases/download/pcre2-10.40/pcre2-10.40.zip',
[string] $Hash = "${PSScriptRoot}/checksums/pcre2-10.40.zip.sha256"
[string] $Hash = "${PSScriptRoot}/checksums/pcre2-10.40.zip.sha256",
[array] $Targets = @('x64')
)

function Setup {
Expand Down
1 change: 1 addition & 0 deletions deps.windows/50-swig.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ param(
[string] $Version = '4.1.0',
[string] $Uri = 'https://github.com/swig/swig.git',
[string] $Hash = "4dd285fad736c014224ef2ad25b85e17f3dce1f9",
[array] $Targets = @('x64'),
[array] $Patches = @(
@{
PatchFile = "${PSScriptRoot}/patches/swig/0001-add-Python-3-stable-abi.patch"
Expand Down
3 changes: 2 additions & 1 deletion deps.windows/60-asio.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ param(
[string] $Name = 'asio',
[string] $Version = '1.30.2',
[string] $Uri = 'https://github.com/chriskohlhoff/asio.git',
[string] $Hash = "12e0ce9e0500bf0f247dbd1ae894272656456079"
[string] $Hash = "12e0ce9e0500bf0f247dbd1ae894272656456079",
[array] $Targets = @('x64')
)

function Setup {
Expand Down
1 change: 1 addition & 0 deletions deps.windows/60-libajantv2.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ param(
[string] $Version = '17.0.1',
[string] $Uri = 'https://github.com/aja-video/libajantv2.git',
[string] $Hash = 'b6acce6b135c3d9ae7a2bce966180b159ced619f',
[array] $Targets = @('x64'),
[switch] $ForceStatic = $true
)

Expand Down
Loading