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 3eee0fe
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 @@ -84,7 +84,7 @@ jobs:
include:
- target: x86_64-unknown-freebsd
image: https://gitlab.com/kit-ty-kate/qemu-base-images/-/raw/master/FreeBSD-13.2-RELEASE-amd64.qcow2?inline=false
md5: 33b6bc89cdc675f5cbaf92e71ae648f8
md5: 01ad7883c69476d90872eb38180085c0
args: -net nic
- target: x86_64-unknown-openbsd
image: https://gitlab.com/kit-ty-kate/qemu-base-images/-/raw/master/OpenBSD-7.4-amd64.qcow2?inline=false
Expand All @@ -110,7 +110,7 @@ jobs:
if: steps.lookup-image.outputs.cache-hit != 'true'
run: |
wget -O - --progress=dot:mega "${{ matrix.image }}" \
| tee ~/image.qcow2 \
| tee ~/image.qcow2.xz \
| md5sum -c <(echo "${{ matrix.md5 }} -")
- name: Boot image
Expand All @@ -133,10 +133,13 @@ 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') }}
Expand Down

0 comments on commit 3eee0fe

Please sign in to comment.