about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Denton <chris@chrisdenton.dev>2024-05-26 22:01:26 +0000
committerChris Denton <chris@chrisdenton.dev>2024-05-26 22:43:52 +0000
commit19cfe8d9e6989c4ea49be203757cd086e0ab015c (patch)
treece1dcf97b9789a0e4db4b1853883ac267b5fcf25
parentf63931bc1a8cc44e7fd5cea772da87dfac44bedc (diff)
downloadrust-19cfe8d9e6989c4ea49be203757cd086e0ab015c.tar.gz
rust-19cfe8d9e6989c4ea49be203757cd086e0ab015c.zip
Add "Setup Python" action to github-hosted runners
-rw-r--r--.github/workflows/ci.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3f9936dc5b2..c9d6c56076a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -154,6 +154,12 @@ jobs:
 
       - name: checkout submodules
         run: src/ci/scripts/checkout-submodules.sh
+      
+      - name: Setup Python
+        uses: actions/setup-python@v5
+        with:
+          python-version: '3.x'
+        if: runner.environment == 'github-hosted'
 
       - name: install MinGW
         run: src/ci/scripts/install-mingw.sh