kostya / lexbor

Fast HTML5 Parser with CSS selectors. This is successor of myhtml and expected to be faster and use less memory.
MIT License
95 stars 14 forks source link

build failed on alpine for a static binary use github workflow? #31

Closed zw963 closed 1 year ago

zw963 commented 1 year ago

Please check workflow log here.

https://github.com/crystal-china/myip/actions/runs/4955663882/jobs/8865266920

BTW, i tried install cmake with both candidate.

- name: Setup cmake
        uses: jwlawson/actions-setup-cmake@v1.9
        with:
          cmake-version: "3.16.x"
    - name: Get latest CMake and Ninja
      uses: lukka/get-cmake@latest

Both of them not work.

thanks.

kostya commented 1 year ago

i dont know, cmake not found: Error executing process: 'cmake': No such file or directory, may be it is not in the path, or not installed correctly. may be try to link '/__w/_temp/737685974/cmake-3.26.3-linux-x86_64/bin/cmake into /usr/bin/cmake

zw963 commented 1 year ago

Hi, i fixed it use following apk command, and i built static binary successful use following command too, thanks.

      - name: install common dependencies
        run: |
          apk add \
          curl \
          gc-dev \
          gcc \
          git \
          libevent-static \
          musl-dev \
          openssl-dev \
          openssl-libs-static \
          pcre-dev \
          sqlite-static \
          tzdata \
          yaml-static \
          zlib-dev \
          zlib-static \
          cmake \
          g++ \
          libffi-dev \
          libxml2-dev \
          llvm-dev \
          llvm-static \
          make