Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide precompiled gem for Linux #575

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:
uses: actions/cache@v4
with:
path: ports
key: cross-compiled-v9-${{ matrix.platform }}-${{ hashFiles('**/.ports_versions') }}
key: cross-compiled-v1-${{ matrix.platform }}-${{ hashFiles('**/.ports_versions') }}
restore-keys: |
cross-compiled-v9-${{ matrix.platform }}-${{ hashFiles('**/.ports_versions') }}
cross-compiled-v9-${{ matrix.platform }}-
cross-compiled-v1-${{ matrix.platform }}-${{ hashFiles('**/.ports_versions') }}
cross-compiled-v1-${{ matrix.platform }}-

- name: Build gem
shell: bash
Expand Down
1 change: 1 addition & 0 deletions ext/tiny_tds/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def configure_defaults

recipe.configure_options << "--with-openssl=#{openssl_recipe.path}"
recipe.configure_options << "--with-libiconv-prefix=#{libiconv_recipe.path}"
recipe.configure_options << "--sysconfdir=#{MiniPortile.windows? ? "C:/Sites" : "/usr/local/etc"}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can/should this come from env var?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A user can overwrite it at runtime:
https://www.freetds.org/userguide/freetdsconf.htm


recipe.gem_platform = gem_platform
recipe.cook_and_activate
Expand Down
Loading