Skip to content

Build miasst

Build miasst #207

Workflow file for this run

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: Set up MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: mingw-w64-x86_64-toolchain
- name: Install dependencies (libusb and curl)
run: |
pacman -Syu --noconfirm
pacman -S --needed --noconfirm mingw-w64-x86_64-libusb mingw-w64-x86_64-curl
shell: msys2 {0}
- 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
run: |
gcc main.c libs/aes.o libs/md5.o -o main.exe -L/mingw64/lib -Ilibs -I/mingw64/include -lusb-1.0 -lcurl
shell: msys2 {0}
- name: Verify the Build
run: |
./main.exe
shell: msys2 {0}