From 66e1ea599232b0ea3543ce0e3c66000a479cfed3 Mon Sep 17 00:00:00 2001 From: Andy Pfister Date: Wed, 8 Jan 2025 16:52:26 +0100 Subject: [PATCH] Provide precompiled gem for `x86_64-linux-musl` --- .github/workflows/ci.yml | 8 ++++++++ CHANGELOG.md | 2 +- Rakefile | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1661b167..d818cca6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -322,6 +323,7 @@ jobs: matrix: platform: - "x86_64-linux-gnu" + - "x86_64-linux-musl" ruby-version: - "2.7" @@ -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: @@ -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\" " diff --git a/CHANGELOG.md b/CHANGELOG.md index 94c4d847..53ceb0cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Rakefile b/Rakefile index 98505576..7fc29ba7 100644 --- a/Rakefile +++ b/Rakefile @@ -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