-
Notifications
You must be signed in to change notification settings - Fork 24
34 lines (32 loc) · 995 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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