Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
offici5l authored Nov 2, 2024
1 parent 285c2f7 commit dbcd76f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbcd76f

Please sign in to comment.