From 6f00d664bbb36b04750c99c515174587fab26bd9 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Fri, 6 Dec 2024 09:37:21 +0100 Subject: [PATCH] Another iteration on cooking job --- .github/data/Build Settings.json | 11 ++++++++++- .github/data/Cook.ps1 | 3 +++ .github/workflows/cooking.yml | 7 +++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/data/Build Settings.json b/.github/data/Build Settings.json index 955468fa6..84ee94f0c 100644 --- a/.github/data/Build Settings.json +++ b/.github/data/Build Settings.json @@ -32,13 +32,22 @@ }, { "Name": "Linux", - "Output": "Output\\LInux", + "Output": "Output\\Linux", "Platform": 6, "Mode": 1, "CustomDefines": null, "PreBuildAction": null, "PostBuildAction": null }, + { + "Name": "Mac", + "Output": "Output\\Mac", + "Platform": 13, + "Mode": 1, + "CustomDefines": null, + "PreBuildAction": null, + "PostBuildAction": null + }, { "Name": "Android", "Output": "Output\\Android", diff --git a/.github/data/Cook.ps1 b/.github/data/Cook.ps1 index b32037fe7..394e6d031 100644 --- a/.github/data/Cook.ps1 +++ b/.github/data/Cook.ps1 @@ -1,2 +1,5 @@ +Write-Output "Cooking Game" Start-Process -filepath "Binaries\Editor\Win64\Development\FlaxEditor.exe" -Wait -NoNewWindow -PassThru -ArgumentList '-std -headless -mute -null -project "FlaxSamples/MaterialsFeaturesTour" -build "Development.Windows"' + +Write-Output "Testing Game" Start-Process -filepath "FlaxSamples\MaterialsFeaturesTour\Output\Windows\MaterialsFeaturesTour.exe" -Wait -NoNewWindow -PassThru -ArgumentList '-std -headless -mute -null' diff --git a/.github/workflows/cooking.yml b/.github/workflows/cooking.yml index eaea8ad9e..1045b36e1 100644 --- a/.github/workflows/cooking.yml +++ b/.github/workflows/cooking.yml @@ -11,6 +11,7 @@ jobs: cook-windows: name: Cook (Windows) runs-on: "windows-2022" + if: false steps: - name: Checkout repo uses: actions/checkout@v3 @@ -81,6 +82,12 @@ jobs: - name: Build Editor run: | ./Development/Scripts/Mac/CallBuildTool.sh -build -log -printSDKs -dotnet=8 -arch=ARM64 -platform=Mac -configuration=Development -buildtargets=FlaxEditor + - name: Cook Game (Mac) + run: | + ./Binaries/Editor/Mac/Development/FlaxEditor -std -headless -mute -null -project "FlaxSamples/MaterialsFeaturesTour" -build "Development.Mac" + - name: Test Game (Mac) + run: | + ./FlaxSamples/MaterialsFeaturesTour/Outpu/Mac/MaterialsFeaturesTour" -std -headless -mute -null - name: Cook Game (iOS) run: | ./Binaries/Editor/Mac/Development/FlaxEditor -std -headless -mute -null -project "FlaxSamples/MaterialsFeaturesTour" -build "Development.iOS"