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

Add Alpine Linux as supported platform #19

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

Watson1978
Copy link
Contributor

This PR will add Alpine Linux as supported platform.

Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also add Alpine Linux to CI?

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 2bef357..711740e 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -10,6 +10,7 @@ jobs:
       matrix:
         distribution:
           - almalinux-9
+          - alpine-linux
           - alt-linux
           - amazon-linux-2
           - amazon-linux-2023

@@ -0,0 +1,41 @@
# Copyright (C) 2017-2023 Ruby-GNOME Project Team
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Copyright (C) 2017-2023 Ruby-GNOME Project Team
# Copyright (C) 2023 Ruby-GNOME Project Team

@@ -46,6 +46,7 @@ def detect

require_relative "platform/debian"
require_relative "platform/ubuntu"
require_relative "platform/alpine-linux"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These require_relatives are for Debian based distributions.
Could you put this after platform/suse?

diff --git a/lib/native-package-installer/platform.rb b/lib/native-package-installer/platform.rb
index 8476fbd..528c785 100644
--- a/lib/native-package-installer/platform.rb
+++ b/lib/native-package-installer/platform.rb
@@ -57,6 +57,8 @@ require_relative "platform/amazon-linux-2023"
 
 require_relative "platform/suse"
 
+require_relative "platform/alpine-linux"
+
 
 # Windows
 require_relative "platform/msys2"

@Watson1978
Copy link
Contributor Author

@kou Thank you for your review. I fixed at 451266b

@kou kou merged commit 45334a2 into ruby-gnome:master Dec 18, 2023
17 of 20 checks passed
@kou
Copy link
Member

kou commented Dec 18, 2023

Thanks!

@Watson1978 Watson1978 deleted the alpine-linux branch December 19, 2023 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants