Skip to content

Commit

Permalink
GHA: Bump actions/{checkout,{up,down}load-artifact} versions
Browse files Browse the repository at this point in the history
To get rid of deprecations and hopefully benefit from improved
performance for up/download-artifact v4.
  • Loading branch information
kinke authored and ibuclaw committed May 10, 2024
1 parent 6174785 commit 673ccb4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build_release_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,21 @@ jobs:
steps:
# Clone all required repos
- name: Clone dmd
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'dlang/dmd'
ref: ${{ inputs.release_branch }}
path: 'dmd'

- name: Clone phobos
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'dlang/phobos'
ref: ${{ inputs.release_branch }}
path: 'phobos'

- name: Clone dlang.org
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'dlang/dlang.org'
ref: ${{ inputs.release_branch }}
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
# Save the generated documentation for the target-specific builds
- name: Upload generated docs as a temporary artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dmd-documentation
path: dlang.org/web
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
# Clone dlang/installer which provides the actual build scripts
#
- name: Clone installer repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{ inputs.installer_repo }}
ref: ${{ inputs.installer_branch }}
Expand All @@ -201,7 +201,7 @@ jobs:
# Load the generated documentation in the create_dmd_release folder
#
- name: Download docs generated by the previous job
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dmd-documentation
path: create_dmd_release/docs
Expand Down Expand Up @@ -306,9 +306,9 @@ jobs:
# job(s) have access to all generated releases
#
- name: Upload generated release as a temporary artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: dmd-release
name: dmd-release-${{ matrix.target }}
path: |
${{ github.workspace }}/create_dmd_release/build/*
!${{ github.workspace }}/create_dmd_release/build/*.zip
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
LLVM_VER: 9.0.0
ARCH: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1
- shell: cmd
run: call windows\build_lld.bat || exit /b
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: lld-${{ matrix.arch }}
path: artifacts/
Expand All @@ -42,12 +42,12 @@ jobs:
MINGW_VER: 8.0.0
D_VERSION: 2.077.1
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1
- shell: cmd
run: call windows\build_mingw.bat || exit /b
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: mingw-libs
path: artifacts/
Expand All @@ -63,12 +63,12 @@ jobs:
ZLIB_VER: 1.2.11
PEXPORTS_VER: 0.47
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1
- shell: cmd
run: call windows\build_curl.bat || exit /b
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: curl
path: artifacts/
Expand All @@ -78,7 +78,7 @@ jobs:
runs-on: ubuntu-20.04
timeout-minutes: 120
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Clone repos
Expand All @@ -94,7 +94,7 @@ jobs:
set -eux
mkdir -p work/docs
zip -r work/docs/docs.zip work/dlang.org/web
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: docs
path: work/docs
Expand All @@ -108,11 +108,11 @@ jobs:
LDC_VSDIR: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\
HOST_LDC_VERSION: 1.23.0
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Download docs artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: docs
path: docs/
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
cd .. || exit /b
mkdir artifacts || exit /b
copy windows\*.exe artifacts || exit /b
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: win_release
path: artifacts/
6 changes: 3 additions & 3 deletions .github/workflows/test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ jobs:
steps:
- name: Download generated releases from the artifacts
id: download-release
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dmd-release
name: dmd-release-${{ matrix.os }}

- name: Clone installer repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: installer

Expand Down

0 comments on commit 673ccb4

Please sign in to comment.