Skip to content

Commit

Permalink
Update to download-artifact@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
overfl0 committed Dec 4, 2024
1 parent 9420b4d commit 389534f
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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*
Expand All @@ -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
Expand All @@ -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
#
Expand Down

0 comments on commit 389534f

Please # to comment.