From 7519a9cbdf77a4dd4ce108485aaf03988b90eb9f Mon Sep 17 00:00:00 2001 From: Gabriel Le Breton Date: Fri, 9 Oct 2020 09:47:54 -0400 Subject: [PATCH 1/6] Update actions to build against all unity-builder versions --- .github/workflows/main.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 383979a..bdf895a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,6 +22,28 @@ jobs: - StandaloneOSX - StandaloneWindows64 - StandaloneLinux64 + unityBuilderVersion: + - master + - v0.1 + - v0.10 + - v0.11 + - v0.12 + - v0.13 + - v0.14 + - v0.15 + - v0.2 + - v0.3 + - v0.4 + - v0.5 + - v0.6 + - v0.7 + - v0.8 + - v0.9 + - v1.0 + - v1.1 + - v1.2 + - v1.3 + - v1.4 steps: - uses: actions/checkout@v2 with: @@ -48,7 +70,7 @@ jobs: unityVersion: ${{ matrix.unityVersion }} targetPlatform: ${{ matrix.targetPlatform }} customParameters: '-nographics' - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@${{ matrix.unityBuilderVersion }} with: name: Build path: build From 338d649e6626a53e1601e686b2484a784245ac63 Mon Sep 17 00:00:00 2001 From: Gabriel Le Breton Date: Fri, 9 Oct 2020 09:48:14 -0400 Subject: [PATCH 2/6] Run actions on all push and pull-requests --- .github/workflows/main.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bdf895a..68a55f6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,8 +1,6 @@ name: Actions 😎 -on: - pull_request: {} - push: { branches: [main] } +on: [push, pull_request] env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} @@ -64,13 +62,13 @@ jobs: # with: # name: Test results (all modes) # path: ${{ steps.testRunner.outputs.artifactsPath }} - - uses: webbertakken/unity-builder@master + - uses: webbertakken/unity-builder@${{ matrix.unityBuilderVersion }} with: projectPath: ${{ matrix.projectPath }} unityVersion: ${{ matrix.unityVersion }} targetPlatform: ${{ matrix.targetPlatform }} customParameters: '-nographics' - - uses: actions/upload-artifact@${{ matrix.unityBuilderVersion }} + - uses: actions/upload-artifact@v1 with: name: Build path: build From fc0818387dd3534bf0d480379b9773f0a5ce901e Mon Sep 17 00:00:00 2001 From: Gabriel Le Breton Date: Fri, 9 Oct 2020 10:15:36 -0400 Subject: [PATCH 3/6] Add WebGL --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 68a55f6..6386d8d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,6 +20,7 @@ jobs: - StandaloneOSX - StandaloneWindows64 - StandaloneLinux64 + - WebGL unityBuilderVersion: - master - v0.1 From c0c507b2b608c9a4bcfd9a81a62295306ce19f72 Mon Sep 17 00:00:00 2001 From: Gabriel Le Breton Date: Fri, 9 Oct 2020 10:15:55 -0400 Subject: [PATCH 4/6] Use actions/upload-artifact@v2 + update name and path --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6386d8d..9fc474b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -69,7 +69,7 @@ jobs: unityVersion: ${{ matrix.unityVersion }} targetPlatform: ${{ matrix.targetPlatform }} customParameters: '-nographics' - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v2 with: - name: Build - path: build + name: ${{ matrix.targetPlatform }}-unity-builder-${{ matrix.unityBuilderVersion }} + path: build/${{ matrix.targetPlatform }} From 57fec976cdc637945e269918a61fea785541e871 Mon Sep 17 00:00:00 2001 From: Gabriel Le Breton Date: Fri, 9 Oct 2020 11:04:20 -0400 Subject: [PATCH 5/6] Trying bad workaround to test multiple actions versions --- .github/workflows/main.yml | 143 ++++++++++++++++++++++++++++++++++++- 1 file changed, 142 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9fc474b..4f5c9bc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -63,7 +63,148 @@ jobs: # with: # name: Test results (all modes) # path: ${{ steps.testRunner.outputs.artifactsPath }} - - uses: webbertakken/unity-builder@${{ matrix.unityBuilderVersion }} + - if: matrix.unityBuilderVersion == 'master' + uses: webbertakken/unity-builder@master + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v0.1' + uses: webbertakken/unity-builder@v0.1 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v0.10' + uses: webbertakken/unity-builder@v0.10 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v0.11' + uses: webbertakken/unity-builder@v0.11 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v0.12' + uses: webbertakken/unity-builder@v0.12 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v0.13' + uses: webbertakken/unity-builder@v0.13 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v0.14' + uses: webbertakken/unity-builder@v0.14 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v0.15' + uses: webbertakken/unity-builder@v0.15 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v0.2' + uses: webbertakken/unity-builder@v0.2 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v0.3' + uses: webbertakken/unity-builder@v0.3 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v0.4' + uses: webbertakken/unity-builder@v0.4 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v0.5' + uses: webbertakken/unity-builder@v0.5 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v0.6' + uses: webbertakken/unity-builder@v0.6 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v0.7' + uses: webbertakken/unity-builder@v0.7 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v0.8' + uses: webbertakken/unity-builder@v0.8 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v0.9' + uses: webbertakken/unity-builder@v0.9 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v1.0' + uses: webbertakken/unity-builder@v1.0 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v1.1' + uses: webbertakken/unity-builder@v1.1 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v1.2' + uses: webbertakken/unity-builder@v1.2 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v1.3' + uses: webbertakken/unity-builder@v1.3 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + customParameters: '-nographics' + - if: matrix.unityBuilderVersion == 'v1.4' + uses: webbertakken/unity-builder@v1.4 with: projectPath: ${{ matrix.projectPath }} unityVersion: ${{ matrix.unityVersion }} From 13e1870bd1184c9daccf4be2523f85cffa64fa5c Mon Sep 17 00:00:00 2001 From: Gabriel Le Breton Date: Fri, 9 Oct 2020 11:05:57 -0400 Subject: [PATCH 6/6] Update name --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4f5c9bc..9a09da5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ env: jobs: buildAndTestForSomePlatforms: - name: Build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }} + name: Build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }} with unity-builder version ${{ matrix.unityBuilderVersion }} runs-on: ubuntu-latest strategy: fail-fast: false