From: Viktor Szakats Date: Thu, 23 May 2024 12:54:49 +0000 (+0200) Subject: GHA: stop deleting curl in non-native workflows X-Git-Tag: curl-8_9_0~401 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4a198a50db2352efa9eaddae7292ccb4183e17bb;p=thirdparty%2Fcurl.git GHA: stop deleting curl in non-native workflows We do it in Cirrus CI, but for some platforms it's not possible to delete it and tests work anyway. The test runner also runs `../src/curl` by default, which is always the one freshly built. The runner may also need the system curl to talk to APIs when needed. Also: - stop setting `CURL` env. This isn't picked up by the runners, and works out of the box anyway. - quote an option just in case. Follow-up to 90e644f944969bb11c6448bf50c6d441b5c0b1e6 #13583 Closes #13765 --- diff --git a/.github/workflows/non-native.yml b/.github/workflows/non-native.yml index e7e0b8a8a5..66d0d16317 100644 --- a/.github/workflows/non-native.yml +++ b/.github/workflows/non-native.yml @@ -67,8 +67,7 @@ jobs: -DCURL_USE_OPENSSL=ON \ -DCURL_BROTLI=ON -DUSE_NGHTTP2=ON -DCURL_USE_GSSAPI=ON cmake --build bld --config Debug --parallel 3 - export CURL=$(pwd)/bld/src/curl - "${CURL}" --disable --version + "$(pwd)/bld/src/curl" --disable --version if [ '${{ matrix.arch }}' = 'x86_64' ]; then # Slow on emulated CPU cmake --build bld --config Debug --parallel 3 --target testdeps cmake --build bld --config Debug --target test-ci @@ -101,8 +100,7 @@ jobs: -DCURL_USE_OPENSSL=ON \ -DCURL_BROTLI=ON -DUSE_NGHTTP2=ON cmake --build bld --config Debug --parallel 3 - export CURL=$(pwd)/bld/src/curl - "${CURL}" --disable --version + "$(pwd)/bld/src/curl" --disable --version if [ '${{ matrix.arch }}' = 'x86_64' ]; then # Slow on emulated CPU cmake --build bld --config Debug --parallel 3 --target testdeps export TFLAGS='-j8 ~TFTP' # FIXME: TFTP requests executed twice? Related: `curl: (69) TFTP: Access Violation`? @@ -131,7 +129,6 @@ jobs: run: | # https://ports.freebsd.org/ sudo pkg install -y autoconf automake libtool pkgconf brotli openldap26-client libidn2 libnghttp2 nghttp2 stunnel py39-openssl py39-impacket py39-cryptography - sudo pkg delete -y curl autoreconf -fi export CC='${{ matrix.compiler }}' mkdir bld && cd bld && ../configure --enable-debug --enable-warnings --enable-werror \ @@ -158,9 +155,8 @@ jobs: run: | # https://ports.freebsd.org/ sudo pkg install -y cmake brotli openldap26-client libidn2 libnghttp2 nghttp2 stunnel py39-openssl py39-impacket py39-cryptography - sudo pkg delete -y curl cmake -B bld \ - -DCMAKE_C_COMPILER=${{ matrix.compiler }} \ + '-DCMAKE_C_COMPILER=${{ matrix.compiler }}' \ -DCMAKE_UNITY_BUILD=ON \ -DCURL_WERROR=ON \ -DENABLE_DEBUG=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG= \ @@ -189,7 +185,6 @@ jobs: # https://pkg.omnios.org/r151048/core/en/index.shtml prepare: pkg install build-essential libtool run: | - pkg uninstall curl ln -s /usr/bin/gcpp /usr/bin/cpp # Some tests expect `cpp`, which is named `gcpp` in this env. autoreconf -fi mkdir bld && cd bld && ../configure --enable-debug --enable-warnings --enable-werror \