Skip to content

Commit 731a43c

Browse files
authored
Merge pull request #541 from andyundso/fix-artifacts
Fix path to artifacts
2 parents e60b00a + a8e3343 commit 731a43c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.circleci/config.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,19 @@ jobs:
213213
- store_test_results:
214214
path: test/reports
215215

216+
- run:
217+
name: Rename gem to a consistent name to store artifact
218+
command: |
219+
$Env:PATH = "C:\\Ruby<< parameters.ruby_version >>-x64\\bin;$Env:PATH"
220+
$rubyArchitecture = (ruby -e 'puts RUBY_PLATFORM').Trim()
221+
$gemVersion = (Get-Content VERSION).Trim()
222+
223+
New-Item -Path . -Name "tested_artifact" -ItemType "directory"
224+
Move-Item "artifacts/gems/tiny_tds-$gemVersion-$rubyArchitecture.gem" "tested_artifact"
225+
226+
- store_artifacts:
227+
path: tested_artifact
228+
216229
cross_compile_gem:
217230
parameters:
218231
platform:
@@ -259,7 +272,7 @@ jobs:
259272
rm -rf artifacts-<< parameters.platform >>/gems/tiny_tds-$gemVersion.gem
260273
261274
- store_artifacts:
262-
path: artifacts/gems
275+
path: artifacts-<< parameters.platform >>/gems
263276

264277
- save_cache:
265278
name: save ports cache

0 commit comments

Comments
 (0)