@@ -66,21 +66,21 @@ jobs:
66
66
rm -rf tmp/build-cache
67
67
mv tmp/build-cache-new tmp/build-cache
68
68
69
+ - name : Basic tests on the generated image
70
+ env :
71
+ TEST_PLATFORM : ${{ matrix.platform }}
72
+ run : |
73
+ bundle exec rake test
74
+
69
75
- name : Build rcd_test.gem
70
76
run : |
71
77
gem build rake-compiler-dock.gemspec
72
78
gem install -l rake-compiler-dock-*.gem
73
79
cd test/rcd_test/
74
- bundle install
80
+ bundle install --local
75
81
bundle exec rake clean clobber
76
82
bundle exec rake gem:${PLATFORM}
77
83
78
- - name : Basic tests on the generated image
79
- env :
80
- TEST_PLATFORM : ${{ matrix.platform }}
81
- run : |
82
- bundle exec rake test
83
-
84
84
- name : Upload binary gem
85
85
uses : actions/upload-artifact@v3
86
86
with :
95
95
path : test/rcd_test/pkg/*-?.?.?.gem
96
96
97
97
- if : contains(matrix.platform, 'x64-mingw')
98
- name : Build static rcd_test.gem
98
+ name : Build static rcd_test.gem for windows
99
99
env :
100
100
RCD_TEST_CONFIG : " --link-static"
101
101
run : |
@@ -107,12 +107,46 @@ jobs:
107
107
bundle exec rake gem:${PLATFORM}
108
108
109
109
- if : contains(matrix.platform, 'x64-mingw')
110
- name : Upload static binary gem
110
+ name : Upload static rcd_test. gem
111
111
uses : actions/upload-artifact@v3
112
112
with :
113
113
name : gem-${{ matrix.platform }}-static
114
114
path : test/rcd_test/pkg/*-*-*.gem
115
115
116
+ job_test_source :
117
+ name : source gem
118
+ needs : docker_build
119
+ strategy :
120
+ fail-fast : false
121
+ matrix :
122
+ os :
123
+ - ubuntu
124
+ ruby :
125
+ - " 3.2"
126
+ - " 3.1"
127
+ - " 3.0"
128
+ - " 2.7"
129
+ - " 2.6"
130
+ - " 2.5"
131
+ - " 2.4"
132
+ runs-on : ${{ matrix.os }}-latest
133
+ steps :
134
+ - uses : actions/checkout@v3
135
+ - uses : ruby/setup-ruby@v1
136
+ with :
137
+ ruby-version : ${{ matrix.ruby }}
138
+ - name : Download gem-ruby
139
+ uses : actions/download-artifact@v3
140
+ with :
141
+ name : gem-ruby
142
+ - name : Install gem-ruby
143
+ run : gem install --local *.gem --verbose
144
+ - name : Run tests
145
+ run : |
146
+ cd test/rcd_test/
147
+ bundle install
148
+ ruby -rrcd_test -S rake test
149
+
116
150
job_test_native :
117
151
name : native
118
152
needs : docker_build
@@ -138,8 +172,6 @@ jobs:
138
172
platform : x86_64-darwin
139
173
- os : ubuntu
140
174
platform : x86_64-linux
141
- - os : ubuntu
142
- platform : ruby
143
175
- os : ubuntu
144
176
ruby : jruby-head
145
177
platform : jruby
0 commit comments