Build Mi-Assistant #221
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: 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 | |
" |