From 389534f2179180b33f90b6d074fad5b82463cd32 Mon Sep 17 00:00:00 2001 From: Lukasz Taczuk Date: Wed, 4 Dec 2024 14:08:27 +0100 Subject: [PATCH] Update to download-artifact@v4 --- .github/workflows/build.yml | 38 +++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0f82e72..6478a25 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,9 +37,9 @@ jobs: if: steps.cache.outputs.cache-hit != 'true' run: tar cvf python-${{ env.PYTHON_VERSION }}-${{ runner.os }}.tar python-*-embed-* - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: - name: _Internal_Python_Interpreters + name: _Internal_Python_Interpreters-${{ runner.os }} path: python-*.tar if-no-files-found: error retention-days: 1 @@ -65,9 +65,9 @@ jobs: run: mkdir "@Pythia" - name: Download the interpreters - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: _Internal_Python_Interpreters + name: _Internal_Python_Interpreters-${{ runner.os }} - name: Untar the interpreter run: tar xf ../python-${{ env.PYTHON_VERSION }}-${{ runner.os }}.tar @@ -82,9 +82,9 @@ jobs: - name: Perform build run: python tools/build.py build_binaries ${{ env.PYTHON_VERSION }} ${{ matrix.arch }} ${{ runner.os }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: - name: _Internal_Pythia_Binaries + name: _Internal_Pythia_Binaries-${{ runner.os }}-${{ matrix.arch }} path: | @Pythia/*.dll @Pythia/*.so @@ -115,7 +115,7 @@ jobs: - run: python tools/build.py build_pbos - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: _Internal_Pythia_PBOs path: | @@ -145,18 +145,18 @@ jobs: run: mkdir "@Pythia" - name: Download the interpreters - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: _Internal_Python_Interpreters + name: _Internal_Python_Interpreters-${{ runner.os }} - name: Untar the interpreter run: tar xf ../python-${{ env.PYTHON_VERSION }}-${{ runner.os }}.tar working-directory: "@Pythia" - name: Download the binaries - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: _Internal_Pythia_Binaries + name: _Internal_Pythia_Binaries-${{ runner.os }}-${{ matrix.arch }} path: "@Pythia" - name: Set testers permissions @@ -187,21 +187,23 @@ jobs: uses: actions/checkout@v3 - name: Download the binaries - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: _Internal_Pythia_Binaries + pattern: _Internal_Pythia_Binaries-* path: "@Pythia" + merge-multiple: true - name: Download the PBOs - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: _Internal_Pythia_PBOs path: "@Pythia" - name: Download the interpreters - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: _Internal_Python_Interpreters + pattern: _Internal_Python_Interpreters-* + merge-multiple: true - name: Set testers permissions run: chmod a+x @Pythia/PythiaTester* @@ -220,7 +222,7 @@ jobs: - run: tar -jcf "@Pythia.tbz" "@Pythia" - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 # if: ${{ github.ref == 'refs/heads/master' }} with: name: Pythia @@ -235,7 +237,7 @@ jobs: # environment: Dev-deploy # steps: # - name: Download the release -# uses: actions/download-artifact@v3 +# uses: actions/download-artifact@v4 # with: # name: Pythia #