Skip to content

Commit

Permalink
Provide precompiled gem for x86_64-linux-musl
Browse files Browse the repository at this point in the history
  • Loading branch information
andyundso committed Jan 8, 2025
1 parent e8bd421 commit 66e1ea5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- "x64-mingw32"
- "x64-mingw-ucrt"
- "x86_64-linux-gnu"
- "x86_64-linux-musl"

name: cross-compile
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -322,6 +323,7 @@ jobs:
matrix:
platform:
- "x86_64-linux-gnu"
- "x86_64-linux-musl"

ruby-version:
- "2.7"
Expand All @@ -331,6 +333,11 @@ jobs:
- "3.3"
- "3.4"

include:
- platform: x86_64-linux-musl
docker_tag: "-alpine"
bootstrap: "apk add -U build-base &&" # required to compile bigdecimal on Ruby 2.7

name: install-linux
runs-on: ubuntu-22.04
steps:
Expand All @@ -347,6 +354,7 @@ jobs:
${{ matrix.docker_platform }} ruby:${{ matrix.ruby-version }}${{ matrix.docker_tag }} \
sh -c "
gem update --system 3.3.22 &&
${{ matrix.bootstrap }}
gem install --no-document ./gems/tiny_tds-$(cat VERSION)-${{ matrix.platform }}.gem &&
ruby -e \"require 'tiny_tds'; puts TinyTds::Gem.root_path\"
"
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## 3.2.0

* Reduce number of files shipped with precompiled Windows gem
* Provide precompiled gem for Linux (GNU / 64-bit x86)
* Provide precompiled gem for Linux (GNU + MUSL / 64-bit x86)

## 3.1.0

Expand Down
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ CrossLibraries = [
['x64-mingw-ucrt', 'mingw64'],
['x64-mingw32', 'mingw64'],
['x86_64-linux-gnu', 'linux-x86_64'],
['x86_64-linux-musl', 'linux-x86_64'],
].map do |platform, openssl_config|
CrossLibrary.new platform, openssl_config
end
Expand Down

0 comments on commit 66e1ea5

Please sign in to comment.