From d7ad21437809bd982563c827bdbde323cb07d6ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20B=C3=B8nes?= Date: Sat, 8 Apr 2023 22:00:30 +0200 Subject: [PATCH 1/3] Added CI job to verify build on Windows --- .github/workflows/makefile.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index cd4f31e7..253c3a09 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -24,3 +24,20 @@ jobs: - name: test run: make test + + build-win: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + + - name: install cygwin + uses: cygwin/cygwin-install-action@master + with: + packages: curl, libcurl-devel, libcurl4, make, gcc-core + + - name: make + run: make + + - name: test + run: make test From def88db225c9a93bc633b881691d7bdb56b06682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20B=C3=B8nes?= Date: Sat, 8 Apr 2023 22:40:30 +0200 Subject: [PATCH 2/3] added install instructions for windows --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ad5896b1..8cb181c2 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ command line tool for URL parsing and manipulation ## Install -On Linux : +**On Linux :** It's quite easy to compile the C source with GCC : @@ -69,6 +69,12 @@ cc -W -Wall -pedantic -g -c -o trurl.o trurl.c cc trurl.o -lcurl -o trurl ``` +**On Windows:** +1. Download and run [Cygwin installer.](https://www.cygwin.com/install.html) +2. Follow the instructions provided by the installer. When prompted to select packages, make sure to choose the following: curl, libcurl-devel, libcurl4, make and gcc-core. +3. (optional) Add the Cygwin bin directory to your system PATH variable. +4. Use `make`, just like on Linux. + ## Prerequisites Development files of libcurl (e.g. `libcurl4-openssl-dev` or From ade30f6657e90214b2e91a00ac7a595af90ded32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20B=C3=B8nes?= Date: Sat, 8 Apr 2023 23:35:57 +0200 Subject: [PATCH 3/3] CI: Updated job name for cygwin build --- .github/workflows/makefile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 253c3a09..2ae3bf0b 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -25,7 +25,7 @@ jobs: - name: test run: make test - build-win: + build-cygwin: runs-on: windows-latest steps: