From 8727fc4d9dba70c78944dea2df8c4d92772cede0 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Mon, 11 Nov 2024 06:37:22 +0100 Subject: [PATCH] vars --- .github/workflows/windows.yml | 12 +++++++----- example.c | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 23cf325..1ea2ea1 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -10,10 +10,12 @@ 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 . + $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 . + ls $dl_file + - run: | 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 + gcc -o example.exe example.c "curl-8.11.0_1-win64-mingw/bin/libcurl-x64.dll" -Icurl-8.11.0_1-win64-mingw/include && ./example.exe # - run: gcc -o example example.c "libcurl-dyn/bin/libcurl-x64.dll" -Ilibcurl/include diff --git a/example.c b/example.c index 73adbfa..6db3452 100644 --- a/example.c +++ b/example.c @@ -2,7 +2,7 @@ * All curl_easy_setopt() options are documented at: * https://curl.se/libcurl/c/curl_easy_setopt.html ************************************************************************/ -#include +#include "curl/curl.h" int main(int argc, char *argv[]) { CURLcode ret;