summary refs log tree commit diff
path: root/.github
diff options
context:
space:
mode:
authorMarcoIeni <11428655+MarcoIeni@users.noreply.github.com>2025-04-23 13:31:24 +0200
committerMarcoIeni <11428655+MarcoIeni@users.noreply.github.com>2025-04-23 13:31:24 +0200
commit18c3370e5d8fe47dfcbcca423544a26fb60553e4 (patch)
tree1eb274650067497f83da4e67cf6be7ff11c860a6 /.github
parentfae7785b60ea7fe1ad293352c057a5b7be73d245 (diff)
downloadrust-18c3370e5d8fe47dfcbcca423544a26fb60553e4.tar.gz
rust-18c3370e5d8fe47dfcbcca423544a26fb60553e4.zip
CI: use aws codebuild for job dist-arm-linux
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2e83bbf643f..7c468715696 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -91,6 +91,17 @@ jobs:
         # Check the `calculate_matrix` job to see how is the matrix defined.
         include: ${{ fromJSON(needs.calculate_matrix.outputs.jobs) }}
     steps:
+      - name: Install cargo in AWS CodeBuild
+        if: matrix.codebuild
+        run: |
+          # Check if cargo is installed
+          if ! command -v cargo &> /dev/null; then
+            echo "Cargo not found, installing Rust..."
+            curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal
+            # Make cargo available in PATH
+            echo "$HOME/.cargo/bin" >> $GITHUB_PATH
+          fi
+
       - name: disable git crlf conversion
         run: git config --global core.autocrlf false
 
@@ -168,6 +179,8 @@ jobs:
         run: src/ci/scripts/install-ninja.sh
 
       - name: enable ipv6 on Docker
+        # Don't run on codebuild because systemctl is not available
+        if: ${{ !matrix.codebuild }}
         run: src/ci/scripts/enable-docker-ipv6.sh
 
       # Disable automatic line ending conversion (again). On Windows, when we're