This repository was archived by the owner on Oct 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +31
-11
lines changed Expand file tree Collapse file tree 2 files changed +31
-11
lines changed Original file line number Diff line number Diff line change 1+ name : Tests
2+ on : [push, pull_request]
3+
4+ jobs :
5+ MacOS :
6+ name : macos-${{ matrix.os-version }}
7+ runs-on : macos-${{ matrix.os-version }}
8+ strategy :
9+ fail-fast : false
10+ matrix :
11+ os-version : [14, 15]
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+ with :
16+ submodules : recursive
17+
18+ - name : Configure
19+ run : |
20+ mkdir build
21+ cd build
22+ cmake ..
23+
24+ - name : Build
25+ run : |
26+ cd build
27+ cmake --build . -- -j$(( `sysctl -n hw.ncpu` + 1 ))
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.15)
2- project (MGL LANGUAGES C CXX OBJC OBJCXX )
2+ project (MGL LANGUAGES C CXX OBJC)
33
44execute_process (COMMAND "bash" "clone_external.sh" WORKING_DIRECTORY "${CMAKE_CURRENT_LIST_DIR} /external" COMMAND_ECHO STDOUT)
55execute_process (COMMAND "bash" "build_external.sh" WORKING_DIRECTORY "${CMAKE_CURRENT_LIST_DIR} /external" COMMAND_ECHO STDOUT)
66
7- # Compiler flags
8- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -g -fsanitize=address -arch ${CMAKE_SYSTEM_PROCESSOR} " )
9- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -g -fsanitize=address -arch ${CMAKE_SYSTEM_PROCESSOR} " )
10- set (CMAKE_OBJC_FLAGS "${CMAKE_OBJC_FLAGS} -O2 -g -fsanitize=address -arch ${CMAKE_SYSTEM_PROCESSOR} " )
11- set (CMAKE_OBJCXX_FLAGS "${CMAKE_OBJCXX_FLAGS} -O2 -g -fsanitize=address -arch ${CMAKE_SYSTEM_PROCESSOR} " )
12-
137# Include paths
148include_directories (
159 MGL/SPIRV/SPIRV-Cross
@@ -22,10 +16,9 @@ include_directories(
2216
2317# Gather all source files
2418file (GLOB_RECURSE MGL_SOURCES
25- src/*.c
26- src/*.cpp
27- src/*.m
28- src/*.mm
19+ MGL/src/*.c
20+ MGL/src/*.m
21+ MGL/spirv_cross_c.cpp
2922)
3023
3124# Static library target
You can’t perform that action at this time.
0 commit comments