|
1 | 1 | name: Windows Builds
|
2 | 2 |
|
3 | 3 | on:
|
| 4 | + workflow_dispatch: |
4 | 5 | push:
|
5 | 6 | branches:
|
6 | 7 | - main
|
7 | 8 |
|
8 | 9 | env:
|
9 |
| - UNITY_LICENSE: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><root>\n <License id=\"Terms\">\n <MachineBindings>\n <Binding Key=\"1\" Value=\"576562626572264761624c65526f7578\"/>\n <Binding Key=\"2\" Value=\"576562626572264761624c65526f7578\"/>\n </MachineBindings>\n <MachineID Value=\"D7nTUnjNAmtsUMcnoyrqkgIbYdM=\"/>\n <SerialHash Value=\"2033b8ac3e6faa3742ca9f0bfae44d18f2a96b80\"/>\n <Features>\n <Feature Value=\"33\"/>\n <Feature Value=\"1\"/>\n <Feature Value=\"12\"/>\n <Feature Value=\"2\"/>\n <Feature Value=\"24\"/>\n <Feature Value=\"3\"/>\n <Feature Value=\"36\"/>\n <Feature Value=\"17\"/>\n <Feature Value=\"19\"/>\n <Feature Value=\"62\"/>\n </Features>\n <DeveloperData Value=\"AQAAAEY0LUJHUlgtWEQ0RS1aQ1dWLUM1SlctR0RIQg==\"/>\n <SerialMasked Value=\"F4-BGRX-XD4E-ZCWV-C5JW-XXXX\"/>\n <StartDate Value=\"2021-02-08T00:00:00\"/>\n <UpdateDate Value=\"2021-02-09T00:34:57\"/>\n <InitialActivationDate Value=\"2021-02-08T00:34:56\"/>\n <LicenseVersion Value=\"6.x\"/>\n <ClientProvidedVersion Value=\"2018.4.30f1\"/>\n <AlwaysOnline Value=\"false\"/>\n <Entitlements>\n <Entitlement Ns=\"unity_editor\" Tag=\"UnityPersonal\" Type=\"EDITOR\" ValidTo=\"9999-12-31T00:00:00\"/>\n <Entitlement Ns=\"unity_editor\" Tag=\"DarkSkin\" Type=\"EDITOR_FEATURE\" ValidTo=\"9999-12-31T00:00:00\"/>\n </Entitlements>\n </License>\n<Signature xmlns=\"http://www.w3.org/2000/09/xmldsig#\"><SignedInfo><CanonicalizationMethod Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments\"/><SignatureMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#rsa-sha1\"/><Reference URI=\"#Terms\"><Transforms><Transform Algorithm=\"http://www.w3.org/2000/09/xmldsig#enveloped-signature\"/></Transforms><DigestMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#sha1\"/><DigestValue>m0Db8UK+ktnOLJBtHybkfetpcKo=</DigestValue></Reference></SignedInfo><SignatureValue>o/pUbSQAukz7+ZYAWhnA0AJbIlyyCPL7bKVEM2lVqbrXt7cyey+umkCXamuOgsWPVUKBMkXtMH8L\n5etLmD0getWIhTGhzOnDCk+gtIPfL4jMo9tkEuOCROQAXCci23VFscKcrkB+3X6h4wEOtA2APhOY\nB+wvC794o8/82ffjP79aVAi57rp3Wmzx+9pe9yMwoJuljAy2sc2tIMgdQGWVmOGBpQm3JqsidyzI\nJWG2kjnc7pDXK9pwYzXoKiqUqqrut90d+kQqRyv7MSZXR50HFqD/LI69h68b7P8Bjo3bPXOhNXGR\n9YCoemH6EkfCJxp2gIjzjWW+l2Hj2EsFQi8YXw==</SignatureValue></Signature></root>" |
| 10 | + UNITY_LICENSE: |
| 11 | + "<?xml version=\"1.0\" encoding=\"UTF-8\"?><root>\n <License |
| 12 | + id=\"Terms\">\n <MachineBindings>\n <Binding Key=\"1\" |
| 13 | + Value=\"576562626572264761624c65526f7578\"/>\n <Binding Key=\"2\" |
| 14 | + Value=\"576562626572264761624c65526f7578\"/>\n </MachineBindings>\n <MachineID |
| 15 | + Value=\"D7nTUnjNAmtsUMcnoyrqkgIbYdM=\"/>\n <SerialHash |
| 16 | + Value=\"2033b8ac3e6faa3742ca9f0bfae44d18f2a96b80\"/>\n <Features>\n <Feature |
| 17 | + Value=\"33\"/>\n <Feature Value=\"1\"/>\n <Feature Value=\"12\"/>\n <Feature |
| 18 | + Value=\"2\"/>\n <Feature Value=\"24\"/>\n <Feature Value=\"3\"/>\n <Feature |
| 19 | + Value=\"36\"/>\n <Feature Value=\"17\"/>\n <Feature Value=\"19\"/>\n <Feature |
| 20 | + Value=\"62\"/>\n </Features>\n <DeveloperData |
| 21 | + Value=\"AQAAAEY0LUJHUlgtWEQ0RS1aQ1dWLUM1SlctR0RIQg==\"/>\n <SerialMasked |
| 22 | + Value=\"F4-BGRX-XD4E-ZCWV-C5JW-XXXX\"/>\n <StartDate Value=\"2021-02-08T00:00:00\"/>\n <UpdateDate |
| 23 | + Value=\"2021-02-09T00:34:57\"/>\n <InitialActivationDate |
| 24 | + Value=\"2021-02-08T00:34:56\"/>\n <LicenseVersion Value=\"6.x\"/>\n <ClientProvidedVersion |
| 25 | + Value=\"2018.4.30f1\"/>\n <AlwaysOnline Value=\"false\"/>\n <Entitlements>\n <Entitlement |
| 26 | + Ns=\"unity_editor\" Tag=\"UnityPersonal\" Type=\"EDITOR\" |
| 27 | + ValidTo=\"9999-12-31T00:00:00\"/>\n <Entitlement Ns=\"unity_editor\" Tag=\"DarkSkin\" |
| 28 | + Type=\"EDITOR_FEATURE\" ValidTo=\"9999-12-31T00:00:00\"/>\n </Entitlements>\n </License>\n<Signature |
| 29 | + xmlns=\"http://www.w3.org/2000/09/xmldsig#\"><SignedInfo><CanonicalizationMethod |
| 30 | + Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments\"/><SignatureMethod |
| 31 | + Algorithm=\"http://www.w3.org/2000/09/xmldsig#rsa-sha1\"/><Reference URI=\"#Terms\"><Transforms><Transform |
| 32 | + Algorithm=\"http://www.w3.org/2000/09/xmldsig#enveloped-signature\"/></Transforms><DigestMethod |
| 33 | + Algorithm=\"http://www.w3.org/2000/09/xmldsig#sha1\"/><DigestValue>m0Db8UK+ktnOLJBtHybkfetpcKo=</DigestValue></Reference></SignedInfo><SignatureValue>o/pUbSQAukz7+ZYAWhnA0AJbIlyyCPL7bKVEM2lVqbrXt7cyey+umkCXamuOgsWPVUKBMkXtMH8L\n5etLmD0getWIhTGhzOnDCk+gtIPfL4jMo9tkEuOCROQAXCci23VFscKcrkB+3X6h4wEOtA2APhOY\nB+wvC794o8/82ffjP79aVAi57rp3Wmzx+9pe9yMwoJuljAy2sc2tIMgdQGWVmOGBpQm3JqsidyzI\nJWG2kjnc7pDXK9pwYzXoKiqUqqrut90d+kQqRyv7MSZXR50HFqD/LI69h68b7P8Bjo3bPXOhNXGR\n9YCoemH6EkfCJxp2gIjzjWW+l2Hj2EsFQi8YXw==</SignatureValue></Signature></root>" |
10 | 34 |
|
11 | 35 | jobs:
|
12 | 36 | buildForAllPlatformsWindows:
|
|
18 | 42 | projectPath:
|
19 | 43 | - test-project
|
20 | 44 | unityVersion:
|
21 |
| - - 2020.3.24f1 |
| 45 | + - 2019.3.15f1 # Minimum version for IL2CPP |
| 46 | + - 2019.4.40f1 |
| 47 | + - 2020.1.17f1 |
| 48 | + - 2020.2.7f1 |
| 49 | + - 2020.3.44f1 |
| 50 | + - 2021.3.18f1 # 2021.1 and 2021.2 seem to have IL2CPP issues |
| 51 | + - 2022.1.24f1 |
| 52 | + - 2022.2.6f1 |
22 | 53 | targetPlatform:
|
23 | 54 | - StandaloneWindows64 # Build a Windows 64-bit standalone.
|
24 | 55 | - StandaloneWindows # Build a Windows 32-bit standalone.
|
|
54 | 85 | ###########################
|
55 | 86 | # Build #
|
56 | 87 | ###########################
|
57 |
| - - uses: ./ |
| 88 | + - name: Build |
| 89 | + uses: ./ |
| 90 | + id: build-1 |
| 91 | + continue-on-error: true |
| 92 | + timeout-minutes: 60 |
| 93 | + env: |
| 94 | + UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} |
| 95 | + UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} |
| 96 | + UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} |
| 97 | + with: |
| 98 | + projectPath: ${{ matrix.projectPath }} |
| 99 | + unityVersion: ${{ matrix.unityVersion }} |
| 100 | + targetPlatform: ${{ matrix.targetPlatform }} |
| 101 | + customParameters: -profile SomeProfile -someBoolean -someValue exampleValue |
| 102 | + allowDirtyBuild: true |
| 103 | + # We use dirty build because we are replacing the default project settings file above |
| 104 | + |
| 105 | + - name: Sleep for Retry |
| 106 | + if: ${{ steps.build-1.outcome == 'failure' }} |
| 107 | + run: | |
| 108 | + Start-Sleep -s 120 |
| 109 | +
|
| 110 | + - name: Build Retry 1 |
| 111 | + uses: ./ |
| 112 | + id: build-2 |
| 113 | + continue-on-error: true |
| 114 | + timeout-minutes: 60 |
| 115 | + if: steps.build-1.outcome == 'failure' |
| 116 | + env: |
| 117 | + UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} |
| 118 | + UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} |
| 119 | + UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} |
| 120 | + with: |
| 121 | + projectPath: ${{ matrix.projectPath }} |
| 122 | + unityVersion: ${{ matrix.unityVersion }} |
| 123 | + targetPlatform: ${{ matrix.targetPlatform }} |
| 124 | + customParameters: -profile SomeProfile -someBoolean -someValue exampleValue |
| 125 | + allowDirtyBuild: true |
| 126 | + # We use dirty build because we are replacing the default project settings file above |
| 127 | + |
| 128 | + - name: Sleep for Retry |
| 129 | + if: ${{ steps.build-1.outcome == 'failure' && steps.build-2.outcome == 'failure' }} |
| 130 | + run: | |
| 131 | + Start-Sleep -s 240 |
| 132 | +
|
| 133 | + - name: Build Retry 2 |
| 134 | + uses: ./ |
| 135 | + id: build-3 |
| 136 | + timeout-minutes: 60 |
| 137 | + if: ${{ steps.build-1.outcome == 'failure' && steps.build-2.outcome == 'failure' }} |
58 | 138 | env:
|
59 | 139 | UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
60 | 140 | UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
|
0 commit comments