Skip to content

Commit

Permalink
Use upload artifact v4
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev committed May 14, 2024
1 parent e535de1 commit 9ed2139
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/templates/common.lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#@ nugetPackages = publishedPackages + [ 'Realm.UnityUtils', 'Realm.UnityWeaver' ]
#@ actionCheckout = "actions/checkout@v3"
#@ actionCache = "nirinchev/cache@29e8e4dd9148ea81f9e188480132072cb6cc92d8"
#@ actionUploadArtifact = "actions/upload-artifact@v3"
#@ actionUploadArtifact = "actions/upload-artifact@v4"
#@ actionDownloadArtifact = "actions/download-artifact@v4"
#@ actionSetupMSBuild = "microsoft/setup-msbuild@0b44c6745b7e81956596964100aadb92d667c497"
#@ actionSetupDotnet = "actions/setup-dotnet@3e6b9fe3930cac7c59c651af5de1514b47a805b9" #! 4.0.0
Expand Down
2 changes: 1 addition & 1 deletion .github/templates/test-code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
DOTNET_EnableCrashReport: 1
run: #@ "./tools/coverlet ${{ steps.dotnet-publish.outputs.executable-path }} -t ${{ steps.dotnet-publish.outputs.executable-path }}/Realm.Tests -a '--result=TestResults.Linux.xml --labels=After" + baasTestArgs("code-coverage") + "' -f lcov -o ./report.lcov --exclude '[Realm.Tests]*' --exclude '[Realm.Fody]*' --exclude '[Realm.PlatformHelpers]*'"
- name: Archive core dump
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: crash-report-net-core-code-coverage
Expand Down
2 changes: 1 addition & 1 deletion .github/templates/test-net-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
DOTNET_EnableCrashReport: 1
run: #@ "${{ steps.dotnet-publish.outputs.executable-path }}/Realm.Tests --result=TestResults.xml --labels=After"
- name: Archive core dump
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: crash-report-net-core-${{ matrix.runner }}-${{ matrix.runtime }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,35 +179,35 @@ jobs:
echo "version=$pkgVersion" >> $GITHUB_OUTPUT
shell: bash
- name: Store artifacts for Realm.PlatformHelpers.${{ steps.get-version.outputs.version }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Realm.PlatformHelpers.${{ steps.get-version.outputs.version }}
path: ${{ github.workspace }}/Realm/packages/Realm.PlatformHelpers.${{ steps.get-version.outputs.version }}.*nupkg
retention-days: ${{ github.event_name != 'pull_request' && 30 || 1 }}
if-no-files-found: error
- name: Store artifacts for Realm.${{ steps.get-version.outputs.version }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Realm.${{ steps.get-version.outputs.version }}
path: ${{ github.workspace }}/Realm/packages/Realm.${{ steps.get-version.outputs.version }}.*nupkg
retention-days: ${{ github.event_name != 'pull_request' && 30 || 1 }}
if-no-files-found: error
- name: Store artifacts for Realm.UnityUtils.${{ steps.get-version.outputs.version }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Realm.UnityUtils.${{ steps.get-version.outputs.version }}
path: ${{ github.workspace }}/Realm/packages/Realm.UnityUtils.${{ steps.get-version.outputs.version }}.*nupkg
retention-days: ${{ github.event_name != 'pull_request' && 30 || 1 }}
if-no-files-found: error
- name: Store artifacts for Realm.UnityWeaver.${{ steps.get-version.outputs.version }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Realm.UnityWeaver.${{ steps.get-version.outputs.version }}
path: ${{ github.workspace }}/Realm/packages/Realm.UnityWeaver.${{ steps.get-version.outputs.version }}.*nupkg
retention-days: ${{ github.event_name != 'pull_request' && 30 || 1 }}
if-no-files-found: error
- name: Store artifacts for ExtractedChangelog
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ExtractedChangelog
path: ${{ github.workspace }}/Realm/Realm/ExtractedChangelog.md
Expand Down Expand Up @@ -251,7 +251,7 @@ jobs:
run: |
Compress-Archive -Path Docs/_site -DestinationPath "Realm/packages/Docs.zip"
- name: Store artifacts for Docs.zip
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Docs.zip
path: ${{ github.workspace }}/Realm/packages/Docs.zip
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-unity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ jobs:
- name: Build Unity
run: dotnet run --project Tools/SetupUnityPackage/ -- realm --packages-path Realm/packages --pack
- name: Store artifacts for io.realm.unity-${{ inputs.version }}.tgz
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: io.realm.unity-${{ inputs.version }}.tgz
path: ${{ github.workspace }}/Realm/Realm.Unity/io.realm.unity-${{ inputs.version }}.tgz
retention-days: ${{ github.event_name != 'pull_request' && 30 || 1 }}
if-no-files-found: error
- name: Store artifacts for AssetStorePublisher-${{ inputs.version }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: AssetStorePublisher-${{ inputs.version }}
path: ${{ github.workspace }}/Tools/AssetStorePublisher
Expand All @@ -62,7 +62,7 @@ jobs:
- name: Build Tests
run: dotnet run --project Tools/SetupUnityPackage/ -- tests --realm-package Realm/Realm.Unity/io.realm.unity-${{ inputs.version }}.tgz
- name: Store artifacts for UnityTests
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: UnityTests
path: ${{ github.workspace }}/Tests/Tests.Unity
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ jobs:
dashboard-path: dashboard.charts
nuget-package: ${{ github.workspace }}/Realm/packages/Realm.${{ needs.build-packages.outputs.package_version }}.nupkg
- name: Store artifacts for dashboard.charts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dashboard.charts
path: ${{ github.workspace }}/dashboard.charts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ jobs:
DOTNET_EnableCrashReport: 1
run: ./tools/coverlet ${{ steps.dotnet-publish.outputs.executable-path }} -t ${{ steps.dotnet-publish.outputs.executable-path }}/Realm.Tests -a '--result=TestResults.Linux.xml --labels=After --baasaas-api-key=${{ secrets.BaaSaasApiKey}} --baas-differentiator=code-coverage-${{ github.run_id }}-${{ github.run_attempt }}' -f lcov -o ./report.lcov --exclude '[Realm.Tests]*' --exclude '[Realm.Fody]*' --exclude '[Realm.PlatformHelpers]*'
- name: Archive core dump
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: crash-report-net-core-code-coverage
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-net-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
DOTNET_EnableCrashReport: 1
run: ${{ steps.dotnet-publish.outputs.executable-path }}/Realm.Tests --result=TestResults.xml --labels=After
- name: Archive core dump
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: crash-report-net-core-${{ matrix.runner }}-${{ matrix.runtime }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-unity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: |
unity-editor -runTests -batchmode -projectPath ${{ github.workspace }}/Tests/Tests.Unity -testPlatform Standalone${{ matrix.platform.testPlatform }} -testSettingsFile ${{ github.workspace }}/Tests/Tests.Unity/.TestConfigs/${{ matrix.settings }}.json -logFile ${{ matrix.platform.os == 'windows' && 'build.log' || '-'}}
- name: Store artifacts for UnityTestsRunner.${{ matrix.platform.os }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: UnityTestsRunner.${{ matrix.platform.os }}
path: ${{ github.workspace }}/Tests/Tests.Unity/Player_Standalone${{ matrix.platform.testPlatform }}_${{ matrix.settings }}/
Expand Down

0 comments on commit 9ed2139

Please sign in to comment.