Skip to content

Commit

Permalink
packages yum: add a suffix of package name for discriminating between…
Browse files Browse the repository at this point in the history
… x86_64 and aarch64
  • Loading branch information
komainu8 committed Jan 29, 2022
1 parent 6093559 commit 5158b87
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- Debian GNU/Linux buster amd64
- Debian GNU/Linux buster arm64
- Debian GNU/Linux buster i386
- CentOS 7
- CentOS 7 x86_64
- AlmaLinux 8 x86_64
- AlmaLinux 8 aarch64
include:
Expand Down Expand Up @@ -107,8 +107,8 @@ jobs:
task-namespace: apt
target: debian-buster-i386
test-docker-image: i386/debian:buster
- label: CentOS 7
id: centos-7
- label: CentOS 7 x86_64
id: centos-7-x86_64
task-namespace: yum
target: centos-7
test-docker-image: centos:7
Expand Down
12 changes: 11 additions & 1 deletion packages/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ class GroongaPackageTask < PackagesGroongaOrgPackageTask
"packages-#{target}-amd64"
end
when :yum
"packages-#{target}"
if target.end_with?("-aarch64")
"packages-#{target}"
else
"packages-#{target}-x86_64"
end
else
raise NotImplementedError
end
Expand All @@ -140,6 +144,12 @@ class GroongaPackageTask < PackagesGroongaOrgPackageTask
else
url << "#{target}-amd64.tar.gz"
end
when :yum
if target.end_with?("-aarch64")
url << "#{target}.tar.gz"
else
url << "#{target}-x86_64.tar.gz"
end
when :windows
url << "#{target}"
else
Expand Down

0 comments on commit 5158b87

Please sign in to comment.