Skip to content

Commit 174d033

Browse files
committed
install cargo if needed
1 parent fa99b61 commit 174d033

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

+5
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@ jobs:
189189
# Build it into the build directory, to avoid modifying sources
190190
- name: build citool
191191
run: |
192+
# Check if cargo is installed
193+
if ! command -v cargo &> /dev/null; then
194+
echo "Cargo not found, installing Rust..."
195+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
196+
fi
192197
cd src/ci/citool
193198
CARGO_INCREMENTAL=0 CARGO_TARGET_DIR=../../../build/citool cargo build
194199

0 commit comments

Comments
 (0)