diff --git a/.github/workflows/build-test-macos.yml b/.github/workflows/build-test-macos.yml index 1800afe27fb3..cc6c6d435a87 100644 --- a/.github/workflows/build-test-macos.yml +++ b/.github/workflows/build-test-macos.yml @@ -257,13 +257,18 @@ jobs: - name: Upload Macos Distribution if: ${{ inputs.upload_artifacts && matrix.config == 'Release' }} - uses: actions/upload-artifact@v7 env: ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS: 1800000 + uses: Wandalen/wretry.action@e68c23e6309f2871ca8ae4763e7629b9c258e1ea # v3.8.0 with: - name: Distributives_macos-${{matrix.os}} - path: meshlib_${{matrix.os}}.pkg - retention-days: 1 + action: actions/upload-artifact@v7 + attempt_limit: 3 + attempt_delay: 30000 # milliseconds + with: | + name: Distributives_macos-${{matrix.os}} + path: meshlib_${{matrix.os}}.pkg + retention-days: 1 + overwrite: true - name: Collect artifact stats if: ${{ inputs.internal_build && inputs.upload_artifacts }} @@ -286,8 +291,13 @@ jobs: - name: Upload NuGet files to Artifacts if: ${{ inputs.nuget_build_patch && matrix.config == 'Release' }} - uses: actions/upload-artifact@v7 + uses: Wandalen/wretry.action@e68c23e6309f2871ca8ae4763e7629b9c258e1ea # v3.8.0 with: - name: DotNetPatchArchiveMacOs-${{ matrix.arch }} - path: ./patched_content/* - retention-days: 1 + action: actions/upload-artifact@v7 + attempt_limit: 3 + attempt_delay: 30000 # milliseconds + with: | + name: DotNetPatchArchiveMacOs-${{ matrix.arch }} + path: ./patched_content/* + retention-days: 1 + overwrite: true diff --git a/.github/workflows/build-test-windows.yml b/.github/workflows/build-test-windows.yml index 2a83cea31c98..654123f88b01 100644 --- a/.github/workflows/build-test-windows.yml +++ b/.github/workflows/build-test-windows.yml @@ -335,11 +335,16 @@ jobs: - name: Upload Windows Binaries Archive if: ${{ inputs.upload_artifacts && matrix.cxx_compiler == 'msvc-2019' && matrix.build_system == 'CMake' }} - uses: actions/upload-artifact@v7 + uses: Wandalen/wretry.action@e68c23e6309f2871ca8ae4763e7629b9c258e1ea # v3.8.0 with: - name: WindowsArchive_${{ matrix.upload_name || matrix.config }} - path: MREDist_${{ matrix.upload_name || matrix.config }}.zip - retention-days: 1 + action: actions/upload-artifact@v7 + attempt_limit: 3 + attempt_delay: 30000 # milliseconds + with: | + name: WindowsArchive_${{ matrix.upload_name || matrix.config }} + path: MREDist_${{ matrix.upload_name || matrix.config }}.zip + retention-days: 1 + overwrite: true - name: Collect artifact stats if: ${{ inputs.internal_build && inputs.upload_artifacts }} @@ -352,11 +357,16 @@ jobs: - name: Upload MeshLibC2 headers archive if: ${{ inputs.upload_artifacts && matrix.cxx_compiler == 'msvc-2019' && matrix.build_system == 'CMake' && matrix.config == 'Release' && inputs.mrbind_c }} - uses: actions/upload-artifact@v7 + uses: Wandalen/wretry.action@e68c23e6309f2871ca8ae4763e7629b9c258e1ea # v3.8.0 with: - name: WindowsArchive_MeshLibC2Headers - path: MeshLibC2Headers.zip - retention-days: 1 + action: actions/upload-artifact@v7 + attempt_limit: 3 + attempt_delay: 30000 # milliseconds + with: | + name: WindowsArchive_MeshLibC2Headers + path: MeshLibC2Headers.zip + retention-days: 1 + overwrite: true - name: Create and fix fake Wheel for NuGet if: ${{ inputs.nuget_build && matrix.cxx_compiler == 'msvc-2022' && matrix.config == 'Release' && env.BUILD_C_SHARP == 'true' }} @@ -368,18 +378,28 @@ jobs: - name: Upload NuGet files to Artifacts if: ${{ inputs.nuget_build && matrix.cxx_compiler == 'msvc-2022' && matrix.config == 'Release' && env.BUILD_C_SHARP == 'true' }} - uses: actions/upload-artifact@v7 + uses: Wandalen/wretry.action@e68c23e6309f2871ca8ae4763e7629b9c258e1ea # v3.8.0 with: - name: DotNetPatchArchiveWindows-x64 - path: ./patched_content/* - retention-days: 1 + action: actions/upload-artifact@v7 + attempt_limit: 3 + attempt_delay: 30000 # milliseconds + with: | + name: DotNetPatchArchiveWindows-x64 + path: ./patched_content/* + retention-days: 1 + overwrite: true - name: Upload NuGet library DLL and XML to Artifacts if: ${{ inputs.nuget_build && matrix.cxx_compiler == 'msvc-2022' && matrix.config == 'Release' && env.BUILD_C_SHARP == 'true' }} - uses: actions/upload-artifact@v7 + uses: Wandalen/wretry.action@e68c23e6309f2871ca8ae4763e7629b9c258e1ea # v3.8.0 with: - name: DotNetDllXml - path: | - ./source/x64/Release/MRDotNet2.dll - ./source/x64/Release/MRDotNet2.xml - retention-days: 1 + action: actions/upload-artifact@v7 + attempt_limit: 3 + attempt_delay: 30000 # milliseconds + with: | + name: DotNetDllXml + path: | + ./source/x64/Release/MRDotNet2.dll + ./source/x64/Release/MRDotNet2.xml + retention-days: 1 + overwrite: true