From 423b915ec2254c0ee35ccbeece8406363032000d Mon Sep 17 00:00:00 2001 From: James Longo Date: Fri, 18 Oct 2024 11:43:07 -0400 Subject: [PATCH] updated actions/upload-artifact@v1/2/3 -> v4 --- .github/workflows/build_docs.yml | 4 ++-- .github/workflows/build_nuget.yml | 2 +- .github/workflows/build_python_wheels.yml | 2 +- .github/workflows/dotnet_nugets.yml | 14 +++++++------- .github/workflows/lint.yml | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index 6da8307b1..5c7015208 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -29,7 +29,7 @@ jobs: cd doc/cpp/ doxygen - name: Upload built docs - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: cxx_docs path: doc/cpp/html/ @@ -54,7 +54,7 @@ jobs: cd bindings/python/docs make html SPHINXBUILD=/opt/python/cp38-cp38/bin/sphinx-build - name: Upload built docs - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: python_docs path: bindings/python/docs/build/ diff --git a/.github/workflows/build_nuget.yml b/.github/workflows/build_nuget.yml index 4644be064..04325a63c 100644 --- a/.github/workflows/build_nuget.yml +++ b/.github/workflows/build_nuget.yml @@ -97,7 +97,7 @@ jobs: echo "Found nuget package: ${NugetFileName[0]}" echo "NugetFileName=${NugetFileName[0]}" >> $GITHUB_OUTPUT - name: Upload package - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: RLClientLibNativeStatic-${{ matrix.toolset }}-${{ matrix.build_type }}-x64.${{ steps.get_version.outputs.version }}.nupkg path: nuget_staging/${{ steps.nuget_name.outputs.NugetFileName }} diff --git a/.github/workflows/build_python_wheels.yml b/.github/workflows/build_python_wheels.yml index 410fcaa0d..379bdd2d6 100644 --- a/.github/workflows/build_python_wheels.yml +++ b/.github/workflows/build_python_wheels.yml @@ -32,7 +32,7 @@ jobs: ${{ matrix.config.base_path }}bin/pip wheel . -w wheel_output/ --verbose auditwheel repair wheel_output/*whl -w audit_output/ - name: Upload built wheel - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: wheel_${{ matrix.config.version }} path: audit_output/ diff --git a/.github/workflows/dotnet_nugets.yml b/.github/workflows/dotnet_nugets.yml index 323f4257a..5962d45f0 100644 --- a/.github/workflows/dotnet_nugets.yml +++ b/.github/workflows/dotnet_nugets.yml @@ -81,13 +81,13 @@ jobs: run: cmake --build build --config RelWithDebInfo -t rl.net - if: ${{ startsWith(matrix.config.os, 'windows') }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: artifacts path: build/binaries/*.dll - if: ${{ startsWith(matrix.config.os, 'windows') }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: symbols path: build/binaries/*.pdb @@ -99,13 +99,13 @@ jobs: strip --strip-debug --strip-unneeded build/bindings/cs/rl.net.native/librlnetnative.so - if: ${{ startsWith(matrix.config.os, 'ubuntu') }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: artifacts path: build/bindings/cs/rl.net.native/librlnetnative.so - if: ${{ startsWith(matrix.config.os, 'ubuntu') }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: symbols path: symbols/librlnetnative.debug @@ -117,13 +117,13 @@ jobs: strip -S build/bindings/cs/rl.net.native/librlnetnative.dylib - if: ${{ startsWith(matrix.config.os, 'macos') }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: artifacts path: build/bindings/cs/rl.net.native/librlnetnative.dylib - if: ${{ startsWith(matrix.config.os, 'macos') }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: symbols path: symbols/librlnetnative.dSYM @@ -150,7 +150,7 @@ jobs: path: artifacts - uses: NuGet/setup-nuget@v1.1.1 - run: nuget pack nuget/dotnet/rl.net.nuspec -Properties RL_NUGET_PACKAGE_VERSION=$RL_NUGET_VERSION -BasePath artifacts -OutputDirectory nuget_output - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v4 with: name: dist path: nuget_output/ diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6516724a2..e2a8b7dca 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -31,7 +31,7 @@ jobs: auditwheel repair wheel_output/*whl -w audit_output/ - name: Upload built wheel # v1 must be used because newer versions require a node.js version that will not run on this old image. - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: wheel_${{ matrix.config.version }} path: audit_output/