Skip to content

Commit

Permalink
Add support for linux aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
IxDay committed Mar 3, 2025
1 parent f1e2073 commit f2329d3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ jobs:
fail-fast: false
matrix:
include:
- {name: linux-x86_64, os: macos-latest}
- {name: linux-x86_64-musl, os: macos-latest}
- {name: windows-x86_64, os: macos-latest}
- {name: macos-aarch64, os: macos-latest}
- {name: macos-x86_64, os: macos-13}
- {name: linux-x86_64, os: macos-latest}
- {name: linux-x86_64-musl, os: macos-latest}
- {name: linux-aarch64, os: macos-latest}
- {name: linux-aarch64-musl, os: macos-latest}
- {name: windows-x86_64, os: macos-latest}
- {name: macos-aarch64, os: macos-latest}
- {name: macos-x86_64, os: macos-13}
permissions:
contents: write
runs-on: "${{ matrix.os }}"
Expand Down
12 changes: 7 additions & 5 deletions build.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
require_relative 'toolchain'

ARCH_MAPPING = {
"windows-x86_64" => "x86_64-windows-gnu",
"macos-x86_64" => RUBY_PLATFORM,
# "macos-aarch64" => RUBY_PLATFORM, # this is not working at the moment
"linux-x86_64" => "x86_64-linux",
"linux-x86_64-musl" => "x86_64-linux-musl"
"windows-x86_64" => "x86_64-windows-gnu",
"macos-x86_64" => RUBY_PLATFORM,
# "macos-aarch64" => RUBY_PLATFORM, # this is not working at the moment
"linux-x86_64" => "x86_64-linux",
"linux-x86_64-musl" => "x86_64-linux-musl",
"linux-aarch64" => "aarch64-linux",
"linux-aarch64-musl" => "aarch64-linux-musl",
}

def setup(conf)
Expand Down
3 changes: 3 additions & 0 deletions config-linux-aarch64-musl.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require_relative 'build'

build("linux-aarch64-musl")
3 changes: 3 additions & 0 deletions config-linux-aarch64.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require_relative 'build'

build("linux-aarch64")

0 comments on commit f2329d3

Please sign in to comment.