Skip to content

Commit

Permalink
fix: install curl for FreeBSD CI
Browse files Browse the repository at this point in the history
  • Loading branch information
darfink committed Mar 6, 2024
1 parent 9117694 commit 16102d7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
- name: Boot image
run: |
qemu-system-x86_64 -m 2048 -display none -snapshot -daemonize \
-drive if=virtio,media=disk,file=$HOME/image.qcow2 \
-drive if=ide,media=disk,file=$HOME/image.qcow2 \
-net user,hostfwd=tcp::1025-:22 \
${{ matrix.args }}
Expand All @@ -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 $PWD qemu:crate

# TODO: Respect RUST_TEST_THREADS
- name: Run tests
Expand Down

0 comments on commit 16102d7

Please sign in to comment.