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 ea84a28 commit 14c8406
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Build Mi-Assistant
on:
workflow_dispatch:

env:
VERSION: 1.1

jobs:
build:
runs-on: windows-latest
Expand All @@ -11,13 +14,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Pull Dockurr Windows Image
run: docker pull dockurr/windows
- name: Install dependencies
run: |
pacman -Syu --noconfirm
pacman -S --needed --noconfirm mingw-w64-x86_64-libusb mingw-w64-x86_64-curl
shell: msys2 {0}

- name: Build Project with Dockurr Windows
- name: Compile main.c with aes.o and md5.o
run: |
docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace dockurr/windows powershell -Command "
pacman -Syu --noconfirm;
pacman -S --needed --noconfirm mingw-w64-x86_64-libusb mingw-w64-x86_64-curl;
gcc -o main.exe main.c libs/*.c -L/mingw64/lib -Ilibs -I/mingw64/include -lusb-1.0 -lcurl
"
gcc -o main.exe main.c libs/*.c -L/mingw64/lib -Ilibs -I/mingw64/include -lusb-1.0 -lcurl
shell: msys2 {0}

0 comments on commit 14c8406

Please sign in to comment.