Build Mi-Assistant #204
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Mi-Assistant | |
on: | |
workflow_dispatch: | |
env: | |
VERSION: 1.1 | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up MSYS2 | |
uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
install: mingw-w64-x86_64-toolchain | |
- name: Install libusb | |
run: | | |
pacman -Syu --noconfirm | |
pacman -S --needed --noconfirm mingw-w64-x86_64-libusb | |
- name: Compile main.c | |
shell: msys2 {0} | |
run: | | |
gcc main.c -o miasst.exe -L/mingw64/lib -I/mingw64/include -lusb-1.0 | |
- name: Verify the Build | |
shell: msys2 {0} | |
run: | | |
./main.exe |