diff --git a/.github/workflows/build-tests.yml b/.github/workflows/build-tests.yml
index abaf3fbe..69ef69e3 100644
--- a/.github/workflows/build-tests.yml
+++ b/.github/workflows/build-tests.yml
@@ -2,10 +2,13 @@ name: Builds
on:
push: { branches: [main] }
- pull_request_target:
+ pull_request:
paths-ignore:
- '.github/**'
+env:
+ UNITY_LICENSE: "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \nm0Db8UK+ktnOLJBtHybkfetpcKo=o/pUbSQAukz7+ZYAWhnA0AJbIlyyCPL7bKVEM2lVqbrXt7cyey+umkCXamuOgsWPVUKBMkXtMH8L\n5etLmD0getWIhTGhzOnDCk+gtIPfL4jMo9tkEuOCROQAXCci23VFscKcrkB+3X6h4wEOtA2APhOY\nB+wvC794o8/82ffjP79aVAi57rp3Wmzx+9pe9yMwoJuljAy2sc2tIMgdQGWVmOGBpQm3JqsidyzI\nJWG2kjnc7pDXK9pwYzXoKiqUqqrut90d+kQqRyv7MSZXR50HFqD/LI69h68b7P8Bjo3bPXOhNXGR\n9YCoemH6EkfCJxp2gIjzjWW+l2Hj2EsFQi8YXw=="
+
jobs:
buildForAllPlatforms:
name: Build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }}
@@ -18,8 +21,6 @@ jobs:
unityVersion:
- 2019.2.11f1
- 2019.3.15f1
- unityLicense:
- - ${{ secrets.UNITY_LICENSE }}
targetPlatform:
- StandaloneOSX # Build a macOS standalone (Intel 64-bit).
- StandaloneWindows64 # Build a Windows 64-bit standalone.
@@ -37,18 +38,9 @@ jobs:
###########################
# Checkout #
###########################
- - name: Checkout (default)
- uses: actions/checkout@v2
- if: github.event.event_type != 'pull_request_target'
+ - uses: actions/checkout@v2
with:
lfs: true
- - name: Checkout (pull_request_target)
- uses: actions/checkout@v2
- if: github.event.event_type == 'pull_request_target'
- with:
- lfs: true
- ref: ${{ github.event.pull_request.head.ref }}
- repository: ${{ github.event.pull_request.head.repo.full_name }}
###########################
# Cache #
@@ -65,8 +57,6 @@ jobs:
# Build #
###########################
- uses: ./
- env:
- UNITY_LICENSE: ${{ matrix.unityLicense }}
with:
projectPath: ${{ matrix.projectPath }}
unityVersion: ${{ matrix.unityVersion }}
diff --git a/.github/workflows/kubernetes-tests.yml b/.github/workflows/kubernetes-tests.yml
index 74a993c0..e5f10911 100644
--- a/.github/workflows/kubernetes-tests.yml
+++ b/.github/workflows/kubernetes-tests.yml
@@ -2,7 +2,7 @@ name: Kubernetes
on:
push: { branches: [main] }
- pull_request_target:
+ pull_request:
paths-ignore:
- '.github/**'
@@ -11,6 +11,8 @@ env:
GKE_REGION: 'us-central1'
GKE_PROJECT: 'unitykubernetesbuilder'
GKE_CLUSTER: 'unity-builder-cluster'
+ UNITY_LICENSE: "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \nm0Db8UK+ktnOLJBtHybkfetpcKo=o/pUbSQAukz7+ZYAWhnA0AJbIlyyCPL7bKVEM2lVqbrXt7cyey+umkCXamuOgsWPVUKBMkXtMH8L\n5etLmD0getWIhTGhzOnDCk+gtIPfL4jMo9tkEuOCROQAXCci23VFscKcrkB+3X6h4wEOtA2APhOY\nB+wvC794o8/82ffjP79aVAi57rp3Wmzx+9pe9yMwoJuljAy2sc2tIMgdQGWVmOGBpQm3JqsidyzI\nJWG2kjnc7pDXK9pwYzXoKiqUqqrut90d+kQqRyv7MSZXR50HFqD/LI69h68b7P8Bjo3bPXOhNXGR\n9YCoemH6EkfCJxp2gIjzjWW+l2Hj2EsFQi8YXw=="
+
jobs:
k8sBuilds:
@@ -23,24 +25,13 @@ jobs:
targetPlatform:
- StandaloneLinux64
- StandaloneWindows64
- unityLicense:
- - ${{ secrets.UNITY_LICENSE }}
steps:
###########################
# Checkout #
###########################
- - name: Checkout (default)
- uses: actions/checkout@v2
- if: github.event.event_type != 'pull_request_target'
+ - uses: actions/checkout@v2
with:
lfs: true
- - name: Checkout (pull_request_target)
- uses: actions/checkout@v2
- if: github.event.event_type == 'pull_request_target'
- with:
- lfs: true
- ref: ${{ github.event.pull_request.head.ref }}
- repository: ${{ github.event.pull_request.head.repo.full_name }}
###########################
# Spin up #
@@ -61,8 +52,6 @@ jobs:
filePath: ~/.kube/config
- uses: ./
id: k8s-unity-build
- env:
- UNITY_LICENSE: ${{ matrix.unityLicense }}
with:
targetPlatform: ${{ matrix.targetPlatform }}
kubeConfig: ${{ steps.read-base64.outputs.base64 }}