@@ -19,13 +19,17 @@ jobs:
1919 image : " ghcr.io/rake-compiler/rake-compiler-dock-image:1.4.0-mri-${{ matrix.platform }}"
2020 steps :
2121 - uses : actions/checkout@v4
22+
2223 - run : git config --global --add safe.directory /__w/tiny_tds/tiny_tds # shrug
24+
2325 - name : Install gems
2426 shell : bash
2527 run : bundle install
28+
2629 - name : Write used versions into file
2730 shell : bash
2831 run : bundle exec rake ports:version_file[${{ matrix.platform }}]
32+
2933 - name : Cache ports
3034 uses : actions/cache@v4
3135 with :
3438 restore-keys : |
3539 cross-compiled-${{ hashFiles('**/.ports_versions') }}
3640 cross-compiled-v2-
41+
3742 - name : Build gem
3843 shell : bash
3944 run : bundle exec rake gem:for_platform[${{ matrix.platform }}]
45+
4046 - uses : actions/upload-artifact@v4
4147 with :
4248 name : gem-${{ matrix.platform }}
5056 matrix :
5157 ruby-version :
5258 - 2.7
53- - ' 3.0'
59+ - " 3.0"
5460
5561 name : Install on Windows (MingW)
5662 runs-on : windows-latest
@@ -72,10 +78,10 @@ jobs:
7278 $rubyArchitecture = (ruby -e "puts RbConfig::CONFIG['arch']").Trim()
7379 $gemVersion = (Get-Content VERSION).Trim()
7480 $gemToInstall = "./tiny_tds-$gemVersion-$rubyArchitecture.gem"
75-
81+
7682 Write-Host "Looking to install $gemToInstall"
7783 gem install --local "$gemToInstall"
78-
84+
7985 ruby -e "require 'tiny_tds'; puts TinyTds::Gem.root_path"
8086 exit $LASTEXITCODE
8187
9197 - 2022
9298 ruby-version :
9399 - 2.7
94- - ' 3.0'
100+ - " 3.0"
95101
96102 name : Test on Windows (MingW)
97103 runs-on : windows-latest
@@ -239,7 +245,7 @@ jobs:
239245 $source = (Resolve-Path ".\tmp\gems\tiny_tds-$gemVersion-$rubyArchitecture\lib\tiny_tds").Path
240246 $destination = (Resolve-Path ".\lib\tiny_tds").Path
241247 Get-ChildItem $source -Recurse -Exclude "*.rb" | Copy-Item -Destination {Join-Path $destination $_.FullName.Substring($source.length)}
242-
248+
243249 # Restore ports
244250 Copy-Item -Path ".\tmp\gems\tiny_tds-$gemVersion-$rubyArchitecture\ports" -Destination "." -Recurse
245251
@@ -345,7 +351,7 @@ jobs:
345351 - 2022
346352 ruby-version :
347353 - 2.7
348- - ' 3.0'
354+ - " 3.0"
349355 - 3.1
350356 - 3.2
351357 - 3.3
0 commit comments