mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-08 23:44:19 +00:00
CI: reduce macOS runs since they are expensive.
This commit is contained in:
parent
0ff810038d
commit
d365417e8b
1 changed files with 53 additions and 49 deletions
102
.github/workflows/build.yml
vendored
102
.github/workflows/build.yml
vendored
|
|
@ -525,7 +525,7 @@ jobs:
|
||||||
- name: Build example_null (extra warnings, clang 64-bit)
|
- name: Build example_null (extra warnings, clang 64-bit)
|
||||||
run: make -C examples/example_null WITH_EXTRA_WARNINGS=1
|
run: make -C examples/example_null WITH_EXTRA_WARNINGS=1
|
||||||
|
|
||||||
- name: Build example_null (single file build)
|
- name: Build macOS example_null (single file build)
|
||||||
run: |
|
run: |
|
||||||
cat > example_single_file.cpp <<'EOF'
|
cat > example_single_file.cpp <<'EOF'
|
||||||
|
|
||||||
|
|
@ -536,7 +536,7 @@ jobs:
|
||||||
EOF
|
EOF
|
||||||
clang++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp
|
clang++ -I. -std=c++11 -Wall -Wformat -o example_single_file example_single_file.cpp
|
||||||
|
|
||||||
- name: Build example_null (single file build, c++20)
|
- name: Build macOS example_null (single file build, c++20)
|
||||||
run: |
|
run: |
|
||||||
cat > example_single_file.cpp <<'EOF'
|
cat > example_single_file.cpp <<'EOF'
|
||||||
|
|
||||||
|
|
@ -547,7 +547,7 @@ jobs:
|
||||||
EOF
|
EOF
|
||||||
clang++ -I. -std=c++20 -Wall -Wformat -o example_single_file example_single_file.cpp
|
clang++ -I. -std=c++20 -Wall -Wformat -o example_single_file example_single_file.cpp
|
||||||
|
|
||||||
- name: Build example_null (without c++ runtime)
|
- name: Build macOS example_null (without c++ runtime)
|
||||||
run: |
|
run: |
|
||||||
cat > example_single_file.cpp <<'EOF'
|
cat > example_single_file.cpp <<'EOF'
|
||||||
|
|
||||||
|
|
@ -558,34 +558,38 @@ jobs:
|
||||||
EOF
|
EOF
|
||||||
clang++ -I. -std=c++11 -Wall -Wformat -nodefaultlibs -fno-rtti -fno-exceptions -fno-threadsafe-statics -lc -lm -o example_single_file example_single_file.cpp
|
clang++ -I. -std=c++11 -Wall -Wformat -nodefaultlibs -fno-rtti -fno-exceptions -fno-threadsafe-statics -lc -lm -o example_single_file example_single_file.cpp
|
||||||
|
|
||||||
- name: Build example_glfw_opengl2
|
- name: Build macOS example_glfw_opengl2
|
||||||
run: make -C examples/example_glfw_opengl2
|
run: make -C examples/example_glfw_opengl2
|
||||||
|
if: github.event_name == 'workflow_run'
|
||||||
|
|
||||||
- name: Build example_glfw_opengl3
|
- name: Build macOS example_glfw_opengl3
|
||||||
run: make -C examples/example_glfw_opengl3
|
run: make -C examples/example_glfw_opengl3
|
||||||
if: github.event_name == 'workflow_run'
|
if: github.event_name == 'workflow_run'
|
||||||
|
|
||||||
- name: Build example_glfw_metal
|
- name: Build macOS example_glfw_metal
|
||||||
run: make -C examples/example_glfw_metal
|
run: make -C examples/example_glfw_metal
|
||||||
|
|
||||||
- name: Build example_sdl2_metal
|
- name: Build macOS example_sdl2_metal
|
||||||
run: make -C examples/example_sdl2_metal
|
run: make -C examples/example_sdl2_metal
|
||||||
|
|
||||||
- name: Build example_sdl2_opengl2
|
- name: Build macOS example_sdl2_opengl2
|
||||||
run: make -C examples/example_sdl2_opengl2
|
run: make -C examples/example_sdl2_opengl2
|
||||||
if: github.event_name == 'workflow_run'
|
if: github.event_name == 'workflow_run'
|
||||||
|
|
||||||
- name: Build example_sdl2_opengl3
|
- name: Build macOS example_sdl2_opengl3
|
||||||
run: make -C examples/example_sdl2_opengl3
|
run: make -C examples/example_sdl2_opengl3
|
||||||
|
if: github.event_name == 'workflow_run'
|
||||||
|
|
||||||
- name: Build example_sdl3_opengl3
|
- name: Build macOS example_sdl3_opengl3
|
||||||
run: make -C examples/example_sdl3_opengl3
|
run: make -C examples/example_sdl3_opengl3
|
||||||
|
|
||||||
- name: Build example_apple_metal
|
- name: Build macOS example_apple_metal
|
||||||
run: xcodebuild -project examples/example_apple_metal/example_apple_metal.xcodeproj -target example_apple_metal_macos
|
run: xcodebuild -project examples/example_apple_metal/example_apple_metal.xcodeproj -target example_apple_metal_macos
|
||||||
|
if: github.event_name == 'workflow_run'
|
||||||
|
|
||||||
- name: Build example_apple_opengl2
|
- name: Build macOS example_apple_opengl2
|
||||||
run: xcodebuild -project examples/example_apple_opengl2/example_apple_opengl2.xcodeproj -target example_osx_opengl2
|
run: xcodebuild -project examples/example_apple_opengl2/example_apple_opengl2.xcodeproj -target example_osx_opengl2
|
||||||
|
if: github.event_name == 'workflow_run'
|
||||||
|
|
||||||
Build-iOS:
|
Build-iOS:
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
|
|
@ -750,40 +754,40 @@ jobs:
|
||||||
working-directory: ${{ github.workspace }}/imgui_test_engine/imgui_test_suite
|
working-directory: ${{ github.workspace }}/imgui_test_engine/imgui_test_suite
|
||||||
run: ./imgui_test_suite -nogui -nopause -v2 -ve4 -viewport-mock viewport
|
run: ./imgui_test_suite -nogui -nopause -v2 -ve4 -viewport-mock viewport
|
||||||
|
|
||||||
Test-MacOS:
|
# Test-MacOS:
|
||||||
runs-on: macos-latest
|
# runs-on: macos-latest
|
||||||
name: Test - MacOS
|
# name: Test - MacOS
|
||||||
|
#
|
||||||
defaults:
|
# defaults:
|
||||||
run:
|
# run:
|
||||||
working-directory: ${{ github.workspace }}/imgui
|
# working-directory: ${{ github.workspace }}/imgui
|
||||||
|
#
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v5
|
# - uses: actions/checkout@v5
|
||||||
with:
|
# with:
|
||||||
path: ${{ github.workspace }}/imgui
|
# path: ${{ github.workspace }}/imgui
|
||||||
|
#
|
||||||
- uses: actions/checkout@v5
|
# - uses: actions/checkout@v5
|
||||||
with:
|
# with:
|
||||||
fetch-depth: 1
|
# fetch-depth: 1
|
||||||
repository: ocornut/imgui_test_engine
|
# repository: ocornut/imgui_test_engine
|
||||||
path: ${{ github.workspace }}/imgui_test_engine
|
# path: ${{ github.workspace }}/imgui_test_engine
|
||||||
submodules: true
|
# submodules: true
|
||||||
|
#
|
||||||
- name: Build Tests
|
# - name: Build Tests
|
||||||
working-directory: ${{ github.workspace }}/imgui_test_engine/imgui_test_suite
|
# working-directory: ${{ github.workspace }}/imgui_test_engine/imgui_test_suite
|
||||||
run: make -j$(nproc)
|
# run: make -j$(nproc)
|
||||||
|
#
|
||||||
- name: Run Tests
|
# - name: Run Tests
|
||||||
working-directory: ${{ github.workspace }}/imgui_test_engine/imgui_test_suite
|
# working-directory: ${{ github.workspace }}/imgui_test_engine/imgui_test_suite
|
||||||
run: ./imgui_test_suite -nogui -nopause -v2 -ve4 tests
|
# run: ./imgui_test_suite -nogui -nopause -v2 -ve4 tests
|
||||||
|
#
|
||||||
- name: Check for Docking
|
# - name: Check for Docking
|
||||||
id: check_docking
|
# id: check_docking
|
||||||
working-directory: ${{ github.workspace }}/imgui
|
# working-directory: ${{ github.workspace }}/imgui
|
||||||
run: echo "has_dock=$(grep -q "#define IMGUI_HAS_DOCK" imgui.h && echo true || echo false)" >> $GITHUB_OUTPUT
|
# run: echo "has_dock=$(grep -q "#define IMGUI_HAS_DOCK" imgui.h && echo true || echo false)" >> $GITHUB_OUTPUT
|
||||||
|
#
|
||||||
- name: Run Viewport Tests
|
# - name: Run Viewport Tests
|
||||||
if: steps.check_docking.outputs.has_dock == 'true'
|
# if: steps.check_docking.outputs.has_dock == 'true'
|
||||||
working-directory: ${{ github.workspace }}/imgui_test_engine/imgui_test_suite
|
# working-directory: ${{ github.workspace }}/imgui_test_engine/imgui_test_suite
|
||||||
run: ./imgui_test_suite -nogui -nopause -v2 -ve4 -viewport-mock viewport
|
# run: ./imgui_test_suite -nogui -nopause -v2 -ve4 -viewport-mock viewport
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue