Skip to content

Commit

Permalink
test libcurl 2
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed Nov 2, 2024
1 parent e92dd93 commit cb7e768
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 79 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -141,29 +141,28 @@ workflow(

configuration.profiles.forEach { (profile, buildKind) ->
if (buildKind.buildDynamic) {
run(command = conanCreateCommand(profile, version, "True"), continueOnError = true)
run(command = conanInstallCommand(profile, version, "True"), continueOnError = true)
run(command = conanCreateCommand(profile, version, "True"))
run(command = conanInstallCommand(profile, version, "True"))
}
if (buildKind.buildStatic) {
run(command = conanCreateCommand(profile, version, "False"), continueOnError = true)
run(command = conanInstallCommand(profile, version, "False"), continueOnError = true)
run(command = conanCreateCommand(profile, version, "False"))
run(command = conanInstallCommand(profile, version, "False"))
}
}

when (configuration.runnerType) {
WindowsRunner -> listOf("lib", "include", "bin")
else -> listOf("lib", "include")
}.forEach { folder ->
run(command = "tar -rvf ${configuration.name}.tar build/libcurl/*/$folder", continueOnError = true)
run(command = "tar -rvf ${configuration.name}.tar build/libcurl/*/$folder")
}

uses(
action = UploadArtifactV4(
name = "libcurl-${configuration.name}-$version",
ifNoFilesFound = UploadArtifactV4.BehaviorIfNoFilesFound.Error,
path = listOf("${configuration.name}.tar")
),
continueOnError = true
)
)
}
}
Expand Down
72 changes: 0 additions & 72 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,103 +26,70 @@ jobs:
- id: 'step-3'
run: 'conan profile detect'
- id: 'step-4'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/tvos-simulator-arm64 -o "*:shared=False"'
- id: 'step-5'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/tvos-simulator-arm64 --version=8.10.1 -pr:b default -pr:h profiles/tvos-simulator-arm64 -o "*:shared=False"'
- id: 'step-6'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/tvos-simulator-x64 -o "*:shared=False"'
- id: 'step-7'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/tvos-simulator-x64 --version=8.10.1 -pr:b default -pr:h profiles/tvos-simulator-x64 -o "*:shared=False"'
- id: 'step-8'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/tvos-device-arm64 -o "*:shared=False"'
- id: 'step-9'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/tvos-device-arm64 --version=8.10.1 -pr:b default -pr:h profiles/tvos-device-arm64 -o "*:shared=False"'
- id: 'step-10'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/watchos-simulator-arm64 -o "*:shared=False"'
- id: 'step-11'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/watchos-simulator-arm64 --version=8.10.1 -pr:b default -pr:h profiles/watchos-simulator-arm64 -o "*:shared=False"'
- id: 'step-12'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/watchos-simulator-x64 -o "*:shared=False"'
- id: 'step-13'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/watchos-simulator-x64 --version=8.10.1 -pr:b default -pr:h profiles/watchos-simulator-x64 -o "*:shared=False"'
- id: 'step-14'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/watchos-device-arm32 -o "*:shared=False"'
- id: 'step-15'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/watchos-device-arm32 --version=8.10.1 -pr:b default -pr:h profiles/watchos-device-arm32 -o "*:shared=False"'
- id: 'step-16'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/watchos-device-arm64 -o "*:shared=False"'
- id: 'step-17'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/watchos-device-arm64 --version=8.10.1 -pr:b default -pr:h profiles/watchos-device-arm64 -o "*:shared=False"'
- id: 'step-18'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/watchos-device-arm64_32 -o "*:shared=False"'
- id: 'step-19'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/watchos-device-arm64_32 --version=8.10.1 -pr:b default -pr:h profiles/watchos-device-arm64_32 -o "*:shared=False"'
- id: 'step-20'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/ios-device-arm64 -o "*:shared=False"'
- id: 'step-21'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/ios-device-arm64 --version=8.10.1 -pr:b default -pr:h profiles/ios-device-arm64 -o "*:shared=False"'
- id: 'step-22'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/ios-simulator-arm64 -o "*:shared=False"'
- id: 'step-23'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/ios-simulator-arm64 --version=8.10.1 -pr:b default -pr:h profiles/ios-simulator-arm64 -o "*:shared=False"'
- id: 'step-24'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/ios-simulator-x64 -o "*:shared=False"'
- id: 'step-25'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/ios-simulator-x64 --version=8.10.1 -pr:b default -pr:h profiles/ios-simulator-x64 -o "*:shared=False"'
- id: 'step-26'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/macos-x64 -o "*:shared=True"'
- id: 'step-27'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/macos-x64 --version=8.10.1 -pr:b default -pr:h profiles/macos-x64 -o "*:shared=True"'
- id: 'step-28'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/macos-x64 -o "*:shared=False"'
- id: 'step-29'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/macos-x64 --version=8.10.1 -pr:b default -pr:h profiles/macos-x64 -o "*:shared=False"'
- id: 'step-30'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/macos-arm64 -o "*:shared=True"'
- id: 'step-31'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/macos-arm64 --version=8.10.1 -pr:b default -pr:h profiles/macos-arm64 -o "*:shared=True"'
- id: 'step-32'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/macos-arm64 -o "*:shared=False"'
- id: 'step-33'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/macos-arm64 --version=8.10.1 -pr:b default -pr:h profiles/macos-arm64 -o "*:shared=False"'
- id: 'step-34'
continue-on-error: true
run: 'tar -rvf macos.tar build/libcurl/*/lib'
- id: 'step-35'
continue-on-error: true
run: 'tar -rvf macos.tar build/libcurl/*/include'
- id: 'step-36'
continue-on-error: true
uses: 'actions/upload-artifact@v4'
with:
name: 'libcurl-macos-8.10.1'
Expand All @@ -149,91 +116,62 @@ jobs:
- id: 'step-5'
run: 'sudo apt install g++-8-aarch64-linux-gnu g++-8'
- id: 'step-6'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/android-arm64 -o "*:shared=True"'
- id: 'step-7'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/android-arm64 --version=8.10.1 -pr:b default -pr:h profiles/android-arm64 -o "*:shared=True"'
- id: 'step-8'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/android-arm64 -o "*:shared=False"'
- id: 'step-9'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/android-arm64 --version=8.10.1 -pr:b default -pr:h profiles/android-arm64 -o "*:shared=False"'
- id: 'step-10'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/android-arm32 -o "*:shared=True"'
- id: 'step-11'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/android-arm32 --version=8.10.1 -pr:b default -pr:h profiles/android-arm32 -o "*:shared=True"'
- id: 'step-12'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/android-arm32 -o "*:shared=False"'
- id: 'step-13'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/android-arm32 --version=8.10.1 -pr:b default -pr:h profiles/android-arm32 -o "*:shared=False"'
- id: 'step-14'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/android-x64 -o "*:shared=True"'
- id: 'step-15'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/android-x64 --version=8.10.1 -pr:b default -pr:h profiles/android-x64 -o "*:shared=True"'
- id: 'step-16'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/android-x64 -o "*:shared=False"'
- id: 'step-17'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/android-x64 --version=8.10.1 -pr:b default -pr:h profiles/android-x64 -o "*:shared=False"'
- id: 'step-18'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/android-x86 -o "*:shared=True"'
- id: 'step-19'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/android-x86 --version=8.10.1 -pr:b default -pr:h profiles/android-x86 -o "*:shared=True"'
- id: 'step-20'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/android-x86 -o "*:shared=False"'
- id: 'step-21'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/android-x86 --version=8.10.1 -pr:b default -pr:h profiles/android-x86 -o "*:shared=False"'
- id: 'step-22'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/linux-x64 -o "*:shared=True"'
- id: 'step-23'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/linux-x64 --version=8.10.1 -pr:b default -pr:h profiles/linux-x64 -o "*:shared=True"'
- id: 'step-24'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/linux-x64 -o "*:shared=False"'
- id: 'step-25'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/linux-x64 --version=8.10.1 -pr:b default -pr:h profiles/linux-x64 -o "*:shared=False"'
- id: 'step-26'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/linux-arm64 -o "*:shared=True"'
- id: 'step-27'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/linux-arm64 --version=8.10.1 -pr:b default -pr:h profiles/linux-arm64 -o "*:shared=True"'
- id: 'step-28'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/linux-arm64 -o "*:shared=False"'
- id: 'step-29'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/linux-arm64 --version=8.10.1 -pr:b default -pr:h profiles/linux-arm64 -o "*:shared=False"'
- id: 'step-30'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/wasm -o "*:shared=False"'
- id: 'step-31'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/wasm --version=8.10.1 -pr:b default -pr:h profiles/wasm -o "*:shared=False"'
- id: 'step-32'
continue-on-error: true
run: 'tar -rvf linux.tar build/libcurl/*/lib'
- id: 'step-33'
continue-on-error: true
run: 'tar -rvf linux.tar build/libcurl/*/include'
- id: 'step-34'
continue-on-error: true
uses: 'actions/upload-artifact@v4'
with:
name: 'libcurl-linux-8.10.1'
Expand All @@ -256,34 +194,24 @@ jobs:
- id: 'step-3'
run: 'conan profile detect'
- id: 'step-4'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/mingw-x64 -o "*:shared=True"'
- id: 'step-5'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/mingw-x64 --version=8.10.1 -pr:b default -pr:h profiles/mingw-x64 -o "*:shared=True"'
- id: 'step-6'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/mingw-x64 -o "*:shared=False"'
- id: 'step-7'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/mingw-x64 --version=8.10.1 -pr:b default -pr:h profiles/mingw-x64 -o "*:shared=False"'
- id: 'step-8'
continue-on-error: true
run: 'conan create conan-center-index/recipes/libcurl/all --build=missing --version=8.10.1 -pr:b default -pr:h profiles/windows-x64 -o "*:shared=True"'
- id: 'step-9'
continue-on-error: true
run: 'conan install packages/libcurl --output-folder build/libcurl/windows-x64 --version=8.10.1 -pr:b default -pr:h profiles/windows-x64 -o "*:shared=True"'
- id: 'step-10'
continue-on-error: true
run: 'tar -rvf windows.tar build/libcurl/*/lib'
- id: 'step-11'
continue-on-error: true
run: 'tar -rvf windows.tar build/libcurl/*/include'
- id: 'step-12'
continue-on-error: true
run: 'tar -rvf windows.tar build/libcurl/*/bin'
- id: 'step-13'
continue-on-error: true
uses: 'actions/upload-artifact@v4'
with:
name: 'libcurl-windows-8.10.1'
Expand Down

0 comments on commit cb7e768

Please sign in to comment.