diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cbcf533..35141fa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,7 +47,6 @@ jobs: cabal-version: ${{ matrix.cabal }} cabal-update: true - - name: Install system dependencies - Linux if: runner.os == 'Linux' run: | @@ -56,8 +55,8 @@ jobs: sudo apt-get install libpcre3-dev sudo apt-get install libmysqlclient-dev sudo apt-get install libmysqlclient21 - echo $LIBMYSQL_PLUGIN_DIR - sudo ln -s /opt/hostedtoolcache/mysql/9.0.1/x64/lib/libmysqlclient.so.24 /usr/lib/libmysqlclient.so.24 + # The LIBMYSQL_PLUGIN_DIR is variable added by the actions-setup-mysql + cabal user-config -a "extra-lib-dirs: $(dirname $LIBMYSQL_PLUGIN_DIR)" -f init - name: Build - Configure run: |