Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
abb4f79
CI workflow
bdovaz Jul 21, 2022
92425f0
Upgrade DOTween project to dotnet sdk style
bdovaz Jul 21, 2022
d25593f
Upgrade DOTweenEditor project to dotnet sdk style
bdovaz Jul 21, 2022
5fa7f7a
Package template
bdovaz Jul 21, 2022
2589ada
Remove hardcoded dependencies
bdovaz Jul 21, 2022
e74653c
Scripts for copying files to the package folder structure
bdovaz Jul 21, 2022
0e34121
Ignore package template files
bdovaz Jul 21, 2022
a67ec70
Remove broken links
bdovaz Jul 21, 2022
ae8de8a
Package fixes
bdovaz Jul 21, 2022
3403fdf
Add asmdef version defines
bdovaz Jul 21, 2022
013b1cd
Binaries
bdovaz Jul 21, 2022
e5b74c6
Add manual building instructions
bdovaz Jul 21, 2022
0230cd8
Update workflow trigger
bdovaz Jul 22, 2022
3b82d60
Add dependabot file
bdovaz Jul 22, 2022
6d6fb75
Restore binaries
bdovaz Jul 25, 2022
d16efa2
Update build instructions
bdovaz Jul 25, 2022
b78ee6b
Add DOTweenUpgradeManager meta files to package folder structure
bdovaz Jul 25, 2022
6504ede
Workflow changes
bdovaz Jul 25, 2022
5272836
Restore original binaries
bdovaz Jul 25, 2022
66c557d
Use single Directory.Build.Props file
bdovaz Jul 25, 2022
b968d0f
Remove package bat files
bdovaz Jul 25, 2022
59e159b
Add previous Unity versions compatibility
bdovaz Jul 25, 2022
8736d7e
*.targets files
bdovaz Jul 25, 2022
fba0f8b
Use version defines in package mode
bdovaz Jul 25, 2022
f1ffb22
Remove other project copies
bdovaz Jul 25, 2022
971c8a7
Only run package targets file if package generation is enabled
bdovaz Jul 25, 2022
8cbbe02
Refactor variable name
bdovaz Jul 25, 2022
6b633eb
Move variables
bdovaz Jul 25, 2022
ad84cdf
Fix targets
bdovaz Jul 25, 2022
57e1c2f
Only run package targets file if package generation is enabled
bdovaz Jul 25, 2022
0986196
Only run upgrade if not a package
bdovaz Jul 25, 2022
f30f58e
Fix paths
bdovaz Jul 25, 2022
4169d62
Upload package artifact from Unity 2019 onwards
bdovaz Jul 25, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
134 changes: 134 additions & 0 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
name: CI-Windows

on:
push:
branches: [ develop ]

env:
UNITY_EDITOR_BASE_PATH: C:\Program Files\Unity\Hub\Editor

jobs:
windows:
runs-on: windows-latest

strategy:
matrix:
unity:
[
{ version: 5.6.7f1, hash: e80cc3114ac1 },
{ version: 2017.4.40f1, hash: 6e14067f8a9a },
{ version: 2018.4.36f1, hash: 6cd387d23174 },
{ version: 2019.4.40f1, hash: ffc62b691db5 },
{ version: 2020.3.37f1, hash: 8c66806a0c04 },
{ version: 2021.3.6f1, hash: 7da38d85baf6 },
]

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x

- name: Set Unity editor path variable
run: echo "UNITY_EDITOR_PATH=${{ env.UNITY_EDITOR_BASE_PATH }}\${{ matrix.unity.version }}" >> $Env:GITHUB_ENV
shell: pwsh

- name: Replace UnityVersion value in Directory.Build.Props files
run: |
$filePaths = @(
'_DOTween.Assembly/Directory.Build.Props'
)

foreach ($filePath in $filePaths) {
$fileContent = Get-Content $filePath -Encoding UTF8 -Raw
$fileContent = $fileContent -replace '<UnityVersion>(.*)</UnityVersion>', '<UnityVersion>${{ matrix.unity.version }}</UnityVersion>'

Set-Content -Encoding UTF8 $filePath -Value $fileContent -NoNewline

Write-Output "$($filePath): '$fileContent'"
}
shell: pwsh

- name: Enable Unity Cache Support
id: cache-unity
uses: actions/cache@v3
with:
key: ${{ runner.os }}-unitycache-${{ matrix.unity.version }}
path: UnityCache

- name: Download Unity
if: steps.cache-unity.outputs.cache-hit != 'true'
run: bitsadmin /TRANSFER unity /DOWNLOAD /PRIORITY foreground "https://download.unity3d.com/download_unity/${{ matrix.unity.hash }}/Windows64EditorInstaller/UnitySetup64-${{ matrix.unity.version }}.exe" "%CD%\unitysetup.exe"
shell: cmd

- name: Install Unity
if: steps.cache-unity.outputs.cache-hit != 'true'
run: unitysetup.exe /UI=reduced /S /D=${{ env.UNITY_EDITOR_PATH }}
shell: cmd

