Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
VeyronSakai committed Apr 27, 2024
1 parent 2331adc commit eac9886
Showing 1 changed file with 20 additions and 1 deletion.
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

0 comments on commit eac9886

Please sign in to comment.