Skip to content

Commit

Permalink
Merge pull request #11 from VeyronSakai/refactor
Browse files Browse the repository at this point in the history
Refactor
  • Loading branch information
VeyronSakai authored Apr 27, 2024
2 parents f002d65 + 56b4d94 commit 2880b05
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/build-test.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: BuildTest
name: Build
on:
pull_request:
workflow_dispatch:
Expand All @@ -16,7 +16,20 @@ concurrency:
cancel-in-progress: true

jobs:
get-unity-version:
name: Get Unity Version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
clean: "${{ env.CLEAN }}"
- name: Get Unity version
run: |
echo "UNITY_VERSION=$(grep "m_EditorVersion:" < ProjectSettings/ProjectVersion.txt | cut -d" " -f2)" >> "${GITHUB_ENV}"
android:
name: Android
needs: get-unity-version
runs-on: [self-hosted, macOS]
steps:
- name: Switch workspace
Expand All @@ -39,6 +52,8 @@ jobs:
-executeMethod Editor.BuildEntryPoint.BuildAndroid
ios:
name: iOS
needs: get-unity-version
runs-on: [self-hosted, macOS]
steps:
- name: Switch workspace
Expand All @@ -59,6 +74,8 @@ jobs:
-executeMethod Editor.BuildEntryPoint.BuildIOS
macos:
name: macOS
needs: get-unity-version
runs-on: [self-hosted, macOS]
steps:
- name: Switch workspace
Expand All @@ -79,6 +96,8 @@ jobs:
-executeMethod Editor.BuildEntryPoint.BuildMacOS
webgl:
name: WebGL
needs: get-unity-version
runs-on: [ self-hosted, macOS ]
steps:
- name: Switch workspace
Expand Down
3 changes: 1 addition & 2 deletions Assets/Editor/BuildEntryPoint.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using Codice.Client.BaseCommands;
using UnityEditor;

namespace Editor
{
// ReSharper disable once UnusedMember.Global
// ReSharper disable once UnusedType.Global
public sealed class BuildEntryPoint
{
private const string Scenes = "Assets/Scenes/SampleScene.unity";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This software is released under the MIT License.

using System;
using UnityEngine;

namespace GhaUnityBuildReporter.Editor
{
Expand Down

0 comments on commit 2880b05

Please sign in to comment.