diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d58670a..83679bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,6 +88,9 @@ jobs: options: --privileged -v /var/run/docker.sock:/var/run/docker.sock steps: - uses: actions/checkout@v4 + - name: Install Rust toolchain + run: dnf install -y cargo + - uses: Swatinem/rust-cache@v2 - name: Run integration tests run: | set -o pipefail diff --git a/test/check.sh b/test/check.sh index 8cd69ad..398a692 100755 --- a/test/check.sh +++ b/test/check.sh @@ -426,7 +426,11 @@ ci_install_utilities() { fi dnf update -y - dnf install -y cargo nmap-ncat git gcc clang cmake make + if command -v cargo >/dev/null 2>&1 && command -v rustc >/dev/null 2>&1; then + dnf install -y nmap-ncat git gcc clang cmake make + else + dnf install -y cargo nmap-ncat git gcc clang cmake make + fi # pgmoneta source build requires libev headers; install by pkg-config provide first. if ! dnf install -y libev 'pkgconfig(libev)'; then