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

Build the aarch64-linux gem #56

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/gem-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -110,4 +110,4 @@ jobs:
name: gem-arm64-darwin
path: pkg
- run: "gem install pkg/litestream-*.gem"
- run: "litestream version"
- run: "litestream version"
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ GEM
zeitwerk (2.6.13)

PLATFORMS
arm64-darwin-21
arm64-darwin
x86_64-linux

DEPENDENCIES
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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:

Expand Down
1 change: 1 addition & 0 deletions lib/litestream/upstream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion rakelib/package.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading