Skip to content

Commit

Permalink
vars
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Nov 11, 2024
1 parent f4923c0 commit 24be659
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ jobs:
- run: curl --version
- run: curl https://httpbin.org --libcurl example.c
- run: |
dl_archive=curl-8.11.0_1-win64-mingw.zip
curl -LO https://curl.se/windows/dl-8.11.0_1/$dl_archive
curl-8.11.0_1-win64-mingw.zip
powershell -command Expand-Archive -LiteralPath $dl_archive -DestinationPath .
ls curl-8.11.0_1-win64-mingw
- run: gcc -o example.exe example.c "curl-8.11.0_1-win64-mingw/bin/libcurl-x64.dll" curl-8.11.0_1-win64-mingw/include && ./example.exe
$dl_file="curl-8.11.0_1-win64-mingw"
curl -LO https://curl.se/windows/dl-8.11.0_1/$dl_file.zip
ls
powershell -command Expand-Archive -Path curl-8.11.0_1-win64-mingw.zip -DestinationPath .
mv curl-8.11.0_1-win64-mingw libcurl
ls libcurl
- run: |
ls libcurl/include
gcc -o example.exe example.c "libcurl/bin/libcurl-x64.dll" -Ilibcurl/include && ./example.exe
# - run: gcc -o example example.c "libcurl-dyn/bin/libcurl-x64.dll" -Ilibcurl/include
2 changes: 1 addition & 1 deletion example.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* All curl_easy_setopt() options are documented at:
* https://curl.se/libcurl/c/curl_easy_setopt.html
************************************************************************/
#include <curl/curl.h>
#include "curl/curl.h"

int main(int argc, char *argv[]) {
CURLcode ret;
Expand Down

0 comments on commit 24be659

Please sign in to comment.