Mac OS support (#1346)

This commit is contained in:
Turánszki János
2026-01-11 21:53:46 +01:00
committed by GitHub
parent d2595b87ac
commit 3899e472b6
253 changed files with 158193 additions and 405 deletions
+40
View File
@@ -84,6 +84,46 @@ jobs:
startup.lua
Editor_Linux
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Compile Offlineshadercompiler
run: |
xcodebuild clean build -project WickedEngine/offlineshadercompiler.xcodeproj -scheme offlineshadercompiler -configuration Release
- name: Generate shader dump
run: |
BUILD_PATH="$(xcodebuild -project WickedEngine/offlineshadercompiler.xcodeproj -scheme offlineshadercompiler -configuration Release -showBuildSettings | grep -m 1 "BUILT_PRODUCTS_DIR" | awk -F' = ' '{print $2}')"
cd WickedEngine
"${BUILD_PATH}/offlineshadercompiler" metal rebuild shaderdump
cd ..
- name: Build Editor
run: |
xcodebuild clean build -project Editor/Editor.xcodeproj -scheme Editor -configuration Release
- name: Move files
run: |
BUILD_PATH="$(xcodebuild -project Editor/Editor.xcodeproj -scheme Editor -configuration Release -showBuildSettings | grep -m 1 "BUILT_PRODUCTS_DIR" | awk -F' = ' '{print $2}')"
mv "${BUILD_PATH}/Editor" ./Editor_MacOS
mv Editor/config.ini ./
mv Editor/startup.lua ./
mv Editor/languages ./
mv Editor/fonts ./
- name: Package Editor
uses: actions/upload-artifact@v4
with:
name: Editor (Mac OS)
path: |
languages/
fonts/
config.ini
startup.lua
Editor_MacOS
content:
runs-on: windows-latest
steps:
+40
View File
@@ -246,6 +246,46 @@ jobs:
startup.lua
Editor_Linux
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Compile Offlineshadercompiler
run: |
xcodebuild clean build -project WickedEngine/offlineshadercompiler.xcodeproj -scheme offlineshadercompiler -configuration Release
- name: Generate shader dump
run: |
BUILD_PATH="$(xcodebuild -project WickedEngine/offlineshadercompiler.xcodeproj -scheme offlineshadercompiler -configuration Release -showBuildSettings | grep -m 1 "BUILT_PRODUCTS_DIR" | awk -F' = ' '{print $2}')"
cd WickedEngine
"${BUILD_PATH}/offlineshadercompiler" metal rebuild shaderdump
cd ..
- name: Build Editor
run: |
xcodebuild clean build -project Editor/Editor.xcodeproj -scheme Editor -configuration Release
- name: Move files
run: |
BUILD_PATH="$(xcodebuild -project Editor/Editor.xcodeproj -scheme Editor -configuration Release -showBuildSettings | grep -m 1 "BUILT_PRODUCTS_DIR" | awk -F' = ' '{print $2}')"
mv "${BUILD_PATH}/Editor" ./Editor_MacOS
mv Editor/config.ini ./
mv Editor/startup.lua ./
mv Editor/languages ./
mv Editor/fonts ./
- name: Package Editor
uses: actions/upload-artifact@v4
with:
name: Editor (Mac OS)
path: |
languages/
fonts/
config.ini
startup.lua
Editor_MacOS
content:
runs-on: windows-latest
+40
View File
@@ -148,6 +148,46 @@ jobs:
startup.lua
Editor_Linux
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Compile Offlineshadercompiler
run: |
xcodebuild clean build -project WickedEngine/offlineshadercompiler.xcodeproj -scheme offlineshadercompiler -configuration Release
- name: Generate shader dump
run: |
BUILD_PATH="$(xcodebuild -project WickedEngine/offlineshadercompiler.xcodeproj -scheme offlineshadercompiler -configuration Release -showBuildSettings | grep -m 1 "BUILT_PRODUCTS_DIR" | awk -F' = ' '{print $2}')"
cd WickedEngine
"${BUILD_PATH}/offlineshadercompiler" metal rebuild shaderdump
cd ..
- name: Build Editor
run: |
xcodebuild clean build -project Editor/Editor.xcodeproj -scheme Editor -configuration Release
- name: Move files
run: |
BUILD_PATH="$(xcodebuild -project Editor/Editor.xcodeproj -scheme Editor -configuration Release -showBuildSettings | grep -m 1 "BUILT_PRODUCTS_DIR" | awk -F' = ' '{print $2}')"
mv "${BUILD_PATH}/Editor" ./Editor_MacOS
mv Editor/config.ini ./
mv Editor/startup.lua ./
mv Editor/languages ./
mv Editor/fonts ./
- name: Package Editor
uses: actions/upload-artifact@v4
with:
name: Editor (Mac OS)
path: |
languages/
fonts/
config.ini
startup.lua
Editor_MacOS
content:
runs-on: windows-latest
steps: