Commit 03243f94

03243f94098bMerged

Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 1 file · ~1 modified

Description

ci: drop unused prism gem install + related cache step

spinel_codegen.rb has no require 'prism' — the AST is parsed by the C-built spinel_parse binary (linked against libprism.a) and spinel_codegen.rb only reads the resulting text AST. Verified with ruby --disable-gems spinel_codegen.rb running cleanly.

The gem install prism -v 1.9.0 step was historical, from a time when spinel_parse itself was a Ruby script. Removing the install on posix (~few sec) and the install + actions/cache plumbing on windows-mingw (~30s, plus the cache hash maintenance burden).

Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]

Details

Commit
03243f94098b
Parent
940d840b79de

.github/workflows/ci.ymlmodifiedView file

@@ -30,9 +30,6 @@
3030 with:
3131 ruby-version: "3.4"
3232
33- - name: Install prism gem (codegen bootstrap step 2 needs it)
34- run: gem install prism -v 1.9.0
35-
3633 - name: Expose GNU coreutils on PATH (macOS)
3734 if: runner.os == 'macOS'
3835 run: echo "/opt/homebrew/opt/coreutils/libexec/gnubin" >> "$GITHUB_PATH"
@@ -83,21 +80,6 @@
8380 gcc --version
8481 ruby --version
8582 make --version | head -1
86-
87- - name: Resolve MSYS2 gem dir
88- id: gemdir
89- run: echo "path=$(ruby -e 'puts Gem.dir')" >> "$GITHUB_OUTPUT"
90-
91- - name: Cache prism gem
92- id: cache-prism
93- uses: actions/cache@v4
94- with:
95- path: ${{ steps.gemdir.outputs.path }}
96- key: prism-mingw64-1.9.0
97-
98- - name: Install prism gem (codegen bootstrap step 2 needs it)
99- if: steps.cache-prism.outputs.cache-hit != 'true'
100- run: gem install prism -v 1.9.0
10183
10284 - name: Fetch libprism sources
10385 run: make deps