Skip to content

Commit

Permalink
Fix actions/upload-artifact deprecation (#2284)
Browse files Browse the repository at this point in the history
Summary:
X-link: facebookincubator/zstrong#970

actions/upload-artifact < v4 is deprecated and will not be supported after November 30, 2024.[1] Migrate to v4 instead -- the API used by fbcode_builder is not changed by this version bump.

[1] https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

Pull Request resolved: #2284

Reviewed By: yfeldblum

Differential Revision: D61730024

Pulled By: Orvid

fbshipit-source-id: 37eb13c6257a233ae170aa44aadeeb35a01568b1
  • Loading branch information
mszabo-wikia authored and facebook-github-bot committed Aug 30, 2024
1 parent ed9ec1a commit 15abaa5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/getdeps_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --src-dir=. folly --project-install-prefix folly:/usr/local
- name: Copy artifacts
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fixup-dyn-deps --strip --src-dir=. folly _artifacts/linux --project-install-prefix folly:/usr/local --final-install-prefix /usr/local
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: folly
path: _artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/getdeps_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --src-dir=. folly --project-install-prefix folly:/usr/local
- name: Copy artifacts
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fixup-dyn-deps --src-dir=. folly _artifacts/mac --project-install-prefix folly:/usr/local --final-install-prefix /usr/local
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: folly
path: _artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/getdeps_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
run: python build/fbcode_builder/getdeps.py build --src-dir=. folly
- name: Copy artifacts
run: python build/fbcode_builder/getdeps.py fixup-dyn-deps --src-dir=. folly _artifacts/windows --final-install-prefix /usr/local
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: folly
path: _artifacts
Expand Down
2 changes: 1 addition & 1 deletion build/fbcode_builder/getdeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ def write_job_for_platform(self, platform, args): # noqa: C901
f"--final-install-prefix /usr/local\n"
)

out.write(" - uses: actions/upload-artifact@v2\n")
out.write(" - uses: actions/upload-artifact@v4\n")
out.write(" with:\n")
out.write(" name: %s\n" % manifest.name)
out.write(" path: _artifacts\n")
Expand Down

0 comments on commit 15abaa5

Please sign in to comment.