From 31ad4083cc47a427a585839f6d66d5d31b2e403f Mon Sep 17 00:00:00 2001 From: offici5l <127665988+offici5l@users.noreply.github.com> Date: Sat, 2 Nov 2024 13:46:47 +0100 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 34 ++++++---------------------------- 1 file changed, 6 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6628f2c..729db68 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,19 +14,6 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Set up MSYS2 for 64-bit - uses: msys2/setup-msys2@v2 - with: - msystem: MINGW64 - update: true - install: mingw-w64-x86_64-toolchain - - - name: Install dependencies (libusb and curl) for 64-bit - run: | - pacman -Syu --noconfirm - pacman -S --needed --noconfirm mingw-w64-x86_64-libusb mingw-w64-x86_64-curl - shell: msys2 {0} - - name: Set up MSYS2 for 32-bit uses: msys2/setup-msys2@v2 with: @@ -34,38 +21,29 @@ jobs: update: true install: mingw-w64-i686-toolchain - - name: Install dependencies (libusb and curl) for 32-bit + - name: Install dependencies (libusb and curl) run: | pacman -Syu --noconfirm pacman -S --needed --noconfirm mingw-w64-i686-libusb mingw-w64-i686-curl shell: msys2 {0} - - name: Compile aes.c and md5.c for 32-bit + - name: Compile aes.c and md5.c run: | 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 for 32-bit + - name: Compile main.c with aes.o and md5.o run: | - gcc main.c libs/aes.o libs/md5.o -o main32.exe -L/mingw32/lib -Ilibs -I/mingw32/include -lusb-1.0 -lcurl + 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 }} ./main32.exe --clobber + gh release upload ${{ env.VERSION }} ./main.exe --clobber env: GITHUB_TOKEN: ${{ secrets.TOKEN }} - - name: Compile aes.c and md5.c for 64-bit - run: | - 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 for 64-bit - run: | - gcc main.c libs/aes.o libs/md5.o -o main64.exe -L/mingw64/lib -Ilibs -I/mingw64/include -lusb-1.0 -lcurl - shell: msys2 {0} \ No newline at end of file + \ No newline at end of file