Update README.md #39
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: compile | |
run: gcc luigi_example.c -DUI_LINUX -lX11 | |
build-win32: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: compile | |
shell: cmd | |
run: | | |
@echo off | |
setlocal enabledelayedexpansion | |
where /Q cl.exe || ( | |
set __VSCMD_ARG_NO_LOGO=1 | |
for /f "tokens=*" %%i in ('"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -requires Microsoft.VisualStudio.Workload.NativeDesktop -property installationPath') do set VS=%%i | |
if "!VS!" equ "" ( | |
echo ERROR: Visual Studio installation not found | |
exit /b 1 | |
) | |
call "!VS!\VC\Auxiliary\Build\vcvarsall.bat" amd64 || exit /b 1 | |
) | |
cl luigi_example.c -DUI_WINDOWS user32.lib gdi32.lib shell32.lib |