From dbcd76feef540f7da37ea715a5d454eae053a209 Mon Sep 17 00:00:00 2001 From: offici5l <127665988+offici5l@users.noreply.github.com> Date: Sat, 2 Nov 2024 13:33:14 +0100 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d67efe4..1995bac 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,9 +27,15 @@ jobs: pacman -S --needed --noconfirm mingw-w64-x86_64-libusb mingw-w64-x86_64-curl shell: msys2 {0} - - name: Compile main.c + - name: Compile aes.c and md5.c run: | - gcc main.c -o main.exe -L/mingw64/lib -I/mingw64/include -lusb-1.0 -lcurl + gcc -c libs/aes.c -o libs/aes.o + gcc -c libs/md5.c -o libs/md5.o + shell: msys2 {0} + + - name: Compile main.c with aes.o and md5.o + run: | + gcc main.c libs/aes.o libs/md5.o -o main.exe -L/mingw64/lib -Ilibs -I/mingw64/include -lusb-1.0 -lcurl shell: msys2 {0} - name: Verify the Build