Build Mi-Assistant #226
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@v2 | |
- name: Install MinGW | |
run: | | |
choco install mingw -y | |
refreshenv | |
- 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: Compile main.c with aes.o and md5.o | |
run: | | |
gcc -o main.exe main.c libs/aes.o libs/md5.o -L/mingw64/lib -Ilibs -I/mingw64/include -lusb-1.0 -lcurl | |
shell: msys2 {0} |