1010 LOWEST_SUPPORTED_UNITY_VERSION : 2019
1111 DOTNET_CLI_TELEMETRY_OPTOUT : 1
1212 DOTNET_NOLOGO : 1
13- GITHUB_ACTOR : ${{ github.actor }}
14- GITHUB_SHA : ${{ github.sha }}
15- UNITY_VERSION : ${{ inputs.unity-version }}
1613
1714defaults :
1815 run :
@@ -24,19 +21,19 @@ jobs:
2421 runs-on : ubuntu-22.04
2522 steps :
2623 - name : Checkout
27- uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
24+ uses : actions/checkout@v3
2825
2926 - name : Checkout submodules
3027 run : git submodule update --init --recursive src/sentry-dotnet
3128
3229 - name : Load env
3330 id : env
34- run : echo "unityVersion=$(./scripts/ci-env.ps1 "unity${env:UNITY_VERSION }")" >> $env:GITHUB_OUTPUT
31+ run : echo "unityVersion=$(./scripts/ci-env.ps1 "unity${{ inputs.unity-version } }")" >> $env:GITHUB_OUTPUT
3532
3633 - run : echo "::add-mask::${{ secrets.LICENSE_SERVER_URL }}"
3734
3835 - name : Restore Unity Packages
39- uses : actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3
36+ uses : actions/cache@v3
4037 with :
4138 path : |
4239 samples/unity-of-bugs/Library/Packages
@@ -47,41 +44,41 @@ jobs:
4744 uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # pinned v3
4845 with :
4946 registry : ghcr.io
50- username : ${{ env.GITHUB_ACTOR }}
51- password : ${{ secrets.GITHUB_TOKEN }}
47+ username : ${{ github.actor }}
48+ password : ${{ secrets.GITHUB_TOKEN }}
5249
5350 - name : Start the Unity docker container
54- run : ./scripts/ci-docker.sh "${UNITY_VERSION}" 'ios' '${{ secrets.UNITY_LICENSE_SERVER_CONFIG }}'
51+ run : ./scripts/ci-docker.sh '${{ inputs.unity-version }}' 'ios' '${{ secrets.UNITY_LICENSE_SERVER_CONFIG }}'
5552 shell : bash
5653
5754 - name : Install .NET SDK
5855 if : runner.os != 'Windows'
59- uses : actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4
56+ uses : actions/setup-dotnet@v4
6057 with :
6158 global-json-file : src/sentry-dotnet/global.json
6259
6360 - name : Install Android dotnet workflow
64- run : dotnet workload install android --temp-dir "${env:RUNNER_TEMP }"
61+ run : dotnet workload install android --temp-dir "${{ runner.temp } }"
6562
6663 - name : Download CLI
6764 run : ./scripts/download-sentry-cli.ps1
6865
6966 - name : Download Android SDK
70- uses : vaind/download-artifact@e7141b6a94ef28aa3d828b52830cfa1f406a1848 # v4-with-wait-timeout
67+ uses : vaind/download-artifact@e7141b6a94ef28aa3d828b52830cfa1f406a1848
7168 with :
7269 name : Android-sdk
7370 path : package-dev/Plugins/Android
7471 wait-timeout : 3600
7572
7673 - name : Download Linux SDK
77- uses : vaind/download-artifact@e7141b6a94ef28aa3d828b52830cfa1f406a1848 # v4-with-wait-timeout
74+ uses : vaind/download-artifact@e7141b6a94ef28aa3d828b52830cfa1f406a1848
7875 with :
7976 name : Linux-sdk
8077 path : package-dev/Plugins/Linux
8178 wait-timeout : 3600
8279
8380 - name : Download Windows SDK
84- uses : vaind/download-artifact@e7141b6a94ef28aa3d828b52830cfa1f406a1848 # v4-with-wait-timeout
81+ uses : vaind/download-artifact@e7141b6a94ef28aa3d828b52830cfa1f406a1848
8582 with :
8683 name : Windows-sdk
8784 path : package-dev/Plugins/Windows
@@ -100,16 +97,16 @@ jobs:
10097 run : docker exec unity /home/gh/.dotnet/tools/assemblyalias --target-directory "package-dev/Runtime" --internalize --prefix "Sentry." --assemblies-to-alias "Microsoft*;System*"
10198
10299 - name : Package for release
103- if : ${{ env.UNITY_VERSION == env.LOWEST_SUPPORTED_UNITY_VERSION }}
100+ if : ${{ inputs.unity-version == env.LOWEST_SUPPORTED_UNITY_VERSION }}
104101 run : |
105102 docker exec unity dotnet msbuild /t:UnityConfigureSentryOptions /p:Configuration=Release /p:OutDir=other src/Sentry.Unity
106103 ./scripts/pack.ps1
107104
108105 - name : Upload release artifacts
109- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
110- if : ${{ env.UNITY_VERSION == env.LOWEST_SUPPORTED_UNITY_VERSION }}
106+ uses : actions/upload-artifact@v4
107+ if : ${{ inputs.unity-version == env.LOWEST_SUPPORTED_UNITY_VERSION }}
111108 with :
112- name : ${{ env.GITHUB_SHA }}
109+ name : ${{ github.sha }}
113110 if-no-files-found : error
114111 path : |
115112 package-release.zip
@@ -120,16 +117,16 @@ jobs:
120117 docker exec unity dotnet msbuild /t:UnityPlayModeTest /p:Configuration=Release /p:OutDir=other test/Sentry.Unity.Tests
121118
122119 - name : Upload test artifacts (playmode)
123- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
120+ uses : actions/upload-artifact@v4
124121 with :
125- name : Test results (playmode) - ${{ env.UNITY_VERSION }}
122+ name : Test results (playmode) - ${{inputs.unity-version }}
126123 path : artifacts/test/playmode
127124
128125 - name : Run Unity tests (editmode)
129126 run : docker exec unity dotnet msbuild /t:UnityEditModeTest /p:Configuration=Release /p:OutDir=other test/Sentry.Unity.Editor.Tests
130127
131128 - name : Upload test artifacts (editmode)
132- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
129+ uses : actions/upload-artifact@v4
133130 with :
134- name : Test results (editmode) - ${{ env.UNITY_VERSION }}
131+ name : Test results (editmode) - ${{inputs.unity-version }}
135132 path : artifacts/test/editmode
0 commit comments