Linking to cURL

I’m trying to set up a workflow to test my project with runs-on: ubuntu-latest, and it fails to link due to missing libraries.

Workflow .yml
Example log

Linking...
/usr/bin/ld: cannot find -lcurl
collect2: error: ld returned 1 exit status
Error: linker exited with status 1
dmd failed with exit code 1.

I tried adding a seemingly suitable cURL action (wei/curl), and it installed the command-line curl tool, but no library to link to.

Is it possible to get it to apt install libcurl-dev? I really could not find any guide mentioning missing libraries.

You can use sudo without a password to install additional packages like on any Ubuntu system, see Administrative privileges of GitHub-hosted runners.