Skip to content

Build Mi-Assistant #221

Build Mi-Assistant

Build Mi-Assistant #221

Workflow file for this run

name: Build Mi-Assistant
on:
workflow_dispatch:
env:
VERSION: 1.1
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker
run: docker pull mcr.microsoft.com/mysys2
- name: Build with Docker
run: |
docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace mcr.microsoft.com/mysys2 /bin/bash -c "
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
"