@@ -42,44 +42,13 @@ jobs:
4242          } 
4343         result-encoding : string 
4444
45-   release :
46-     name : Create GitHub Release 
47-     needs : [prepare] 
48-     if : needs.prepare.outputs.should_build == 'true' 
49-     runs-on : ubuntu-latest 
50-     outputs :
51-       tag : ${{ steps.tag.outputs.tag }} 
52-     steps :
53-     - uses : actions/checkout@v5 
54-       with :
55-         fetch-depth : 0 
56-       if : github.event_name != 'push' 
57- 
58-     - name : Set tag name 
59-       id : tag 
60-       run : | 
61-         if [[ "${{ github.event_name }}" != "push" ]]; then 
62-           tag=v$(date +%Y%m%d.%H%M%S) 
63-         else 
64-           tag=$(basename "${{ github.ref }}") 
65-         fi 
66-         echo "tag=$tag" >> $GITHUB_OUTPUT 
67-      - name : Create Release 
68-       env :
69-         GH_TOKEN : ${{ github.token }} 
70-         GH_REPO : ${{ github.repository }} 
71-       run : | 
72-         tag="${{ steps.tag.outputs.tag }}" 
73-         body="oracle/truffleruby@${{ needs.prepare.outputs.commit }}" 
74-         gh release create --draft "$tag" --title "$tag" --notes "$body" 
75- 
7645  build :
77-     needs : [prepare, release ] 
46+     needs : [prepare] 
7847    strategy :
7948      fail-fast : false 
8049      matrix :
81-         os : [ ubuntu-22.04, ubuntu-24.04, ubuntu-22.04-arm, ubuntu-24.04-arm, macos-13,  macos-14 ] 
82-         name : [ '-head', ' +graalvm-head' ] 
50+         os : [ macos-14 ] 
51+         name : [ '+graalvm-head' ] 
8352    runs-on : ${{ matrix.os }} 
8453    steps :
8554    - name : Clone truffleruby 
@@ -154,35 +123,12 @@ jobs:
154123    - name : Create archive 
155124      run : tar czf truffleruby${{ matrix.name }}-${{ steps.platform.outputs.platform }}.tar.gz -C ~/.rubies truffleruby${{ matrix.name }} 
156125
126+     - name : Setup SSH session 
127+       uses : mxschmitt/action-tmate@v3 
128+       with :
129+         limit-access-to-actor : true 
130+ 
157131    - name : Basic test 
158132      run : ~/.rubies/truffleruby${{ matrix.name }}/bin/ruby --version 
159133    - name : OpenSSL test 
160134      run : ~/.rubies/truffleruby${{ matrix.name }}/bin/ruby -ropen-uri -e 'puts URI.send(:open, %{https://rubygems.org/}) { |f| f.read(1024) }' 
161- 
162-     - name : Upload Built Ruby 
163-       env :
164-         GH_TOKEN : ${{ github.token }} 
165-         GH_REPO : ${{ github.repository }} 
166-       run : | 
167-         gh release upload "${{ needs.release.outputs.tag }}" "truffleruby${{ matrix.name }}-${{ steps.platform.outputs.platform }}.tar.gz" 
168-         if [ "${{ steps.platform.outputs.old_platform }}" != "${{ steps.platform.outputs.platform }}" ]; then 
169-           mv "truffleruby${{ matrix.name }}-${{ steps.platform.outputs.platform }}.tar.gz" "truffleruby${{ matrix.name }}-${{ steps.platform.outputs.old_platform }}.tar.gz" 
170-           gh release upload "${{ needs.release.outputs.tag }}" "truffleruby${{ matrix.name }}-${{ steps.platform.outputs.old_platform }}.tar.gz" 
171-         fi 
172- 
173-    publish :
174-     name : Publish Release 
175-     needs : [release, build] 
176-     runs-on : ubuntu-latest 
177-     steps :
178-     - name : Publish Release 
179-       env :
180-         GH_TOKEN : ${{ github.token }} 
181-         GH_REPO : ${{ github.repository }} 
182-       run : gh release edit "${{ needs.release.outputs.tag }}" --draft=false 
183-     - uses : eregon/keep-last-n-releases@v1 
184-       env :
185-         GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 
186-       with :
187-         n : 7 
188-         remove_tags_without_release : true 
0 commit comments