@@ -139,13 +139,14 @@ jobs:
139139 submodules : ' recursive'
140140<% endif % >
141141
142- <% if lang == "go" % >
142+ <% if "go" in lang_tools % >
143143 - uses : actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
144144 with :
145145 cache-dependency-path : go/go.sum
146146 check-latest : true
147147 go-version-file : go/go.mod
148- <% elif lang == "rust" % >
148+ <% endif % >
149+ <% if "rust" in lang_tools % >
149150 - uses : actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
150151 with :
151152 components : " clippy"
@@ -317,13 +318,14 @@ jobs:
317318 submodules : ' recursive'
318319<% endif % >
319320
320- <% if lang == "go" % >
321+ <% if "go" in lang_tools % >
321322 - uses : actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
322323 with :
323324 cache-dependency-path : go/go.sum
324325 check-latest : true
325326 go-version-file : go/go.mod
326- <% elif lang == "rust" % >
327+ <% endif % >
328+ <% if "rust" in lang_tools % >
327329 - uses : actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
328330 with :
329331 components : " clippy"
@@ -493,13 +495,14 @@ jobs:
493495 submodules : ' recursive'
494496<% endif % >
495497
496- <% if lang == "go" % >
498+ <% if "go" in lang_tools % >
497499 - uses : actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
498500 with :
499501 cache-dependency-path : go/go.sum
500502 check-latest : true
501503 go-version-file : go/go.mod
502- <% elif lang == "rust" % >
504+ <% endif % >
505+ <% if "rust" in lang_tools % >
503506 - uses : actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
504507 with :
505508 components : " clippy"
@@ -582,12 +585,13 @@ jobs:
582585 submodules : ' recursive'
583586<% endif % >
584587
585- <% if lang == "go" % >
588+ <% if "go" in lang_tools % >
586589 - uses : actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
587590 with :
588591 check-latest : true
589592 go-version : " stable"
590- <% elif lang == "rust" % >
593+ <% endif % >
594+ <% if "rust" in lang_tools % >
591595 - uses : actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
592596 with :
593597 components : " clippy"
@@ -606,7 +610,7 @@ jobs:
606610 - name : Install tools
607611 working-directory : <{ lang_subdir }>
608612 run : |
609- <% if lang == "go" % >
613+ <% if "go" in lang_tools % >
610614 # XXX: can't install go-licenses under go 1.25
611615 # https://github.com/google/go-licenses/issues/312
612616 git clone --depth=1 https://github.com/google/go-licenses
@@ -619,7 +623,8 @@ jobs:
619623 go mod tidy
620624 go install .
621625 popd
622- <% elif lang == "rust" % >
626+ <% endif % >
627+ <% if "rust" in lang_tools % >
623628 cargo install cargo-about
624629<% endif % >
625630
@@ -786,11 +791,6 @@ jobs:
786791 submodules : ' recursive'
787792<% endif % >
788793
789- - uses : actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
790- with :
791- check-latest : true
792- go-version : " stable"
793-
794794 - uses : prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
795795 with :
796796 pixi-version : v0.63.2
0 commit comments