Download src/php/php-src/.github/actions/build-libmysqlclient/action.yml from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/.github/actions/build-libmysqlclient/action.yml
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/.github/actions/build-libmysqlclient/action.yml
-
curl -L -o action.yml https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/.github/actions/build-libmysqlclient/action.yml
1.03 kB
| name: Build libmysqlclient | |
| inputs: | |
| configurationParameters: | |
| default: '' | |
| required: false | |
| libmysql: | |
| required: true | |
| withMysqli: | |
| required: true | |
| runs: | |
| using: composite | |
| steps: | |
| - shell: bash | |
| run: | | |
| set -x | |
| LIBMYSQL=${{ inputs.libmysql }} | |
| MYSQL_BASE=${LIBMYSQL%%-linux-*} | |
| MYSQL_DIR=$HOME/$MYSQL_BASE | |
| mkdir -p $MYSQL_DIR | |
| URL=https://downloads.mysql.com/archives/get/p/23/file/$LIBMYSQL | |
| wget -nv $URL | |
| tar -xf $LIBMYSQL --strip-components=1 -C $MYSQL_DIR | |
| PDO_MYSQL=${MYSQL_DIR} | |
| ${{ inputs.withMysqli == 'true' && 'MYSQLI=${MYSQL_DIR}/bin/mysql_config' || '' }} | |
| ./buildconf --force | |
| ./configure ${{ inputs.configurationParameters }} \ | |
| --enable-option-checking=fatal \ | |
| --disable-all \ | |
| --enable-pdo \ | |
| --with-pdo-mysql=${PDO_MYSQL} \ | |
| ${{ inputs.withMysqli == 'true' && '--with-mysqli=${MYSQLI}' || '' }} | |
| make clean | |
| make -j$(/usr/bin/nproc) >/dev/null | |