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 31ad408 commit 33d7564
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,18 @@ jobs:
update: true
install: mingw-w64-i686-toolchain

- name: Install dependencies (libusb and curl)
- name: Install libusb 1.0.27
run: |
wget https://github.com/libusb/libusb/releases/download/v1.0.27/libusb-1.0.27.7z -O libusb.7z
7z x libusb.7z -o./libusb
cp -r libusb/include/* /mingw32/include/
cp -r libusb/lib/* /mingw32/lib/
shell: msys2 {0}

- name: Install curl
run: |
pacman -Syu --noconfirm
pacman -S --needed --noconfirm mingw-w64-i686-libusb mingw-w64-i686-curl
pacman -S --needed --noconfirm mingw-w64-i686-curl
shell: msys2 {0}

- name: Compile aes.c and md5.c
Expand All @@ -36,14 +44,4 @@ jobs:
- name: Compile main.c with aes.o and md5.o
run: |
gcc main.c libs/aes.o libs/md5.o -o main.exe -L/mingw32/lib -Ilibs -I/mingw32/include -lusb-1.0 -lcurl
shell: msys2 {0}


- name: Upload Release Assets
run: |
gh release upload ${{ env.VERSION }} ./main.exe --clobber
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}



shell: msys2 {0}

0 comments on commit 33d7564

Please sign in to comment.