aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-07-21 18:38:29 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-07-21 18:38:29 +0900
commit22f9735587aff23929e6e436567fcfb3d48be73e (patch)
treec6254577d265ae1364d1b365f0fd90afe75dd068 /.github
parent7fdf98ef39cc7b079502f0faa086b31f16f3b0c6 (diff)
downloadruby-22f9735587aff23929e6e436567fcfb3d48be73e.tar.gz
Use already installed `rustc` if available [ci skip]
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/compilers.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/compilers.yml b/.github/workflows/compilers.yml
index b95a865e2c..a8e417f9a6 100644
--- a/.github/workflows/compilers.yml
+++ b/.github/workflows/compilers.yml
@@ -241,7 +241,11 @@ jobs:
- name: Install Rust
if: ${{ matrix.entry.rust }}
- run: sudo apt-get update && sudo apt install -y rustc
+ run: |
+ command -v rustc ||
+ {
+ sudo apt-get update && sudo apt install -y rustc
+ }
- name: Run configure
run: >