From c4dfc0c36240311d6e06e3931e2f466d3e72e080 Mon Sep 17 00:00:00 2001 From: Elliott Linder Date: Wed, 6 Mar 2024 12:06:25 +0100 Subject: [PATCH] fix: install curl for FreeBSD CI --- .github/workflows/ci.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97e0a26..90b4f2a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -133,17 +133,20 @@ jobs: parallel -t --retries 20 --delay 5 ::: 'sshpass -e ssh-copy-id -o StrictHostKeyChecking=no qemu' - name: Install toolchain (rustup) - if: ${{ !contains(matrix.target, 'openbsd') }} + if: ${{ contains(matrix.target, 'freebsd') }} run: | - ssh qemu "curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal" - ssh qemu "ln -s ~/.cargo/bin ~/bin" + ssh qemu <<'EOF' + pkg install -y curl + curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal + ln -s ~/.cargo/bin ~/bin + EOF - name: Install toolchain (pkg) if: ${{ contains(matrix.target, 'openbsd') }} run: ssh qemu "pkg_add rust" - name: Copy crate - run: rsync -r . qemu:crate + run: scp -r . qemu:crate # TODO: Respect RUST_TEST_THREADS - name: Run tests