Skip to content

Commit

Permalink
[github-actions] Update curl workflow to build 8.10.1 for UCRT64
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Nov 3, 2024
1 parent 559adb7 commit 61a76ce
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/curl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ jobs:
fail-fast: false
matrix:
include: [
{ msystem: MINGW64, arch: x86_64 },
{ msystem: MINGW32, arch: i686 }
{ msystem: UCRT64, arch: x86_64, flavor: w64-ucrt },
{ msystem: MINGW64, arch: x86_64, flavor: w64 },
{ msystem: MINGW32, arch: i686, flavor: w64 }
]
steps:
- uses: msys2/setup-msys2@v2
Expand All @@ -24,35 +25,36 @@ jobs:
install: >-
base-devel
git
mingw-w64-${{ matrix.arch }}-gcc
mingw-${{ matrix.flavor }}-${{ matrix.arch }}-gcc
make
libtool
autoconf
automake-wrapper
liblzma
mingw-${{ matrix.flavor }}-${{ matrix.arch }}-openssl
- name: prepare environment
run: |
dest=`echo ${{ matrix.msystem }} |tr [:upper:] [:lower:]`
echo "dest=$dest" >> $GITHUB_ENV
echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV
- name: fetch curl source
run: |
curl -Ls -o curl-8.1.0.tar.bz2 https://github.com/curl/curl/releases/download/curl-8_1_0/curl-8.1.0.tar.bz2
tar xjf curl-8.1.0.tar.bz2
curl -Ls -o curl-8.10.1.tar.bz2 https://github.com/curl/curl/releases/download/curl-8_10_1/curl-8.10.1.tar.bz2
tar xjf curl-8.10.1.tar.bz2
- name: configure curl
run: |
cd curl-8.1.0
./configure --disable-ldap --disable-ldaps --disable-rtsp --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher --disable-mqtt --disable-manual --disable-threaded-resolver --disable-pthreads --disable-sspi --disable-aws --disable-ntlm --disable-ntlm-wb --disable-tls-srp --disable-unix-sockets --disable-doh --disable-mime --disable-bindlocal --disable-dnsshuffle --disable-alt-svc --disable-hsts --disable-websockets --with-openssl --without-brotli --without-libidn2 --without-ngtcp2 --without-quiche --without-msh3 --without-nghttp2 --without-libpsl
cd curl-8.10.1
./configure --disable-ldap --disable-ldaps --disable-rtsp --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher --disable-mqtt --disable-manual --disable-threaded-resolver --disable-pthreads --disable-sspi --disable-aws --disable-ntlm --disable-ntlm-wb --disable-tls-srp --disable-unix-sockets --disable-doh --disable-mime --disable-dnsshuffle --disable-alt-svc --disable-hsts --disable-websockets --with-openssl --without-brotli --without-libidn2 --without-ngtcp2 --without-quiche --without-msh3 --without-nghttp2 --without-libpsl
- name: build libcurl
run: |
CURDIR=`pwd`
cd curl-8.1.0/lib
cd curl-8.10.1/lib
make
cp .libs/libcurl.a .
cd ..
tar cf $CURDIR/libcurl-static.tar lib/libcurl.a include/curl/*.h
- name: publish artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: libcurl_${{ matrix.arch }}-${{ env.dest }}
path: libcurl-static.tar

0 comments on commit 61a76ce

Please sign in to comment.