Skip to content

Commit 70b9189

Browse files
committed
Skip unnecessary runtime setup for integ-buildcmd-java
Java tests only need Python + Java. Skip Go, Ruby, Node, Dotnet, and Rust setup steps to save ~3 min of setup overhead on each Java test runner.
1 parent 021a45a commit 70b9189

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,15 @@ jobs:
165165
- name: Install Python versions
166166
run: bash tests/setup-python-uv.sh 3.9 3.10 3.11 3.12 3.13 3.14 ${{ matrix.python }}
167167
- uses: actions/setup-go@v6
168+
if: ${{ matrix.tests_config.name != 'integ-buildcmd-java' }}
168169
with:
169170
go-version: '1.19'
170171
- uses: ruby/setup-ruby@4dc28cf14d77b0afa6832d9765ac422dbf0dfedd # v1
172+
if: ${{ matrix.tests_config.name != 'integ-buildcmd-java' }}
171173
with:
172174
ruby-version: "3.3"
173175
- uses: actions/setup-node@v6
176+
if: ${{ matrix.tests_config.name != 'integ-buildcmd-java' }}
174177
with:
175178
node-version: 24
176179
- uses: actions/setup-java@v5
@@ -183,11 +186,12 @@ jobs:
183186
21
184187
25
185188
- uses: actions/setup-dotnet@v5
189+
if: ${{ matrix.tests_config.name != 'integ-buildcmd-java' }}
186190
with:
187191
dotnet-version: '10.0.x'
188192
# Install and configure Rust & Cargo Lambda
189193
- name: Install Rust toolchain and cargo-lambda
190-
if: ${{ matrix.os == 'ubuntu-latest' }}
194+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.tests_config.name != 'integ-buildcmd-java' }}
191195
run: bash tests/install-rust.sh --uv
192196
- name: Init samdev
193197
run: make init

0 commit comments

Comments
 (0)