From 09c6239c8e11a1b108677e1d78bfe72054f1ee11 Mon Sep 17 00:00:00 2001 From: Vijai Kumar S Date: Tue, 4 Jun 2024 08:11:23 +0530 Subject: [PATCH] Use latest version of the recipe for all github actions --- .github/workflows/build.yml | 110 ++++++++++++++++++------------------ 1 file changed, 55 insertions(+), 55 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d74440cfd..c3feb2399 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ jobs: outputs: lib3mf-version: ${{ steps.set-version.outputs.LIB3MF_VERSION }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true - name: Run version extraction script and set environment variable @@ -26,7 +26,7 @@ jobs: steps: - run: sudo apt update - run: sudo apt install -y valgrind uuid-dev - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true - run: sh cmake/GenerateMake.sh @@ -41,13 +41,13 @@ jobs: steps: - run: sudo apt update - run: sudo apt install -y uuid-dev - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true - run: mkdir -p build - run: zip -r build/bindings.zip Autogenerated/Bindings - name: Archive bindings - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: bindings.zip path: build/bindings.zip @@ -74,7 +74,7 @@ jobs: - run: unzip out.zip working-directory: ./dist - name: Upload Artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: lib3mf.so path: dist/lib3mf.so.2 @@ -84,7 +84,7 @@ jobs: echo "ARTIFACT_NAME_ZIP=$(basename ${ZIP_FILE})" >> $GITHUB_ENV shell: bash - name: Upload Artifact (CPacked Archive) - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: ${{ env.ARTIFACT_NAME_ZIP }} path: dist/${{ env.ARTIFACT_NAME_ZIP }} @@ -94,7 +94,7 @@ jobs: echo "ARTIFACT_NAME_DEB=$(basename ${DEB_FILE})" >> $GITHUB_ENV shell: bash - name: Upload Artifact (Debian Archive) - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: ${{ env.ARTIFACT_NAME_DEB }} path: dist/${{ env.ARTIFACT_NAME_DEB }} @@ -104,7 +104,7 @@ jobs: echo "ARTIFACT_NAME_RPM=$(basename ${RPM_FILE})" >> $GITHUB_ENV shell: bash - name: Upload Artifact (RPM Archive) - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: ${{ env.ARTIFACT_NAME_RPM }} path: dist/${{ env.ARTIFACT_NAME_RPM }} @@ -115,7 +115,7 @@ jobs: env: LIB3MF_VERSION: ${{ needs.set-lib3mf-version.outputs.lib3mf-version }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true - run: sh cmake/GenerateMake.sh "-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64" @@ -131,12 +131,12 @@ jobs: echo "ARTIFACT_NAME=$(basename ${ZIP_FILE})" >> $GITHUB_ENV shell: bash - name: Archive Mac binary - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: lib3mf.dylib path: build/lib3mf.dylib - name: Upload Artifact (CPacked Archive) - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: ${{ env.ARTIFACT_NAME }} path: build/${{ env.ARTIFACT_NAME }} @@ -145,7 +145,7 @@ jobs: runs-on: macos-latest needs: [set-lib3mf-version] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true - run: sh cmake/GenerateMake.sh "-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64 -DCMAKE_BUILD_TYPE=Debug" @@ -154,7 +154,7 @@ jobs: - run: ctest -V working-directory: ./build - name: Archive Mac binary - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: lib3mf.debug.dylib path: build/lib3mf.dylib @@ -175,7 +175,7 @@ jobs: working-directory: ./build - run: ./Tests/codecoverage/run_codecoverage.sh - name: Archive Code Coverage Results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: codecoverage.zip path: build/codecoverage.zip @@ -193,7 +193,7 @@ jobs: env: LIB3MF_VERSION: ${{ needs.set-lib3mf-version.outputs.lib3mf-version }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true - run: ./cmake/GenerateVS2019.bat @@ -209,17 +209,17 @@ jobs: echo "ARTIFACT_NAME=$zipFile" | Out-File -FilePath $env:GITHUB_ENV -Append shell: pwsh - name: Archive Windows Release binary - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: lib3mf.dll path: build/Release/lib3mf.dll - name: Archive Windows Release lib - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: lib3mf.lib path: build/Release/lib3mf.lib - name: Upload Artifact (CPacked Archive) - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: ${{ env.ARTIFACT_NAME }} path: build/${{ env.ARTIFACT_NAME }} @@ -228,7 +228,7 @@ jobs: runs-on: windows-2019 needs: [set-lib3mf-version] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true - run: ./cmake/GenerateVS2019.bat @@ -237,15 +237,15 @@ jobs: - run: ctest -V working-directory: ./build - name: Archive Windows Debug binary - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: lib3mf.debug.dll path: build/Debug/lib3mf.dll - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: lib3mf.pdb path: build/Debug/lib3mf.pdb - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: lib3mf.debug.lib path: build/Debug/lib3mf.lib @@ -253,7 +253,7 @@ jobs: runs-on: windows-2019 needs: [set-lib3mf-version] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true - run: ./cmake/GenerateVS2019_32bit.bat @@ -262,12 +262,12 @@ jobs: - run: ctest -V working-directory: ./build_32bit - name: Archive Windows 32 bit Release binary - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: lib3mf_32bit.dll path: build_32bit/Release/lib3mf.dll - name: Archive Windows 32 bit Release lib - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: lib3mf_32bit.lib path: build_32bit/Release/lib3mf.lib @@ -276,7 +276,7 @@ jobs: needs: [set-lib3mf-version] steps: - run: choco install mingw -y - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: true - run: ./cmake/GenerateMinGW.bat @@ -294,11 +294,11 @@ jobs: steps: - run: sudo apt install -y zip unzip - run: mkdir build - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: submodules: false - name: Download all workflow run artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: path: ./build - run: ls -Rl ./build @@ -306,32 +306,32 @@ jobs: working-directory: ./build - run: bash SDK/GenerateSDK_github.sh - name: Archive SDK artifact (Comprehensive) - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: lib3mf_sdk.zip path: build/lib3mf_sdk.zip - name: Archive SDK artifact (CPack - Linux) - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: lib3mf-${{ env.LIB3MF_VERSION }}-Linux.zip path: build/lib3mf-${{ env.LIB3MF_VERSION }}-Linux.zip - name: Archive SDK artifact (CPack - Windows) - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: lib3mf-${{ env.LIB3MF_VERSION }}-Windows.zip path: build/lib3mf-${{ env.LIB3MF_VERSION }}-Windows.zip - name: Archive SDK artifact (CPack - Darwin) - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: lib3mf-${{ env.LIB3MF_VERSION }}-Darwin.zip path: build/lib3mf-${{ env.LIB3MF_VERSION }}-Darwin.zip - name: Archive SDK artifact (CPack - Debian) - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: lib3mf-${{ env.LIB3MF_VERSION }}-Linux.deb path: build/lib3mf-${{ env.LIB3MF_VERSION }}-Linux.deb - name: Archive SDK artifact (CPack - RPM) - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: lib3mf-${{ env.LIB3MF_VERSION }}-Linux.rpm path: build/lib3mf-${{ env.LIB3MF_VERSION }}-Linux.rpm @@ -347,7 +347,7 @@ jobs: - run: pwd - run: ls -Rl . - name: Download lib3mf_sdk artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: lib3mf_sdk.zip path: lib3mf_sdk.zip @@ -371,12 +371,12 @@ jobs: run: | python Examples/Python/extract_info.py Examples/Files/Helix.3mf - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: true - run: ls -Rl - name: Download lib3mf cpack (Linux) - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: lib3mf-${{ env.LIB3MF_VERSION }}-Linux.zip path: lib3mf-${{ env.LIB3MF_VERSION }}-Linux.zip @@ -396,7 +396,7 @@ jobs: cmake --build . ./Example_ExtractInfo ../../../Examples/Files/Helix.3mf - name: Download lib3mf (Debian Linux) - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: lib3mf-${{ env.LIB3MF_VERSION }}-Linux.deb path: lib3mf-${{ env.LIB3MF_VERSION }}-Linux.deb @@ -429,7 +429,7 @@ jobs: LIB3MF_VERSION: ${{ needs.set-lib3mf-version.outputs.lib3mf-version }} steps: - name: Download lib3mf_sdk artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: lib3mf_sdk.zip path: lib3mf_sdk.zip @@ -452,11 +452,11 @@ jobs: run: | python Examples/Python/extract_info.py Examples/Files/Helix.3mf - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: true - name: Download lib3mf cpack (Windows) - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: lib3mf-${{ env.LIB3MF_VERSION }}-Windows.zip path: lib3mf-${{ env.LIB3MF_VERSION }}-Windows.zip @@ -483,7 +483,7 @@ jobs: LIB3MF_VERSION: ${{ needs.set-lib3mf-version.outputs.lib3mf-version }} steps: - name: Download lib3mf_sdk artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: lib3mf_sdk.zip path: lib3mf_sdk.zip @@ -506,11 +506,11 @@ jobs: run: | python Examples/Python/extract_info.py Examples/Files/Helix.3mf - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: true - name: Download lib3mf cpack (Darwin) - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: lib3mf-${{ env.LIB3MF_VERSION }}-Darwin.zip path: lib3mf-${{ env.LIB3MF_VERSION }}-Darwin.zip @@ -553,12 +553,12 @@ jobs: if: needs.set-integration-tests-status.outputs.run_integration_tests == 'true' # Single check before the job starts steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: true - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '3.8' @@ -617,12 +617,12 @@ jobs: if: needs.set-integration-tests-status.outputs.run_integration_tests == 'true' # Single check before the job starts steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: true - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '3.8' @@ -719,12 +719,12 @@ jobs: if: needs.set-integration-tests-status.outputs.run_integration_tests == 'true' # Single check before the job starts steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: true - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '3.8' @@ -733,7 +733,7 @@ jobs: python -m pip install --upgrade pip - name: Download lib3mf_sdk artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: lib3mf_sdk.zip path: lib3mf_sdk.zip @@ -774,12 +774,12 @@ jobs: if: needs.set-integration-tests-status.outputs.run_integration_tests == 'true' # Single check before the job starts steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: true - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '3.8' @@ -788,7 +788,7 @@ jobs: python -m pip install --upgrade pip - name: Download lib3mf_sdk artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: lib3mf_sdk.zip path: lib3mf_sdk.zip @@ -875,7 +875,7 @@ jobs: echo "Latest release with tag ${{ env.LATEST_RELEASE_NAME }} ran in ${LATEST_RELEASE_TOTAL_SECONDS} seconds" >> results.txt - name: Upload results artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: integration-test-results path: results.txt \ No newline at end of file