Skip to content

Commit

Permalink
Drop down/upload-artifact edits
Browse files Browse the repository at this point in the history
Keep `v3`.
  • Loading branch information
gmou3 committed Apr 16, 2024
1 parent 96f8900 commit 18cfef0
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
if git format-patch --stdout test_base > ci_fixes.patch; then
cp ci_fixes.patch upstream/
fi
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
with:
path: upstream
name: upstream
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
.ci/retrofit-worktree.sh worktree-image /sage
- name: Download upstream artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
path: upstream
name: upstream
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
- name: make dist
run: |
./configure --enable-download-from-upstream-url && make dist
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
with:
path: "dist/*.tar.gz"
name: dist
Expand All @@ -119,7 +119,7 @@ jobs:
steps:
- uses: actions/checkout@v4
if: "!contains(matrix.tox_system_factor, 'nobootstrap')"
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v3
with:
path: .
name: dist
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
run: |
mkdir -p "artifacts/$LOGS_ARTIFACT_NAME"; cp -r .tox/*/log "artifacts/$LOGS_ARTIFACT_NAME"
if: always()
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
with:
path: artifacts
name: ${{ env.LOGS_ARTIFACT_NAME }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
./configure && make dist
env:
MAKE: make -j8
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
if: success() || failure()
with:
path: |
Expand All @@ -61,7 +61,7 @@ jobs:
runs-on: ubuntu-latest
if: (success() || failure()) && github.repository == 'sagemath/sage' && startsWith(github.ref, 'refs/tags/') && !contains(github.ref, 'beta') && !contains(github.ref, 'rc')
steps:
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v3
with:
name: release_dist
- uses: softprops/action-gh-release@v2
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
make pypi-sdists V=0
(mkdir dist && mv upstream/sage*.tar.gz dist/)
ls -l dist
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
with:
path: "dist/*.tar.gz"
name: dist
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v3
with:
name: dist
path: dist
Expand All @@ -159,7 +159,7 @@ jobs:
pipx run cibuildwheel==2.16.2 unpacked/$pkg*
done
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
with:
name: wheels
path: ./wheelhouse/*.whl
Expand All @@ -171,7 +171,7 @@ jobs:
CAN_DEPLOY: ${{ secrets.SAGEMATH_PYPI_API_TOKEN != '' }}
steps:

- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v3
with:
name: wheels
path: wheelhouse
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/doc-build-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
if git format-patch --stdout test_base > ci_fixes.patch; then
cp ci_fixes.patch upstream/
fi
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
with:
path: upstream
name: upstream
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
.ci/retrofit-worktree.sh worktree-image /sage
- name: Download upstream artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
path: upstream
name: upstream
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
- name: Upload docs
if: (success() || failure()) && steps.copy.outcome == 'success'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: docs-pdf
path: docs-pdf.zip
8 changes: 4 additions & 4 deletions .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
if git format-patch --stdout test_base > ci_fixes.patch; then
cp ci_fixes.patch upstream/
fi
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
with:
path: upstream
name: upstream
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
git add -A && git commit --quiet -m "old")
- name: Download upstream artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
path: upstream
name: upstream
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
- name: Upload docs
if: (success() || failure()) && steps.copy.outcome == 'success'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: docs
path: docs.zip
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:
- name: Upload live doc
if: (success() || failure()) && steps.copylivedoc.outcome == 'success'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: livedoc
path: livedoc.zip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ jobs:
ref: ${{ inputs.sage_ref }}
fetch-depth: 10000
- name: Download upstream artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
path: upstream
name: ${{ inputs.upstream_artifact }}
Expand Down Expand Up @@ -252,7 +252,7 @@ jobs:
cp -r .tox/$TOX_ENV/* "artifacts/$LOGS_ARTIFACT_NAME"
rm -rf "artifacts/$LOGS_ARTIFACT_NAME"/{bin,lib,pyvenv.cfg}
if: always()
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
with:
path: artifacts
name: ${{ env.LOGS_ARTIFACT_NAME }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
run: |
"${{ steps.python.outputs.python-path }}" -m pip install pipx
- name: Download upstream artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
path: upstream
name: ${{ inputs.upstream_artifact }}
Expand All @@ -110,7 +110,7 @@ jobs:
GH_TOKEN: ${{ github.token }}
SAGE_CI_FIXES_FROM_REPOSITORIES: ${{ vars.SAGE_CI_FIXES_FROM_REPOSITORIES }}

- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v3
with:
path: sage-local-artifact
name: ${{ env.LOCAL_ARTIFACT_NAME }}
Expand Down Expand Up @@ -149,7 +149,7 @@ jobs:
run: |
mkdir -p "artifacts/$LOGS_ARTIFACT_NAME"; cp -r .tox/*/log "artifacts/$LOGS_ARTIFACT_NAME"
if: always()
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
with:
path: artifacts
name: ${{ env.LOGS_ARTIFACT_NAME }}
Expand All @@ -167,7 +167,7 @@ jobs:
run: |
mkdir -p sage-local-artifact && (cd .tox/$TOX_ENV && rm -f "local/lib64" && tar -cf - $(pwd)) > sage-local-artifact/sage-${{ env.TOX_ENV }}-${{ inputs.stage }}.tar
if: contains(inputs.stage, '1')
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
with:
path: sage-local-artifact/sage-${{ env.TOX_ENV }}-${{ inputs.stage }}.tar
name: ${{ env.LOCAL_ARTIFACT_NAME }}
Expand Down

0 comments on commit 18cfef0

Please sign in to comment.