Skip to content

Commit

Permalink
[curlBuild] build curl with http3 support try openwrt
Browse files Browse the repository at this point in the history
  • Loading branch information
Haldir65 committed Apr 3, 2024
1 parent bea042a commit 38dfb9d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/build_curl_http3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
if: startsWith(matrix.target.id, 'linux-')
shell: bash
run: |
sudo apt install ninja-build build-essential autoconf automake clang coreutils libidn2-0-dev pkg-config -y
sudo apt install ninja-build build-essential autoconf automake tree clang coreutils libidn2-0-dev pkg-config -y
echo "cpu core num is "
nproc
Expand Down Expand Up @@ -107,4 +107,33 @@ jobs:
name: ${{ matrix.target.id }}-${{ matrix.target.os }}-prebuilt
path: dist
if-no-files-found: error
retention-days: 7
retention-days: 7


buildCurlHttp3Openwrt:
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, '[curlBuild]')"
container:
# image: docker://haldir65/hello-docker-hub:openwrt-toolchians-19.07.1
image: ghcr.io/haldir65/upgraded-train:openwrt-19.07.1
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install `ninja` on Ubuntu
shell: bash
run: |
sudo apt install ninja-build build-essential autoconf automake clang coreutils tree libidn2-0-dev pkg-config -y
echo "cpu core num is "
echo "cpu core num is "
echo "${STAGING_DIR}"
echo "${PATH}"
nproc
- name: build test
shell: bash
run: |
tree -L 2
chmod +x scripts/build_curl_http3.sh
CC=${STAGING_DIR}/toolchain-mipsel_24kc_gcc-7.5.0_musl/bin/mipsel-openwrt-linux-gcc \
CXX=${STAGING_DIR}/toolchain-mipsel_24kc_gcc-7.5.0_musl/bin/mipsel-openwrt-linux-g++ \
.scripts/build_curl_http3.sh
4 changes: 4 additions & 0 deletions scripts/build_curl_http3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ function _prepare(){
mkdir -p ${prebuilt_zstd_root}
mkdir -p ${prebuilt_psl_root}
mkdir -p ${prebuilt_c_ares_root}

_Cyan "\n CC = ${CC} \n"
_Cyan "CXX = ${CXX} \n"

}


Expand Down

0 comments on commit 38dfb9d

Please sign in to comment.