Skip to content

Commit

Permalink
Change build
Browse files Browse the repository at this point in the history
  • Loading branch information
OndrejNepozitek committed Feb 16, 2024
1 parent 51d44a3 commit 942cdc5
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
import os
is_pro_master = os.environ['GITHUB_REF_NAME'] == 'pro-master'
is_pro = os.environ['GITHUB_REPOSITORY'] == "OndrejNepozitek/Edgar-UnityPRO"
unity_versions = ['2019.4.40f1', '2020.3.48f1', '2021.3.35f1', '2022.3.19f1', '2023.2.9f1']
unity_versions = ['2019.4.36f1', '2020.3.48f1', '2021.3.35f1', '2022.3.19f1', '2023.2.9f1']
if os.environ['GITHUB_REF_NAME'] == '2019/pro-dev-grid-3d':
unity_versions = ['2019.4.36f1']
Expand Down Expand Up @@ -83,16 +83,30 @@ jobs:
unityVersion: ${{ matrix.unityVersion }}
githubToken: ${{ secrets.GITHUB_TOKEN }}

# Build
# Build 2020+
- name: Run build
uses: game-ci/unity-builder@v4
if: ${{ startsWith(matrix.unityVersion, '2019') == false }}
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
unityVersion: ${{ matrix.unityVersion }}
targetPlatform: ${{ startsWith(matrix.unityVersion, '2019') && 'StandaloneWindows' || 'StandaloneLinux64' }}
targetPlatform: StandaloneLinux64
versioning: None

# Build 2019
- name: Run build (2019)
uses: game-ci/unity-builder@v2
if: ${{ startsWith(matrix.unityVersion, '2019') == true }}
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE_NEW }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
unityVersion: ${{ matrix.unityVersion }}
targetPlatform: StandaloneWindows
versioning: None

package:
Expand Down

0 comments on commit 942cdc5

Please sign in to comment.