Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor #11

Merged
merged 2 commits into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading