|
4 | 4 |
|
5 | 5 | name: build-with-tongsuo
|
6 | 6 |
|
7 |
| -on: [workflow_dispatch, pull_request, push] |
| 7 | +'on': [workflow_dispatch, pull_request, push] |
8 | 8 |
|
9 | 9 | jobs:
|
10 |
| - autotools: |
11 |
| - runs-on: 'ubuntu-latest' |
12 |
| - timeout-minutes: 60 |
13 |
| - |
| 10 | + build_linux_macos: |
| 11 | + runs-on: ${{ matrix.builder }} |
| 12 | + strategy: |
| 13 | + matrix: |
| 14 | + builder: [macos-latest, ubuntu-latest] |
| 15 | + name: "build-${{ matrix.builder }}" |
14 | 16 | steps:
|
15 |
| - - name: checkout tongsuo |
16 |
| - uses: actions/checkout@v2 |
17 |
| - with: |
18 |
| - repository: Tongsuo-Project/Tongsuo |
19 |
| - path: Tongsuo |
20 |
| - - name: install Tongsuo |
21 |
| - working-directory: ./Tongsuo |
| 17 | + - run: | |
| 18 | + brew install libtool autoconf automake pkg-config |
| 19 | + if: ${{ matrix.builder == 'macos-latest' }} |
| 20 | + - name: build Tongsuo |
22 | 21 | run: |
|
23 |
| - ./config --banner=Configured --prefix=${GITHUB_WORKSPACE}/install enable-ntls |
| 22 | + VERSION=8.4.0 |
| 23 | + wget "https://github.com/Tongsuo-Project/Tongsuo/archive/refs/tags/${VERSION}.tar.gz" |
| 24 | + tar zxf "${VERSION}.tar.gz" |
| 25 | + pushd "Tongsuo-${VERSION}" |
| 26 | + ./config --prefix=${GITHUB_WORKSPACE}/tongsuo no-shared enable-ntls enable-ssl-trace --release |
24 | 27 | make -s -j4
|
25 |
| - make install |
26 |
| - - uses: actions/checkout@v3 |
| 28 | + make install_sw |
| 29 | + popd |
| 30 | + - uses: actions/checkout@v2 |
27 | 31 | with:
|
28 | 32 | path: curl
|
29 |
| - |
| 33 | + fetch-depth: 0 |
30 | 34 | - name: build curl
|
31 | 35 | working-directory: ./curl
|
32 | 36 | run: |
|
33 | 37 | git apply tongsuo.patch
|
34 | 38 | autoreconf -fi
|
35 |
| - LDFLAGS=-Wl,-rpath=${GITHUB_WORKSPACE}/install/lib64/ ./configure --enable-warnings --enable-werror --with-openssl=${GITHUB_WORKSPACE}/install |
36 |
| - make V=1 |
| 39 | + ./configure --enable-warnings --enable-werror --with-openssl=${GITHUB_WORKSPACE}/tongsuo --without-zlib --without-brotli --disable-shared --disable-ldap --disable-ldaps --disable-rtsp --without-librtmp --without-libpsl --enable-static |
| 40 | + make -s -j4 |
37 | 41 | make V=1 examples
|
38 | 42 | make V=1 -C tests
|
39 | 43 | make V=1 test-ci
|
| 44 | + ./curl/src/curl --help tls | grep tlcp |
| 45 | +
|
| 46 | + build_windows: |
| 47 | + runs-on: windows-latest |
| 48 | + steps: |
| 49 | + - run: choco install -y winrar |
| 50 | + - uses: ilammy/msvc-dev-cmd@v1 |
| 51 | + with: |
| 52 | + arch: win64 |
| 53 | + - uses: ilammy/setup-nasm@v1 |
| 54 | + with: |
| 55 | + platform: win64 |
| 56 | + - uses: shogo82148/actions-setup-perl@v1 |
| 57 | + - name: Export env |
| 58 | + shell: bash |
| 59 | + run: | |
| 60 | + VERSION=8.4.0 |
| 61 | + echo "TONGSUO_VERSION=${VERSION}" >> $GITHUB_ENV |
| 62 | + echo "TONGSUO_HOME=${GITHUB_WORKSPACE}\tongsuo${VERSION}" >> $GITHUB_ENV |
| 63 | + - name: Download Tongsuo source |
| 64 | + run: | |
| 65 | + wget "https://github.com/Tongsuo-Project/Tongsuo/archive/refs/tags/${env:TONGSUO_VERSION}.tar.gz" -OutFile "${env:TONGSUO_VERSION}.tar.gz" |
| 66 | + shell: powershell |
| 67 | + - run: '"C:\Program Files\WinRAR\WinRAR.exe" -INUL x %TONGSUO_VERSION%.tar.gz' |
| 68 | + shell: cmd |
| 69 | + - name: Build Tongsuo |
| 70 | + shell: cmd |
| 71 | + run: | |
| 72 | + pushd "Tongsuo-%TONGSUO_VERSION%" |
| 73 | + mkdir _build |
| 74 | + pushd _build |
| 75 | + perl ..\Configure no-makedepend no-shared enable-ntls enable-ssl-trace VC-WIN64A --prefix=%TONGSUO_HOME% --release |
| 76 | + nmake /S |
| 77 | + nmake install_sw |
| 78 | + popd |
| 79 | + popd |
| 80 | + - uses: actions/checkout@v2 |
| 81 | + with: |
| 82 | + path: curl |
| 83 | + fetch-depth: 0 |
| 84 | + - name: build curl |
| 85 | + working-directory: ./curl |
| 86 | + shell: powershell |
| 87 | + run: | |
| 88 | + git apply tongsuo.diff |
| 89 | + ./buildconf.bat |
| 90 | + cd winbuild |
| 91 | + nmake /f Makefile.vc mode=static WITH_SSL=static SSL_PATH=${env:TONGSUO_HOME} RTLIBCFG=static ENABLE_NTLS=yes |
| 92 | + cd .. |
| 93 | + builds\libcurl-vc-x64-release-static-ssl-static-ipv6-sspi\bin\curl.exe --help tls | findstr tlcp |
0 commit comments