Skip to content

Commit 7fd776b

Browse files
committed
Added binary installation for Debian 11 ARM - #54
1 parent a8be51a commit 7fd776b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 0.11.1 (unreleased)
22

33
- Added binary installation for Arch Linux
4+
- Added binary installation for Debian 11 ARM
45

56
## 0.11.0 (2023-11-16)
67

Rakefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ task :update do
2626
require "tmpdir"
2727

2828
version = "9.8.3296"
29-
distributions = ["arm64_macOS-14.1", "x86_64_macOS-14.1", "ubuntu-22.04", "ubuntu-20.04", "debian-11", "centos-7", "archlinux"]
29+
distributions = ["arm64_macOS-14.1", "x86_64_macOS-14.1", "amd64_ubuntu-22.04", "amd64_ubuntu-20.04", "amd64_debian-11", "arm64_debian-11" "amd64_centos-7", "amd64_archlinux"]
3030

3131
short_version = version.split(".").first(2).join(".")
3232
distributions.each do |dist|
33-
prefix = dist.include?("macOS") ? "" : "amd64_"
34-
filename = "or-tools_#{prefix}#{dist}_cpp_v#{version}.tar.gz"
33+
filename = "or-tools_#{dist}_cpp_v#{version}.tar.gz"
3534
url = "https://github.com/google/or-tools/releases/download/v#{short_version}/#{filename}"
3635
dest = "#{Dir.tmpdir}/#{filename}"
3736
unless File.exist?(dest)

ext/or-tools/vendor.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
elsif os == "debian" && os_version == "11" && !arm
3838
filename = "or-tools_amd64_debian-11_cpp_v#{version}.tar.gz"
3939
checksum = "e7dd81b13c53c739447254b8836ece55f8b92a107688cc9f3511705c9962fa2d"
40+
elsif os == "debian" && os_version == "11" && arm
41+
filename = "or-tools_arm64_debian-11_cpp_v#{version}.tar.gz"
42+
checksum = "77a88d01eb612ffac0f6e030e30e58a3d171fe75d93a527ec55a06f9070332ab"
4043
elsif os == "centos" && os_version == "7" && !arm
4144
filename = "or-tools_amd64_centos-7_cpp_v#{version}.tar.gz"
4245
checksum = "d9f193572d3a38b3062ae4cb89afc654e662eb734a9361b1575d649b9530cf60"

0 commit comments

Comments
 (0)