File tree 3 files changed +27
-13
lines changed
3 files changed +27
-13
lines changed Original file line number Diff line number Diff line change @@ -19,18 +19,15 @@ jobs:
19
19
runs-on : ubuntu-latest
20
20
strategy :
21
21
matrix :
22
- ruby : [2.7, "3.0", 3.1]
23
-
22
+ ruby : ["2.7", "3.0", "3.1"]
24
23
steps :
25
24
- uses : actions/checkout@v2
26
-
27
- - name : Set up Ruby
28
- uses : ruby/setup-ruby@v1
25
+ - run : rm Gemfile.lock
26
+ - uses : ruby/setup-ruby@v1
29
27
with :
30
- ruby-version : ${{ matrix.ruby }}
28
+ ruby-version : ${{matrix.ruby}}
31
29
bundler : latest
32
30
bundler-cache : true
33
-
34
31
- name : Run tests
35
32
run : bin/test
36
33
42
39
runs-on : ${{matrix.plat}}-latest
43
40
steps :
44
41
- uses : actions/checkout@v2
42
+ - run : rm Gemfile.lock
45
43
- uses : ruby/setup-ruby@v1
46
44
with :
47
45
ruby-version : " 3.1"
Original file line number Diff line number Diff line change 23
23
runs-on : ubuntu-latest
24
24
steps :
25
25
- uses : actions/checkout@v2
26
+ - run : rm Gemfile.lock
26
27
- uses : ruby/setup-ruby@v1
27
28
with :
28
- ruby-version : " 3.0 "
29
+ ruby-version : " 3.1 "
29
30
bundler : latest
30
31
bundler-cache : true
31
32
- run : " bundle exec rake gem:${{matrix.platform}}"
41
42
steps :
42
43
- uses : ruby/setup-ruby@v1
43
44
with :
44
- ruby-version : " 3.0 "
45
+ ruby-version : " 3.1 "
45
46
- uses : actions/download-artifact@v2
46
47
with :
47
48
name : gem-ruby
@@ -55,11 +56,26 @@ jobs:
55
56
steps :
56
57
- uses : ruby/setup-ruby@v1
57
58
with :
58
- ruby-version : " 3.0"
59
+ ruby-version : " 3.1"
60
+ - uses : actions/download-artifact@v2
61
+ with :
62
+ name : gem-x86_64-linux
63
+ path : pkg
64
+ - run : " gem install pkg/tailwindcss-rails-*.gem"
65
+ - run : " tailwindcss --help"
66
+
67
+ linux-musl-install :
68
+ needs : ["package"]
69
+ runs-on : ubuntu-latest
70
+ container :
71
+ image : ruby:3.1-alpine
72
+ steps :
59
73
- uses : actions/download-artifact@v2
60
74
with :
61
75
name : gem-x86_64-linux
62
76
path : pkg
77
+ - run : " gem update --system"
78
+ - run : " apk add build-base" # TODO: remove after https://github.com/rubygems/rubygems/issues/5914 is in a rubygems release
63
79
- run : " gem install pkg/tailwindcss-rails-*.gem"
64
80
- run : " tailwindcss --help"
65
81
69
85
steps :
70
86
- uses : ruby/setup-ruby@v1
71
87
with :
72
- ruby-version : " 3.0 "
88
+ ruby-version : " 3.1 "
73
89
- uses : actions/download-artifact@v2
74
90
with :
75
91
name : gem-x86_64-darwin
Original file line number Diff line number Diff line change @@ -18,15 +18,15 @@ def platform
18
18
def executable (
19
19
exe_path : File . expand_path ( File . join ( __dir__ , ".." , ".." , "exe" ) )
20
20
)
21
- if Tailwindcss ::Upstream ::NATIVE_PLATFORMS . keys . none? { |p | Gem ::Platform . match ( p ) }
21
+ if Tailwindcss ::Upstream ::NATIVE_PLATFORMS . keys . none? { |p | Gem ::Platform . match ( Gem :: Platform . new ( p ) ) }
22
22
raise UnsupportedPlatformException , <<~MESSAGE
23
23
tailwindcss-rails does not support the #{ platform } platform
24
24
Please install tailwindcss following instructions at https://tailwindcss.com/docs/installation
25
25
MESSAGE
26
26
end
27
27
28
28
exe_path = Dir . glob ( File . expand_path ( File . join ( exe_path , "*" , "tailwindcss" ) ) ) . find do |f |
29
- Gem ::Platform . match ( File . basename ( File . dirname ( f ) ) )
29
+ Gem ::Platform . match ( Gem :: Platform . new ( File . basename ( File . dirname ( f ) ) ) )
30
30
end
31
31
32
32
if exe_path . nil?
You can’t perform that action at this time.
0 commit comments