From 359f931f5d8858c312246863582d35b52afd486a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Catuhe?= Date: Tue, 10 Dec 2024 22:56:01 +0100 Subject: [PATCH 1/3] Add aarch64-linux to native platforms --- lib/litestream/upstream.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/litestream/upstream.rb b/lib/litestream/upstream.rb index 88d755f..0029efd 100644 --- a/lib/litestream/upstream.rb +++ b/lib/litestream/upstream.rb @@ -4,6 +4,7 @@ module Upstream # rubygems platform name => upstream release filename NATIVE_PLATFORMS = { + "aarch64-linux" => "litestream-#{VERSION}-linux-arm64.tar.gz", "arm64-darwin" => "litestream-#{VERSION}-darwin-arm64.zip", "arm64-linux" => "litestream-#{VERSION}-linux-arm64.tar.gz", "x86_64-darwin" => "litestream-#{VERSION}-darwin-amd64.zip", From 0ef00250c4bec45831fdd815e3e62acc70db6969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Catuhe?= Date: Tue, 10 Dec 2024 23:12:00 +0100 Subject: [PATCH 2/3] Add arm64-darwin platform --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 347015d..f512c97 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -232,7 +232,7 @@ GEM zeitwerk (2.6.13) PLATFORMS - arm64-darwin-21 + arm64-darwin x86_64-linux DEPENDENCIES From e8be8085294a617d659496220cabc93242048c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Catuhe?= Date: Tue, 10 Dec 2024 23:23:46 +0100 Subject: [PATCH 3/3] Add aarch64-linux --- .github/workflows/gem-install.yml | 4 ++-- README.md | 3 ++- rakelib/package.rake | 4 +++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gem-install.yml b/.github/workflows/gem-install.yml index ab6cf01..55c9432 100644 --- a/.github/workflows/gem-install.yml +++ b/.github/workflows/gem-install.yml @@ -19,7 +19,7 @@ jobs: strategy: fail-fast: false matrix: - platform: ["ruby", "x86_64-darwin", "arm64-darwin", "x86_64-linux", "arm64-linux"] + platform: ["ruby", "x86_64-darwin", "arm64-darwin", "x86_64-linux", "arm64-linux", "aarch64-linux"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -110,4 +110,4 @@ jobs: name: gem-arm64-darwin path: pkg - run: "gem install pkg/litestream-*.gem" - - run: "litestream version" \ No newline at end of file + - run: "litestream version" diff --git a/README.md b/README.md index a52a6a1..f8d506b 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ Supported platforms are: - arm64-darwin (macos-arm64) - x86_64-darwin (macos-x64) +- aarch64-linux (linux-aarch64) - arm64-linux (linux-arm64) - x86_64-linux (linux-x64) @@ -459,7 +460,7 @@ By default, if you install the gem and configure via `puma.rb` or `Procfile`, Li If you setup via `puma.rb`, then remove the conditional statement. -If you setup via `Procfile`, you will need to update your `Procfile.dev` file. If you would like to test that your configuration is properly setup, you can manually add the `litestream:replicate` rake task to your `Procfile.dev` file. Just copy the `litestream` definition from the production `Procfile`. +If you setup via `Procfile`, you will need to update your `Procfile.dev` file. If you would like to test that your configuration is properly setup, you can manually add the `litestream:replicate` rake task to your `Procfile.dev` file. Just copy the `litestream` definition from the production `Procfile`. In order to have a replication bucket for Litestream to point to, you can use a Docker instance of [MinIO](https://min.io/). MinIO is an S3-compatible object storage server that can be run locally. You can run a MinIO server with the following command: diff --git a/rakelib/package.rake b/rakelib/package.rake index 0e3dc31..f1a047f 100644 --- a/rakelib/package.rake +++ b/rakelib/package.rake @@ -26,6 +26,7 @@ # So the full set of gem files created will be: # # - pkg/litestream-1.0.0.gem +# - pkg/litestream-1.0.0-aarch64-linux.gem # - pkg/litestream-1.0.0-arm64-linux.gem # - pkg/litestream-1.0.0-arm64-darwin.gem # - pkg/litestream-1.0.0-x86_64-darwin.gem @@ -38,7 +39,8 @@ # New rake tasks created: # # - rake gem:ruby # Build the ruby gem -# - rake gem:arm64-linux # Build the aarch64-linux gem +# - rake gem:aarch64-linux # Build the aarch64-linux gem +# - rake gem:arm64-linux # Build the arm64-linux gem # - rake gem:arm64-darwin # Build the arm64-darwin gem # - rake gem:x86_64-darwin # Build the x86_64-darwin gem # - rake gem:x86_64-linux # Build the x86_64-linux gem