- name: Prepare Managed Cache
if: steps.cache-unity.outputs.cache-hit != 'true'
run: Copy-Item -Path "${{ env.UNITY_EDITOR_PATH }}\Editor\Data\Managed" -Destination "UnityCache\Managed" -Recurse
shell: pwsh

- name: Prepare MonoBleedingEdge Cache
if: steps.cache-unity.outputs.cache-hit != 'true'
run: Copy-Item -Path "${{ env.UNITY_EDITOR_PATH }}\Editor\Data\MonoBleedingEdge" -Destination "UnityCache\MonoBleedingEdge" -Recurse
shell: pwsh

- name: Prepare GUISystem Cache
if: ${{ (startsWith(matrix.unity.version, '5.6') || startsWith(matrix.unity.version, '2017') || startsWith(matrix.unity.version, '2018') || startsWith(matrix.unity.version, '2019.1') || startsWith(matrix.unity.version, '2019.2')) && steps.cache-unity.outputs.cache-hit != 'true' }}
run: Copy-Item -Path "${{ env.UNITY_EDITOR_PATH }}\Editor\Data\UnityExtensions\Unity\GUISystem" -Destination "UnityCache\GUISystem" -Recurse
shell: pwsh

- name: Restore Managed Cache
if: steps.cache-unity.outputs.cache-hit == 'true'
run: Copy-Item -Path "UnityCache\Managed" -Destination "${{ env.UNITY_EDITOR_PATH }}\Editor\Data\Managed" -Recurse
shell: pwsh

- name: Restore MonoBleedingEdge Cache
if: steps.cache-unity.outputs.cache-hit == 'true'
run: Copy-Item -Path "UnityCache\MonoBleedingEdge" -Destination "${{ env.UNITY_EDITOR_PATH }}\Editor\Data\MonoBleedingEdge" -Recurse
shell: pwsh

- name: Restore GUISystem Cache
if: ${{ (startsWith(matrix.unity.version, '5.6') || startsWith(matrix.unity.version, '2017') || startsWith(matrix.unity.version, '2018') || startsWith(matrix.unity.version, '2019.1') || startsWith(matrix.unity.version, '2019.2')) && steps.cache-unity.outputs.cache-hit == 'true' }}
run: Copy-Item -Path "UnityCache\GUISystem" -Destination "${{ env.UNITY_EDITOR_PATH }}\Editor\Data\UnityExtensions\Unity\GUISystem" -Recurse
shell: pwsh

- name: Build DOTween
run: dotnet build -c Release _DOTween.Assembly/DOTween/DOTween.csproj
shell: pwsh

- name: Build DOTweenEditor
run: dotnet build -c Release _DOTween.Assembly/DOTweenEditor/DOTweenEditor.csproj
shell: pwsh

# UnityEngine.UI.dll can only be referenced up to Unity 2019.2, after that version it does not come installed with the editor.
- name: Build DOTween_LooseScripts
if: ${{ startsWith(matrix.unity.version, '5.6') || startsWith(matrix.unity.version, '2017') || startsWith(matrix.unity.version, '2018') || startsWith(matrix.unity.version, '2019.1') || startsWith(matrix.unity.version, '2019.2') }}
run: dotnet build -c Release _DOTween.Assembly/DOTween_LooseScripts/DOTween_LooseScripts.csproj
shell: pwsh

- name: Replace if true to false in the modules to use the version defines in package
run: |
foreach ($filePath in [System.IO.Directory]::GetFiles("Package/DOTween/Modules", "*.cs", [System.IO.SearchOption]::TopDirectoryOnly)) {
$fileContent = Get-Content $filePath -Encoding UTF8 -Raw
$fileContent = $fileContent -replace '#if (\(?)true', '#if $1false'

Set-Content -Encoding UTF8 $filePath -Value $fileContent -NoNewline

Write-Output "$($filePath): '$fileContent'"
}
shell: pwsh

- name: Upload package artifact
uses: actions/upload-artifact@v3
if: ${{ !startsWith(matrix.unity.version, '5.6') && !startsWith(matrix.unity.version, '2017') && !startsWith(matrix.unity.version, '2018') }}
with:
name: Package-${{ matrix.unity.version }}
path: Package
retention-days: 1
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,11 @@ biz
screenshots
zzTemp*

_DOTween.Timeline
_DOTween.Timeline

Package/**/*.cs
Package/**/*.dll
Package/**/*.dll.mdb
Package/**/*.xml
Package/**/*.jpg
Package/**/*.png
8 changes: 8 additions & 0 deletions Package/DOTween.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Package/DOTween/DOTween.dll.mdb.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions Package/DOTween/DOTween.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Package/DOTween/DOTween.xml.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Package/DOTween/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Package/DOTween/Editor/DOTweenEditor.dll.mdb.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions Package/DOTween/Editor/DOTweenEditor.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Package/DOTween/Editor/DOTweenEditor.xml.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Package/DOTween/Editor/DOTweenUpgradeManager.dll.mdb.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions Package/DOTween/Editor/DOTweenUpgradeManager.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Package/DOTween/Editor/DOTweenUpgradeManager.xml.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Package/DOTween/Editor/Imgs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading