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 e591723 commit ed9aade
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,27 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v2

- name: Set up MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: mingw-w64-x86_64-toolchain

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

- name: Compile main.c
shell: msys2 {0}
run: |
gcc main.c -o miasst.exe -L/mingw64/lib -I/mingw64/include -lusb-1.0
gcc main.c -o main.exe -L/mingw64/lib -I/mingw64/include -lusb-1.0
shell: msys2 {0}

- name: Verify the Build
shell: msys2 {0}
run: |
./main.exe
./main.exe
shell: msys2 {0}

0 comments on commit ed9aade

Please sign in to comment.