@@ -23,66 +23,28 @@ jobs:
2323 strategy :
2424 matrix :
2525 rubyversion : ['3.3', '3.4']
26- proxytag : ['3.16.1']
2726
2827 steps :
29- - name : Determine tag to fetch
30- id : tag
31- run : |
32- $ErrorActionPreference = 'Stop'
33- $repo = 'theforeman/smart-proxy'
34-
35- if ('${{ github.event.inputs.version }}') {
36- $tag = '${{ github.event.inputs.version }}'
37- } else {
38- $tag = '${{ matrix.proxytag }}'
39- }
40- "tag=$tag" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
28+ - name : Checkout this repo
29+ uses : actions/checkout@v4
4130
4231 - name : Set up Ruby (Windows)
4332 uses : ruby/setup-ruby@v1
4433 with :
4534 ruby-version : ${{ matrix.rubyversion }}
4635 bundler-cache : true
4736
48- - name : Print debug info
49- shell : pwsh
50- run : |
51- $repo = 'theforeman/smart-proxy'
52- $tag = '${{ steps.tag.outputs.tag }}'
53- $zip = "$env:RUNNER_TEMP\smart-proxy-$tag.zip"
54- $url = "https://github.com/$repo/archive/refs/tags/$tag.zip"
55- Write-Host "Repo: $repo"
56- Write-Host "Tag: $tag"
57- Write-Host "URL: $url"
58- Write-Host "ZIP: $zip"
59-
60- - name : Download release source ZIP
61- run : |
62- $repo = 'theforeman/smart-proxy'
63- $tag = '${{ steps.tag.outputs.tag }}'
64- $zip = "$env:RUNNER_TEMP\smart-proxy-$tag.zip"
65- $url = "https://github.com/$repo/archive/refs/tags/$tag.zip"
66- Invoke-WebRequest -Uri $url -OutFile $zip
67- Expand-Archive -Path $zip -DestinationPath $env:RUNNER_TEMP -Force
68- # Move to a stable path
69- $extracted = Get-ChildItem "$env:RUNNER_TEMP\smart-proxy-*" -Directory | Select-Object -First 1
70- Move-Item $extracted.FullName "$env:GITHUB_WORKSPACE\smart-proxy"
71-
7237 - name : Show Ruby env (sanity)
73- working-directory : smart-proxy
7438 run : |
7539 ruby -v
7640 gem -v
7741 ridk version
7842
7943 - name : Bundle install smart-proxy
80- working-directory : smart-proxy
8144 run : |
8245 bundle config set path vendor/bundle
8346 bundle install --jobs 4
8447
8548 - name : Rake sanity
86- working-directory : smart-proxy
8749 run : |
8850 bundle exec rake -T
0 commit comments