Skip to content

Commit 632a786

Browse files
Merge pull request #56 from fcatuhe/aarch64-linux
Build the aarch64-linux gem
2 parents 6a93d58 + e8be808 commit 632a786

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

.github/workflows/gem-install.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
platform: ["ruby", "x86_64-darwin", "arm64-darwin", "x86_64-linux", "arm64-linux"]
22+
platform: ["ruby", "x86_64-darwin", "arm64-darwin", "x86_64-linux", "arm64-linux", "aarch64-linux"]
2323
runs-on: ubuntu-latest
2424
steps:
2525
- uses: actions/checkout@v4
@@ -110,4 +110,4 @@ jobs:
110110
name: gem-arm64-darwin
111111
path: pkg
112112
- run: "gem install pkg/litestream-*.gem"
113-
- run: "litestream version"
113+
- run: "litestream version"

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ GEM
232232
zeitwerk (2.6.13)
233233

234234
PLATFORMS
235-
arm64-darwin-21
235+
arm64-darwin
236236
x86_64-linux
237237

238238
DEPENDENCIES

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Supported platforms are:
5454

5555
- arm64-darwin (macos-arm64)
5656
- x86_64-darwin (macos-x64)
57+
- aarch64-linux (linux-aarch64)
5758
- arm64-linux (linux-arm64)
5859
- x86_64-linux (linux-x64)
5960

@@ -471,7 +472,7 @@ By default, if you install the gem and configure via `puma.rb` or `Procfile`, Li
471472

472473
If you setup via `puma.rb`, then remove the conditional statement.
473474

474-
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`.
475+
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`.
475476

476477
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:
477478

lib/litestream/upstream.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module Upstream
44

55
# rubygems platform name => upstream release filename
66
NATIVE_PLATFORMS = {
7+
"aarch64-linux" => "litestream-#{VERSION}-linux-arm64.tar.gz",
78
"arm64-darwin" => "litestream-#{VERSION}-darwin-arm64.zip",
89
"arm64-linux" => "litestream-#{VERSION}-linux-arm64.tar.gz",
910
"x86_64-darwin" => "litestream-#{VERSION}-darwin-amd64.zip",

rakelib/package.rake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
# So the full set of gem files created will be:
2727
#
2828
# - pkg/litestream-1.0.0.gem
29+
# - pkg/litestream-1.0.0-aarch64-linux.gem
2930
# - pkg/litestream-1.0.0-arm64-linux.gem
3031
# - pkg/litestream-1.0.0-arm64-darwin.gem
3132
# - pkg/litestream-1.0.0-x86_64-darwin.gem
@@ -38,7 +39,8 @@
3839
# New rake tasks created:
3940
#
4041
# - rake gem:ruby # Build the ruby gem
41-
# - rake gem:arm64-linux # Build the aarch64-linux gem
42+
# - rake gem:aarch64-linux # Build the aarch64-linux gem
43+
# - rake gem:arm64-linux # Build the arm64-linux gem
4244
# - rake gem:arm64-darwin # Build the arm64-darwin gem
4345
# - rake gem:x86_64-darwin # Build the x86_64-darwin gem
4446
# - rake gem:x86_64-linux # Build the x86_64-linux gem

0 commit comments

Comments
 (0)