From 5d6b99041055ff755f6300d8ac664151561c4aad Mon Sep 17 00:00:00 2001 From: Andrew Kahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 17:28:18 -0800 Subject: [PATCH 01/26] Remove lfs list before build --- .github/workflows/createprerelease.yml | 6 ++++++ .github/workflows/createrelease.yml | 6 ++++++ .github/workflows/testandbuild.yml | 6 ++++++ .github/workflows/weeklybuild.yml | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index 68c90c8..3b46c03 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -43,6 +43,9 @@ jobs: - name: Git LFS Pull run: git lfs pull + - name: Remove LFS File List + run: sudo rm .lfs-assets-id + - name: Restore Library Cache uses: actions/cache@v2 with: @@ -102,6 +105,9 @@ jobs: - name: Git LFS Pull run: git lfs pull + - name: Remove LFS File List + run: sudo rm .lfs-assets-id + - name: Restore Library Cache uses: actions/cache@v2 with: diff --git a/.github/workflows/createrelease.yml b/.github/workflows/createrelease.yml index 59bdd27..4946d3d 100644 --- a/.github/workflows/createrelease.yml +++ b/.github/workflows/createrelease.yml @@ -41,6 +41,9 @@ jobs: - name: Git LFS Pull run: git lfs pull + - name: Remove LFS File List + run: sudo rm .lfs-assets-id + - name: Restore Library Cache uses: actions/cache@v2 with: @@ -100,6 +103,9 @@ jobs: - name: Git LFS Pull run: git lfs pull + - name: Remove LFS File List + run: sudo rm .lfs-assets-id + - name: Restore Library Cache uses: actions/cache@v2 with: diff --git a/.github/workflows/testandbuild.yml b/.github/workflows/testandbuild.yml index e43bd12..54ac604 100644 --- a/.github/workflows/testandbuild.yml +++ b/.github/workflows/testandbuild.yml @@ -50,6 +50,9 @@ jobs: - name: Git LFS Pull run: git lfs pull + - name: Remove LFS File List + run: sudo rm .lfs-assets-id + - name: Restore Library Cache uses: actions/cache@v2 with: @@ -109,6 +112,9 @@ jobs: - name: Git LFS Pull run: git lfs pull + - name: Remove LFS File List + run: sudo rm .lfs-assets-id + - name: Restore Library Cache uses: actions/cache@v2 with: diff --git a/.github/workflows/weeklybuild.yml b/.github/workflows/weeklybuild.yml index 9ec1d99..4d5ecec 100644 --- a/.github/workflows/weeklybuild.yml +++ b/.github/workflows/weeklybuild.yml @@ -43,6 +43,9 @@ jobs: - name: Git LFS Pull run: git lfs pull + - name: Remove LFS File List + run: sudo rm .lfs-assets-id + - name: Restore Library Cache uses: actions/cache@v2 with: @@ -107,6 +110,9 @@ jobs: - name: Git LFS Pull run: git lfs pull + - name: Remove LFS File List + run: sudo rm .lfs-assets-id + - name: Restore Library Cache uses: actions/cache@v2 with: From 9f4681df1ab5c4e4f248e01206f17269855f7dcf Mon Sep 17 00:00:00 2001 From: Andrew Kahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 17:36:55 -0800 Subject: [PATCH 02/26] Test flow --- .github/workflows/activation.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/activation.yml b/.github/workflows/activation.yml index 1ae6bba..e7fe01f 100644 --- a/.github/workflows/activation.yml +++ b/.github/workflows/activation.yml @@ -18,3 +18,4 @@ jobs: with: name: ${{ steps.getManualLicenseFile.outputs.filePath }} path: ${{ steps.getManualLicenseFile.outputs.filePath }} + \ No newline at end of file From df647b4a624491695814eb993f166877492fcafe Mon Sep 17 00:00:00 2001 From: Andrew Kahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 18:18:25 -0800 Subject: [PATCH 03/26] Change event for creating prerelease --- .github/workflows/createprerelease.yml | 7 +++---- .github/workflows/createrelease.yml | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index 8cd9ad5..2e43bc8 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -3,10 +3,9 @@ name: Create Pre-Release on: - pull_request_review: - submitted: - branches: - - 'dev-stable' + push: + branches: + - 'dev-stable' env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} diff --git a/.github/workflows/createrelease.yml b/.github/workflows/createrelease.yml index b3d8531..bdc3ca4 100644 --- a/.github/workflows/createrelease.yml +++ b/.github/workflows/createrelease.yml @@ -5,7 +5,7 @@ name: Create Release on: push: tags: - - 'v*' + - 'v*' env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} From 7419ff823927a738b23029618fa928a31e076ebd Mon Sep 17 00:00:00 2001 From: Andrew Kahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 18:23:54 -0800 Subject: [PATCH 04/26] Remove if condition --- .github/workflows/createprerelease.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index 2e43bc8..0b51cc0 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -14,7 +14,6 @@ jobs: RunProjectTests: name: Run Tests for Unity Project runs-on: ubuntu-latest - if: github.event.review.state == 'approved' strategy: fail-fast: false matrix: From 3f9ba71cf28853f668238969649ae0117ac12145 Mon Sep 17 00:00:00 2001 From: Andrew Kahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 18:43:59 -0800 Subject: [PATCH 05/26] Add tag name for prerelease --- .github/workflows/createprerelease.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index 0b51cc0..b416ba3 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -148,5 +148,6 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} prerelease: true + automatic_release_tag: 'latest-prerelease' title: 'Development Build ${{ steps.date.outputs.date }}' files: '*' From 5c846c842985cf52bca2002973dd7855ec4f29d2 Mon Sep 17 00:00:00 2001 From: Andrew Kahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 19:03:32 -0800 Subject: [PATCH 06/26] Allow unsecure action command during auto release --- .github/workflows/createprerelease.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index b416ba3..4e67f77 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -135,6 +135,10 @@ jobs: needs: BuildForTargetPlatforms runs-on: ubuntu-latest + # REMOVE THIS WHEN AUTOMATIC RELEASES CHANGES TO USE ENVIRONMENT FILES + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true + steps: - name: Get current date id: date From 3d8d99af63cb486e41c7e2b55da6772a34d6d8c6 Mon Sep 17 00:00:00 2001 From: Andrew Kahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 19:21:51 -0800 Subject: [PATCH 07/26] Remove quotes and add debug print --- .github/workflows/createprerelease.yml | 4 +++- .github/workflows/createrelease.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index 4e67f77..b1ad020 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -147,6 +147,8 @@ jobs: - name: Download All Builds uses: actions/download-artifact@v2 + -run: sudo ls -lashi + - name: Create Release uses: marvinpinto/action-automatic-releases@v1.1.0 with: @@ -154,4 +156,4 @@ jobs: prerelease: true automatic_release_tag: 'latest-prerelease' title: 'Development Build ${{ steps.date.outputs.date }}' - files: '*' + files: * diff --git a/.github/workflows/createrelease.yml b/.github/workflows/createrelease.yml index bdc3ca4..ff0d9f9 100644 --- a/.github/workflows/createrelease.yml +++ b/.github/workflows/createrelease.yml @@ -148,4 +148,4 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} prerelease: false title: 'Release ${{ env.RELEASE_VERSION }}' - files: '*' + files: * From 8bc8ad28ebfad0d1229b5f484d75dfdd48f7df8c Mon Sep 17 00:00:00 2001 From: AndrewKahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 19:27:20 -0800 Subject: [PATCH 08/26] Update createprerelease.yml --- .github/workflows/createprerelease.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index b1ad020..7918f40 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -147,7 +147,7 @@ jobs: - name: Download All Builds uses: actions/download-artifact@v2 - -run: sudo ls -lashi + - run: sudo ls -lashi - name: Create Release uses: marvinpinto/action-automatic-releases@v1.1.0 @@ -156,4 +156,4 @@ jobs: prerelease: true automatic_release_tag: 'latest-prerelease' title: 'Development Build ${{ steps.date.outputs.date }}' - files: * + files: ./* From f6bb2fef0ac6e6635708dc2729677fda56fd1eab Mon Sep 17 00:00:00 2001 From: AndrewKahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 19:27:42 -0800 Subject: [PATCH 09/26] Update createrelease.yml --- .github/workflows/createrelease.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/createrelease.yml b/.github/workflows/createrelease.yml index ff0d9f9..6b9267e 100644 --- a/.github/workflows/createrelease.yml +++ b/.github/workflows/createrelease.yml @@ -148,4 +148,4 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} prerelease: false title: 'Release ${{ env.RELEASE_VERSION }}' - files: * + files: ./* From a87893cf5fca7255d3c63de9658b8b81589ccd71 Mon Sep 17 00:00:00 2001 From: Andrew Kahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 19:54:04 -0800 Subject: [PATCH 10/26] Zip builds on upload --- .github/workflows/createprerelease.yml | 17 +++++++---------- .github/workflows/createrelease.yml | 12 +++++++++--- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index b1ad020..ab3e279 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -124,11 +124,14 @@ jobs: versioning: Semantic customParameters: '' + - name: Zip Build + run: sudo zip -r ${{ matrix.targetPlatform }}.zip /build + - name: Upload Build Output uses: actions/upload-artifact@v2 with: name: ${{ matrix.targetPlatform }} - path: build + path: ${{ matrix.targetPlatform }}.zip CreatePreRelease: name: Create Pre-Release @@ -140,20 +143,14 @@ jobs: ACTIONS_ALLOW_UNSECURE_COMMANDS: true steps: - - name: Get current date - id: date - run: echo "name=$(date +'%Y-%m-%d')" >> $GITHUB_ENV - - name: Download All Builds uses: actions/download-artifact@v2 - -run: sudo ls -lashi - - - name: Create Release + - name: Create Pre-Release uses: marvinpinto/action-automatic-releases@v1.1.0 with: repo_token: ${{ secrets.GITHUB_TOKEN }} prerelease: true automatic_release_tag: 'latest-prerelease' - title: 'Development Build ${{ steps.date.outputs.date }}' - files: * + title: 'Latest Development Build' + files: *.zip diff --git a/.github/workflows/createrelease.yml b/.github/workflows/createrelease.yml index ff0d9f9..19dfd19 100644 --- a/.github/workflows/createrelease.yml +++ b/.github/workflows/createrelease.yml @@ -124,17 +124,23 @@ jobs: versioning: Semantic customParameters: '' + - name: Zip Build + run: sudo zip -r ${{ matrix.targetPlatform }}.zip /build + - name: Upload Build Output uses: actions/upload-artifact@v2 with: name: ${{ matrix.targetPlatform }} - path: build + path: ${{ matrix.targetPlatform }}.zip CreateRelease: name: Create Release needs: BuildForTargetPlatforms runs-on: ubuntu-latest - + # REMOVE THIS WHEN AUTOMATIC RELEASES CHANGES TO USE ENVIRONMENT FILES + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true + steps: - name: Set env run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV @@ -148,4 +154,4 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} prerelease: false title: 'Release ${{ env.RELEASE_VERSION }}' - files: * + files: *.zip From 2f6898a42176e78a09db73ac46fd6b41c3229324 Mon Sep 17 00:00:00 2001 From: AndrewKahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 19:56:51 -0800 Subject: [PATCH 11/26] Update createprerelease.yml --- .github/workflows/createprerelease.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index ab3e279..bc4ef69 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -153,4 +153,5 @@ jobs: prerelease: true automatic_release_tag: 'latest-prerelease' title: 'Latest Development Build' - files: *.zip + files: | + *.zip From 3ac695b4d261bac174bd0f2794d6c818721e12be Mon Sep 17 00:00:00 2001 From: AndrewKahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 19:57:17 -0800 Subject: [PATCH 12/26] Update createrelease.yml --- .github/workflows/createrelease.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/createrelease.yml b/.github/workflows/createrelease.yml index 19dfd19..99c4b6f 100644 --- a/.github/workflows/createrelease.yml +++ b/.github/workflows/createrelease.yml @@ -154,4 +154,5 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} prerelease: false title: 'Release ${{ env.RELEASE_VERSION }}' - files: *.zip + files: | + *.zip From 11f37cd17ed3dd25ca07ccffe7140bdf188d9624 Mon Sep 17 00:00:00 2001 From: Andrew Kahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 20:43:18 -0800 Subject: [PATCH 13/26] fix zip command --- .github/workflows/createprerelease.yml | 2 +- .github/workflows/createrelease.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index ab3e279..a8ae554 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -125,7 +125,7 @@ jobs: customParameters: '' - name: Zip Build - run: sudo zip -r ${{ matrix.targetPlatform }}.zip /build + run: sudo zip -r ${{ matrix.targetPlatform }}.zip build - name: Upload Build Output uses: actions/upload-artifact@v2 diff --git a/.github/workflows/createrelease.yml b/.github/workflows/createrelease.yml index 19dfd19..e106b84 100644 --- a/.github/workflows/createrelease.yml +++ b/.github/workflows/createrelease.yml @@ -125,7 +125,7 @@ jobs: customParameters: '' - name: Zip Build - run: sudo zip -r ${{ matrix.targetPlatform }}.zip /build + run: sudo zip -r ${{ matrix.targetPlatform }}.zip build - name: Upload Build Output uses: actions/upload-artifact@v2 From d1ef71258c8c4f2a01cf1860a59bb7a3df67b77e Mon Sep 17 00:00:00 2001 From: AndrewKahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 20:44:55 -0800 Subject: [PATCH 14/26] Update createrelease.yml --- .github/workflows/createrelease.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/createrelease.yml b/.github/workflows/createrelease.yml index e106b84..08c5aea 100644 --- a/.github/workflows/createrelease.yml +++ b/.github/workflows/createrelease.yml @@ -154,4 +154,5 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} prerelease: false title: 'Release ${{ env.RELEASE_VERSION }}' - files: *.zip + files: | + *.zip From a5539f9f6d0f16e820d606a7b0dd26102e348b02 Mon Sep 17 00:00:00 2001 From: AndrewKahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 20:45:13 -0800 Subject: [PATCH 15/26] Update createprerelease.yml --- .github/workflows/createprerelease.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index a8ae554..99ff867 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -153,4 +153,5 @@ jobs: prerelease: true automatic_release_tag: 'latest-prerelease' title: 'Latest Development Build' - files: *.zip + files: | + *.zip From d56f1807f78b1e951836b3fc6e09dcb6443a1296 Mon Sep 17 00:00:00 2001 From: Andrew Kahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 21:29:37 -0800 Subject: [PATCH 16/26] Test release --- .github/workflows/createprerelease.yml | 223 ++++++++++++++----------- 1 file changed, 127 insertions(+), 96 deletions(-) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index 677d34a..fabee55 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -11,62 +11,132 @@ env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} jobs: - RunProjectTests: - name: Run Tests for Unity Project - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - projectPath: - - # For if the unity project isn't at the root of the repo - unityVersion: - - 2019.4.17f1 - targetPlatform: - - StandaloneWindows64 # Test a win64 standalone + # RunProjectTests: + # name: Run Tests for Unity Project + # runs-on: ubuntu-latest + # strategy: + # fail-fast: false + # matrix: + # projectPath: + # - # For if the unity project isn't at the root of the repo + # unityVersion: + # - 2019.4.17f1 + # targetPlatform: + # - StandaloneWindows64 # Test a win64 standalone - steps: - - name: Checkout Project - uses: actions/checkout@v2 + # steps: + # - name: Checkout Project + # uses: actions/checkout@v2 - - name: Create LFS File List - run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id + # - name: Create LFS File List + # run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id - - name: Restore LFS Cache - uses: actions/cache@v2 - id: lfs-cache - with: - path: .git/lfs - key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1 + # - name: Restore LFS Cache + # uses: actions/cache@v2 + # id: lfs-cache + # with: + # path: .git/lfs + # key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1 - - name: Git LFS Pull - run: git lfs pull + # - name: Git LFS Pull + # run: git lfs pull - - name: Remove LFS File List - run: sudo rm .lfs-assets-id + # - name: Remove LFS File List + # run: sudo rm .lfs-assets-id - - name: Restore Library Cache - uses: actions/cache@v2 - with: - path: ${{ matrix.projectPath }}Library - key: Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }} - restore-keys: | - Library-${{ matrix.projectPath }}- - Library- + # - name: Restore Library Cache + # uses: actions/cache@v2 + # with: + # path: ${{ matrix.projectPath }}Library + # key: Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }} + # restore-keys: | + # Library-${{ matrix.projectPath }}- + # Library- - - name: Run Unity Tests - uses: game-ci/unity-test-runner@v2.0-alpha-2 - id: testRunner - with: - projectPath: ${{ matrix.projectPath }} - unityVersion: ${{ matrix.unityVersion }} - testMode: playmode + # - name: Run Unity Tests + # uses: game-ci/unity-test-runner@v2.0-alpha-2 + # id: testRunner + # with: + # projectPath: ${{ matrix.projectPath }} + # unityVersion: ${{ matrix.unityVersion }} + # testMode: playmode + + # BuildForTargetPlatforms: + # name: Build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }} + # needs: RunProjectTests + # runs-on: ubuntu-latest + # strategy: + # fail-fast: false + # matrix: + # projectPath: + # - # For if the unity project isn't at the root of the repo + # unityVersion: + # - 2019.4.17f1 + # targetPlatform: + # - StandaloneOSX # Build a macOS standalone (Intel 64-bit). + # - StandaloneWindows # Build a Windows standalone. + # - StandaloneWindows64 # Build a Windows 64-bit standalone. + # - StandaloneLinux64 # Build a Linux 64-bit standalone. + # #- iOS # Build an iOS player. + # #- Android # Build an Android .apk standalone app. + # #- WebGL # WebGL. + # #- WSAPlayer # Build an Windows Store Apps player. + # #- PS4 # Build a PS4 Standalone. + # #- XboxOne # Build a Xbox One Standalone. + # #- tvOS # Build to Apple's tvOS platform. + # #- Switch # Build a Nintendo Switch player. + + # steps: + # - name: Checkout Project + # uses: actions/checkout@v2 + + # - name: Create LFS File List + # run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id - BuildForTargetPlatforms: - name: Build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }} - needs: RunProjectTests + # - name: Restore LFS Cache + # uses: actions/cache@v2 + # id: lfs-cache + # with: + # path: .git/lfs + # key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1 + + # - name: Git LFS Pull + # run: git lfs pull + + # - name: Remove LFS File List + # run: sudo rm .lfs-assets-id + + # - name: Restore Library Cache + # uses: actions/cache@v2 + # with: + # path: ${{ matrix.projectPath }}Library + # key: Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }} + # restore-keys: | + # Library-${{ matrix.projectPath }}- + # Library- + + # - name: Build Unity Project + # uses: game-ci/unity-builder@v2.0-alpha-6 + # with: + # projectPath: ${{ matrix.projectPath }} + # unityVersion: ${{ matrix.unityVersion }} + # targetPlatform: ${{ matrix.targetPlatform }} + # versioning: Semantic + # customParameters: '' + + # - name: Zip Build + # run: sudo zip -r ${{ matrix.targetPlatform }}.zip build + + # - name: Upload Build Output + # uses: actions/upload-artifact@v2 + # with: + # name: ${{ matrix.targetPlatform }} + # path: ${{ matrix.targetPlatform }}.zip + + TestBuild: + name: Test Build runs-on: ubuntu-latest - strategy: - fail-fast: false + fail-fast: false matrix: projectPath: - # For if the unity project isn't at the root of the repo @@ -77,56 +147,14 @@ jobs: - StandaloneWindows # Build a Windows standalone. - StandaloneWindows64 # Build a Windows 64-bit standalone. - StandaloneLinux64 # Build a Linux 64-bit standalone. - #- iOS # Build an iOS player. - #- Android # Build an Android .apk standalone app. - #- WebGL # WebGL. - #- WSAPlayer # Build an Windows Store Apps player. - #- PS4 # Build a PS4 Standalone. - #- XboxOne # Build a Xbox One Standalone. - #- tvOS # Build to Apple's tvOS platform. - #- Switch # Build a Nintendo Switch player. - - steps: - - name: Checkout Project - uses: actions/checkout@v2 - - - name: Create LFS File List - run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id - - - name: Restore LFS Cache - uses: actions/cache@v2 - id: lfs-cache - with: - path: .git/lfs - key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1 - - name: Git LFS Pull - run: git lfs pull - - - name: Remove LFS File List - run: sudo rm .lfs-assets-id - - - name: Restore Library Cache - uses: actions/cache@v2 - with: - path: ${{ matrix.projectPath }}Library - key: Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }} - restore-keys: | - Library-${{ matrix.projectPath }}- - Library- - - - name: Build Unity Project - uses: game-ci/unity-builder@v2.0-alpha-6 - with: - projectPath: ${{ matrix.projectPath }} - unityVersion: ${{ matrix.unityVersion }} - targetPlatform: ${{ matrix.targetPlatform }} - versioning: Semantic - customParameters: '' - + steps: + - run: sudo mkdir build + - run: sudo mkdir build/${{ matrix.targetPlatform }} + - run: sudo touch build/${{ matrix.targetPlatform }}/file1.txt + - run: sudo touch build/${{ matrix.targetPlatform }}/file2.txt - name: Zip Build - run: sudo zip -r ${{ matrix.targetPlatform }}.zip build - + run: sudo zip -r ${{ matrix.targetPlatform }}.zip build/${{ matrix.targetPlatform }} - name: Upload Build Output uses: actions/upload-artifact@v2 with: @@ -135,7 +163,8 @@ jobs: CreatePreRelease: name: Create Pre-Release - needs: BuildForTargetPlatforms + #needs: BuildForTargetPlatforms + needs: TestBuild runs-on: ubuntu-latest # REMOVE THIS WHEN AUTOMATIC RELEASES CHANGES TO USE ENVIRONMENT FILES @@ -146,6 +175,8 @@ jobs: - name: Download All Builds uses: actions/download-artifact@v2 + - run: sudo ls -lashi + - name: Create Pre-Release uses: marvinpinto/action-automatic-releases@v1.1.0 with: From a8974bf7aaedd20c5f58b3e8a8ede0467c3cd5dc Mon Sep 17 00:00:00 2001 From: Andrew Kahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 21:32:17 -0800 Subject: [PATCH 17/26] Fix spacing --- .github/workflows/createprerelease.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index fabee55..bf63038 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -137,16 +137,16 @@ jobs: name: Test Build runs-on: ubuntu-latest fail-fast: false - matrix: - projectPath: - - # For if the unity project isn't at the root of the repo - unityVersion: - - 2019.4.17f1 - targetPlatform: - - StandaloneOSX # Build a macOS standalone (Intel 64-bit). - - StandaloneWindows # Build a Windows standalone. - - StandaloneWindows64 # Build a Windows 64-bit standalone. - - StandaloneLinux64 # Build a Linux 64-bit standalone. + matrix: + projectPath: + - # For if the unity project isn't at the root of the repo + unityVersion: + - 2019.4.17f1 + targetPlatform: + - StandaloneOSX # Build a macOS standalone (Intel 64-bit). + - StandaloneWindows # Build a Windows standalone. + - StandaloneWindows64 # Build a Windows 64-bit standalone. + - StandaloneLinux64 # Build a Linux 64-bit standalone. steps: - run: sudo mkdir build From 56c18647b272f66f375df88e8f15a1f06d23f49f Mon Sep 17 00:00:00 2001 From: AndrewKahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 21:35:09 -0800 Subject: [PATCH 18/26] Update createprerelease.yml --- .github/workflows/createprerelease.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index bf63038..81c5879 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -136,17 +136,18 @@ jobs: TestBuild: name: Test Build runs-on: ubuntu-latest - fail-fast: false - matrix: - projectPath: - - # For if the unity project isn't at the root of the repo - unityVersion: - - 2019.4.17f1 - targetPlatform: - - StandaloneOSX # Build a macOS standalone (Intel 64-bit). - - StandaloneWindows # Build a Windows standalone. - - StandaloneWindows64 # Build a Windows 64-bit standalone. - - StandaloneLinux64 # Build a Linux 64-bit standalone. + strategy: + fail-fast: false + matrix: + projectPath: + - # For if the unity project isn't at the root of the repo + unityVersion: + - 2019.4.17f1 + targetPlatform: + - StandaloneOSX # Build a macOS standalone (Intel 64-bit). + - StandaloneWindows # Build a Windows standalone. + - StandaloneWindows64 # Build a Windows 64-bit standalone. + - StandaloneLinux64 # Build a Linux 64-bit standalone. steps: - run: sudo mkdir build From b6102b10c09131c66d28afdec7a68a9f9cf9b49b Mon Sep 17 00:00:00 2001 From: AndrewKahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 21:47:22 -0800 Subject: [PATCH 19/26] Update createprerelease.yml --- .github/workflows/createprerelease.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index 81c5879..a190f21 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -155,11 +155,12 @@ jobs: - run: sudo touch build/${{ matrix.targetPlatform }}/file1.txt - run: sudo touch build/${{ matrix.targetPlatform }}/file2.txt - name: Zip Build - run: sudo zip -r ${{ matrix.targetPlatform }}.zip build/${{ matrix.targetPlatform }} + run: sudo zip -r ${{ matrix.targetPlatform }}.zip build/${{ matrix.targetPlatform }}/* + - name: Upload Build Output uses: actions/upload-artifact@v2 with: - name: ${{ matrix.targetPlatform }} + name: build path: ${{ matrix.targetPlatform }}.zip CreatePreRelease: @@ -178,6 +179,12 @@ jobs: - run: sudo ls -lashi + - run: sudo unzip StandaloneOSX.zip + + - run: sudo ls StandaloneOSX -lashi + + - run: sudo touch test.txt + - name: Create Pre-Release uses: marvinpinto/action-automatic-releases@v1.1.0 with: @@ -186,4 +193,5 @@ jobs: automatic_release_tag: 'latest-prerelease' title: 'Latest Development Build' files: | - *.zip + build/*.zip + test.txt From 19fd8d7ee6f40b3960df2b815a2e489a7498f728 Mon Sep 17 00:00:00 2001 From: AndrewKahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 21:48:57 -0800 Subject: [PATCH 20/26] Update createprerelease.yml --- .github/workflows/createprerelease.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index a190f21..9a04297 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -179,10 +179,6 @@ jobs: - run: sudo ls -lashi - - run: sudo unzip StandaloneOSX.zip - - - run: sudo ls StandaloneOSX -lashi - - run: sudo touch test.txt - name: Create Pre-Release From 9c251da01581ad158b591e96bd68728f8fa03802 Mon Sep 17 00:00:00 2001 From: AndrewKahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 21:56:05 -0800 Subject: [PATCH 21/26] Update createprerelease.yml --- .github/workflows/createprerelease.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index 9a04297..f14cb06 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -154,8 +154,9 @@ jobs: - run: sudo mkdir build/${{ matrix.targetPlatform }} - run: sudo touch build/${{ matrix.targetPlatform }}/file1.txt - run: sudo touch build/${{ matrix.targetPlatform }}/file2.txt + - run: cd build/${{ matrix.targetPlatform }} - name: Zip Build - run: sudo zip -r ${{ matrix.targetPlatform }}.zip build/${{ matrix.targetPlatform }}/* + run: sudo zip -r ${{ matrix.targetPlatform }}.zip * - name: Upload Build Output uses: actions/upload-artifact@v2 @@ -179,8 +180,6 @@ jobs: - run: sudo ls -lashi - - run: sudo touch test.txt - - name: Create Pre-Release uses: marvinpinto/action-automatic-releases@v1.1.0 with: @@ -190,4 +189,3 @@ jobs: title: 'Latest Development Build' files: | build/*.zip - test.txt From 91be7e925a53cc492a17d6cca71fdf1fa065b70b Mon Sep 17 00:00:00 2001 From: AndrewKahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 21:59:27 -0800 Subject: [PATCH 22/26] Update createprerelease.yml --- .github/workflows/createprerelease.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index f14cb06..aa63c56 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -154,7 +154,11 @@ jobs: - run: sudo mkdir build/${{ matrix.targetPlatform }} - run: sudo touch build/${{ matrix.targetPlatform }}/file1.txt - run: sudo touch build/${{ matrix.targetPlatform }}/file2.txt + - run: sudo mkdir build/${{ matrix.targetPlatform }}/assets + - run: sudo touch build/${{ matrix.targetPlatform }}/assets/file3.txt - run: cd build/${{ matrix.targetPlatform }} + - run: ls -lashi + - name: Zip Build run: sudo zip -r ${{ matrix.targetPlatform }}.zip * From ed2144126bac5bcd3d2ab1901fdf88ae1a37334d Mon Sep 17 00:00:00 2001 From: AndrewKahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 22:06:22 -0800 Subject: [PATCH 23/26] Update createprerelease.yml --- .github/workflows/createprerelease.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index aa63c56..3263506 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -156,11 +156,7 @@ jobs: - run: sudo touch build/${{ matrix.targetPlatform }}/file2.txt - run: sudo mkdir build/${{ matrix.targetPlatform }}/assets - run: sudo touch build/${{ matrix.targetPlatform }}/assets/file3.txt - - run: cd build/${{ matrix.targetPlatform }} - - run: ls -lashi - - - name: Zip Build - run: sudo zip -r ${{ matrix.targetPlatform }}.zip * + - run: (cd build/${{ matrix.targetPlatform }} && sudo zip -r ../../${{ matrix.targetPlatform }}.zip .) - name: Upload Build Output uses: actions/upload-artifact@v2 From 6bb1b6813bd9934986f2843206b3ece94b24c3ee Mon Sep 17 00:00:00 2001 From: Andrew Kahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 22:10:59 -0800 Subject: [PATCH 24/26] Build and release --- .github/workflows/createprerelease.yml | 254 ++++++++++++------------- 1 file changed, 126 insertions(+), 128 deletions(-) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index 3263506..14b6753 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -11,130 +11,59 @@ env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} jobs: - # RunProjectTests: - # name: Run Tests for Unity Project - # runs-on: ubuntu-latest - # strategy: - # fail-fast: false - # matrix: - # projectPath: - # - # For if the unity project isn't at the root of the repo - # unityVersion: - # - 2019.4.17f1 - # targetPlatform: - # - StandaloneWindows64 # Test a win64 standalone - - # steps: - # - name: Checkout Project - # uses: actions/checkout@v2 - - # - name: Create LFS File List - # run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id - - # - name: Restore LFS Cache - # uses: actions/cache@v2 - # id: lfs-cache - # with: - # path: .git/lfs - # key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1 - - # - name: Git LFS Pull - # run: git lfs pull + RunProjectTests: + name: Run Tests for Unity Project + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + projectPath: + - # For if the unity project isn't at the root of the repo + unityVersion: + - 2019.4.17f1 + targetPlatform: + - StandaloneWindows64 # Test a win64 standalone - # - name: Remove LFS File List - # run: sudo rm .lfs-assets-id + steps: + - name: Checkout Project + uses: actions/checkout@v2 - # - name: Restore Library Cache - # uses: actions/cache@v2 - # with: - # path: ${{ matrix.projectPath }}Library - # key: Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }} - # restore-keys: | - # Library-${{ matrix.projectPath }}- - # Library- - - # - name: Run Unity Tests - # uses: game-ci/unity-test-runner@v2.0-alpha-2 - # id: testRunner - # with: - # projectPath: ${{ matrix.projectPath }} - # unityVersion: ${{ matrix.unityVersion }} - # testMode: playmode - - # BuildForTargetPlatforms: - # name: Build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }} - # needs: RunProjectTests - # runs-on: ubuntu-latest - # strategy: - # fail-fast: false - # matrix: - # projectPath: - # - # For if the unity project isn't at the root of the repo - # unityVersion: - # - 2019.4.17f1 - # targetPlatform: - # - StandaloneOSX # Build a macOS standalone (Intel 64-bit). - # - StandaloneWindows # Build a Windows standalone. - # - StandaloneWindows64 # Build a Windows 64-bit standalone. - # - StandaloneLinux64 # Build a Linux 64-bit standalone. - # #- iOS # Build an iOS player. - # #- Android # Build an Android .apk standalone app. - # #- WebGL # WebGL. - # #- WSAPlayer # Build an Windows Store Apps player. - # #- PS4 # Build a PS4 Standalone. - # #- XboxOne # Build a Xbox One Standalone. - # #- tvOS # Build to Apple's tvOS platform. - # #- Switch # Build a Nintendo Switch player. - - # steps: - # - name: Checkout Project - # uses: actions/checkout@v2 - - # - name: Create LFS File List - # run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id + - name: Create LFS File List + run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id - # - name: Restore LFS Cache - # uses: actions/cache@v2 - # id: lfs-cache - # with: - # path: .git/lfs - # key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1 + - name: Restore LFS Cache + uses: actions/cache@v2 + id: lfs-cache + with: + path: .git/lfs + key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1 - # - name: Git LFS Pull - # run: git lfs pull + - name: Git LFS Pull + run: git lfs pull - # - name: Remove LFS File List - # run: sudo rm .lfs-assets-id - - # - name: Restore Library Cache - # uses: actions/cache@v2 - # with: - # path: ${{ matrix.projectPath }}Library - # key: Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }} - # restore-keys: | - # Library-${{ matrix.projectPath }}- - # Library- + - name: Remove LFS File List + run: sudo rm .lfs-assets-id - # - name: Build Unity Project - # uses: game-ci/unity-builder@v2.0-alpha-6 - # with: - # projectPath: ${{ matrix.projectPath }} - # unityVersion: ${{ matrix.unityVersion }} - # targetPlatform: ${{ matrix.targetPlatform }} - # versioning: Semantic - # customParameters: '' + - name: Restore Library Cache + uses: actions/cache@v2 + with: + path: ${{ matrix.projectPath }}Library + key: Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }} + restore-keys: | + Library-${{ matrix.projectPath }}- + Library- - # - name: Zip Build - # run: sudo zip -r ${{ matrix.targetPlatform }}.zip build + - name: Run Unity Tests + uses: game-ci/unity-test-runner@v2.0-alpha-2 + id: testRunner + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + testMode: playmode - # - name: Upload Build Output - # uses: actions/upload-artifact@v2 - # with: - # name: ${{ matrix.targetPlatform }} - # path: ${{ matrix.targetPlatform }}.zip - - TestBuild: - name: Test Build + BuildForTargetPlatforms: + name: Build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }} + needs: RunProjectTests runs-on: ubuntu-latest strategy: fail-fast: false @@ -148,26 +77,97 @@ jobs: - StandaloneWindows # Build a Windows standalone. - StandaloneWindows64 # Build a Windows 64-bit standalone. - StandaloneLinux64 # Build a Linux 64-bit standalone. - + #- iOS # Build an iOS player. + #- Android # Build an Android .apk standalone app. + #- WebGL # WebGL. + #- WSAPlayer # Build an Windows Store Apps player. + #- PS4 # Build a PS4 Standalone. + #- XboxOne # Build a Xbox One Standalone. + #- tvOS # Build to Apple's tvOS platform. + #- Switch # Build a Nintendo Switch player. + steps: - - run: sudo mkdir build - - run: sudo mkdir build/${{ matrix.targetPlatform }} - - run: sudo touch build/${{ matrix.targetPlatform }}/file1.txt - - run: sudo touch build/${{ matrix.targetPlatform }}/file2.txt - - run: sudo mkdir build/${{ matrix.targetPlatform }}/assets - - run: sudo touch build/${{ matrix.targetPlatform }}/assets/file3.txt - - run: (cd build/${{ matrix.targetPlatform }} && sudo zip -r ../../${{ matrix.targetPlatform }}.zip .) + - name: Checkout Project + uses: actions/checkout@v2 + + - name: Create LFS File List + run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id + + - name: Restore LFS Cache + uses: actions/cache@v2 + id: lfs-cache + with: + path: .git/lfs + key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1 + - name: Git LFS Pull + run: git lfs pull + + - name: Remove LFS File List + run: sudo rm .lfs-assets-id + + - name: Restore Library Cache + uses: actions/cache@v2 + with: + path: ${{ matrix.projectPath }}Library + key: Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }} + restore-keys: | + Library-${{ matrix.projectPath }}- + Library- + + - name: Build Unity Project + uses: game-ci/unity-builder@v2.0-alpha-6 + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + targetPlatform: ${{ matrix.targetPlatform }} + versioning: Semantic + customParameters: '' + + - name: Zip Build + run: (cd build/${{ matrix.targetPlatform }} && sudo zip -r ../../${{ matrix.targetPlatform }}.zip .) + - name: Upload Build Output uses: actions/upload-artifact@v2 with: name: build path: ${{ matrix.targetPlatform }}.zip + # TestBuild: + # name: Test Build + # runs-on: ubuntu-latest + # strategy: + # fail-fast: false + # matrix: + # projectPath: + # - # For if the unity project isn't at the root of the repo + # unityVersion: + # - 2019.4.17f1 + # targetPlatform: + # - StandaloneOSX # Build a macOS standalone (Intel 64-bit). + # - StandaloneWindows # Build a Windows standalone. + # - StandaloneWindows64 # Build a Windows 64-bit standalone. + # - StandaloneLinux64 # Build a Linux 64-bit standalone. + + # steps: + # - run: sudo mkdir build + # - run: sudo mkdir build/${{ matrix.targetPlatform }} + # - run: sudo touch build/${{ matrix.targetPlatform }}/file1.txt + # - run: sudo touch build/${{ matrix.targetPlatform }}/file2.txt + # - run: sudo mkdir build/${{ matrix.targetPlatform }}/assets + # - run: sudo touch build/${{ matrix.targetPlatform }}/assets/file3.txt + # - run: (cd build/${{ matrix.targetPlatform }} && sudo zip -r ../../${{ matrix.targetPlatform }}.zip .) + + # - name: Upload Build Output + # uses: actions/upload-artifact@v2 + # with: + # name: build + # path: ${{ matrix.targetPlatform }}.zip + CreatePreRelease: name: Create Pre-Release - #needs: BuildForTargetPlatforms - needs: TestBuild + needs: BuildForTargetPlatforms + # needs: TestBuild runs-on: ubuntu-latest # REMOVE THIS WHEN AUTOMATIC RELEASES CHANGES TO USE ENVIRONMENT FILES @@ -178,8 +178,6 @@ jobs: - name: Download All Builds uses: actions/download-artifact@v2 - - run: sudo ls -lashi - - name: Create Pre-Release uses: marvinpinto/action-automatic-releases@v1.1.0 with: From f477f846638472c41daa54497e3180e09ca8c777 Mon Sep 17 00:00:00 2001 From: AndrewKahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 22:28:38 -0800 Subject: [PATCH 25/26] Update createrelease.yml --- .github/workflows/createrelease.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/createrelease.yml b/.github/workflows/createrelease.yml index 08c5aea..597b90f 100644 --- a/.github/workflows/createrelease.yml +++ b/.github/workflows/createrelease.yml @@ -125,12 +125,12 @@ jobs: customParameters: '' - name: Zip Build - run: sudo zip -r ${{ matrix.targetPlatform }}.zip build + run: (cd build/${{ matrix.targetPlatform }} && sudo zip -r ../../${{ matrix.targetPlatform }}.zip .) - name: Upload Build Output uses: actions/upload-artifact@v2 with: - name: ${{ matrix.targetPlatform }} + name: build path: ${{ matrix.targetPlatform }}.zip CreateRelease: @@ -142,9 +142,6 @@ jobs: ACTIONS_ALLOW_UNSECURE_COMMANDS: true steps: - - name: Set env - run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - - name: Download All Builds uses: actions/download-artifact@v2 @@ -153,6 +150,6 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} prerelease: false - title: 'Release ${{ env.RELEASE_VERSION }}' + title: 'Latest Release' files: | - *.zip + build/*.zip From 7980f9e938d80b8eb9bf0a36cef6586b847c3525 Mon Sep 17 00:00:00 2001 From: AndrewKahr <22359829+AndrewKahr@users.noreply.github.com> Date: Sat, 30 Jan 2021 22:29:04 -0800 Subject: [PATCH 26/26] Update createprerelease.yml --- .github/workflows/createprerelease.yml | 32 -------------------------- 1 file changed, 32 deletions(-) diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index 14b6753..820ddc4 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -133,41 +133,9 @@ jobs: name: build path: ${{ matrix.targetPlatform }}.zip - # TestBuild: - # name: Test Build - # runs-on: ubuntu-latest - # strategy: - # fail-fast: false - # matrix: - # projectPath: - # - # For if the unity project isn't at the root of the repo - # unityVersion: - # - 2019.4.17f1 - # targetPlatform: - # - StandaloneOSX # Build a macOS standalone (Intel 64-bit). - # - StandaloneWindows # Build a Windows standalone. - # - StandaloneWindows64 # Build a Windows 64-bit standalone. - # - StandaloneLinux64 # Build a Linux 64-bit standalone. - - # steps: - # - run: sudo mkdir build - # - run: sudo mkdir build/${{ matrix.targetPlatform }} - # - run: sudo touch build/${{ matrix.targetPlatform }}/file1.txt - # - run: sudo touch build/${{ matrix.targetPlatform }}/file2.txt - # - run: sudo mkdir build/${{ matrix.targetPlatform }}/assets - # - run: sudo touch build/${{ matrix.targetPlatform }}/assets/file3.txt - # - run: (cd build/${{ matrix.targetPlatform }} && sudo zip -r ../../${{ matrix.targetPlatform }}.zip .) - - # - name: Upload Build Output - # uses: actions/upload-artifact@v2 - # with: - # name: build - # path: ${{ matrix.targetPlatform }}.zip - CreatePreRelease: name: Create Pre-Release needs: BuildForTargetPlatforms - # needs: TestBuild runs-on: ubuntu-latest # REMOVE THIS WHEN AUTOMATIC RELEASES CHANGES TO USE ENVIRONMENT FILES