Skip to content

Commit

Permalink
Merge branch 'facebook:main' into update-release-yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatcore authored Oct 18, 2024
2 parents d420424 + 6d7dcb2 commit c036c53
Show file tree
Hide file tree
Showing 11 changed files with 230 additions and 190 deletions.
168 changes: 89 additions & 79 deletions .github/workflows/getdeps_linux.yml

Large diffs are not rendered by default.

140 changes: 73 additions & 67 deletions .github/workflows/getdeps_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,143 +18,149 @@ jobs:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4
- name: Install system deps
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages install-system-deps --recursive watchman
- name: Install Rust Stable
uses: dtolnay/rust-toolchain@stable
- name: Fetch boost
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests boost
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests boost
- name: Fetch ninja
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests ninja
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests ninja
- name: Fetch cmake
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests cmake
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests cmake
- name: Fetch cpptoml
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests cpptoml
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests cpptoml
- name: Fetch fmt
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests fmt
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests fmt
- name: Fetch gflags
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests gflags
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests gflags
- name: Fetch glog
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests glog
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests glog
- name: Fetch googletest
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests googletest
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests googletest
- name: Fetch xxhash
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests xxhash
- name: Fetch zstd
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests zstd
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests zstd
- name: Fetch double-conversion
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests double-conversion
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests double-conversion
- name: Fetch fast_float
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests fast_float
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests fast_float
- name: Fetch libdwarf
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libdwarf
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests libdwarf
- name: Fetch lz4
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests lz4
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests lz4
- name: Fetch openssl
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests openssl
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests openssl
- name: Fetch snappy
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests snappy
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests snappy
- name: Fetch pcre2
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests pcre2
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests pcre2
- name: Fetch python-setuptools
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests python-setuptools
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests python-setuptools
- name: Fetch libevent
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libevent
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests libevent
- name: Fetch liboqs
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests liboqs
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests liboqs
- name: Fetch zlib
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests zlib
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests zlib
- name: Fetch autoconf
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests autoconf
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests autoconf
- name: Fetch automake
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests automake
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests automake
- name: Fetch libtool
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libtool
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests libtool
- name: Fetch libsodium
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libsodium
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests libsodium
- name: Fetch xz
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests xz
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests xz
- name: Fetch folly
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests folly
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests folly
- name: Fetch fizz
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests fizz
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests fizz
- name: Fetch mvfst
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests mvfst
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests mvfst
- name: Fetch wangle
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests wangle
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests wangle
- name: Fetch fbthrift
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests fbthrift
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests fbthrift
- name: Fetch fb303
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests fb303
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests fb303
- name: Fetch edencommon
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests edencommon
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests edencommon
- name: Build boost
run: python3 build/fbcode_builder/getdeps.py build --no-tests boost
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests boost
- name: Build ninja
run: python3 build/fbcode_builder/getdeps.py build --no-tests ninja
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests ninja
- name: Build cmake
run: python3 build/fbcode_builder/getdeps.py build --no-tests cmake
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests cmake
- name: Build cpptoml
run: python3 build/fbcode_builder/getdeps.py build --no-tests cpptoml
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests cpptoml
- name: Build fmt
run: python3 build/fbcode_builder/getdeps.py build --no-tests fmt
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests fmt
- name: Build gflags
run: python3 build/fbcode_builder/getdeps.py build --no-tests gflags
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests gflags
- name: Build glog
run: python3 build/fbcode_builder/getdeps.py build --no-tests glog
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests glog
- name: Build googletest
run: python3 build/fbcode_builder/getdeps.py build --no-tests googletest
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests googletest
- name: Build xxhash
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests xxhash
- name: Build zstd
run: python3 build/fbcode_builder/getdeps.py build --no-tests zstd
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests zstd
- name: Build double-conversion
run: python3 build/fbcode_builder/getdeps.py build --no-tests double-conversion
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests double-conversion
- name: Build fast_float
run: python3 build/fbcode_builder/getdeps.py build --no-tests fast_float
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests fast_float
- name: Build libdwarf
run: python3 build/fbcode_builder/getdeps.py build --no-tests libdwarf
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests libdwarf
- name: Build lz4
run: python3 build/fbcode_builder/getdeps.py build --no-tests lz4
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests lz4
- name: Build openssl
run: python3 build/fbcode_builder/getdeps.py build --no-tests openssl
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests openssl
- name: Build snappy
run: python3 build/fbcode_builder/getdeps.py build --no-tests snappy
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests snappy
- name: Build pcre2
run: python3 build/fbcode_builder/getdeps.py build --no-tests pcre2
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests pcre2
- name: Build python-setuptools
run: python3 build/fbcode_builder/getdeps.py build --no-tests python-setuptools
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests python-setuptools
- name: Build libevent
run: python3 build/fbcode_builder/getdeps.py build --no-tests libevent
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests libevent
- name: Build liboqs
run: python3 build/fbcode_builder/getdeps.py build --no-tests liboqs
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests liboqs
- name: Build zlib
run: python3 build/fbcode_builder/getdeps.py build --no-tests zlib
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests zlib
- name: Build autoconf
run: python3 build/fbcode_builder/getdeps.py build --no-tests autoconf
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests autoconf
- name: Build automake
run: python3 build/fbcode_builder/getdeps.py build --no-tests automake
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests automake
- name: Build libtool
run: python3 build/fbcode_builder/getdeps.py build --no-tests libtool
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests libtool
- name: Build libsodium
run: python3 build/fbcode_builder/getdeps.py build --no-tests libsodium
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests libsodium
- name: Build xz
run: python3 build/fbcode_builder/getdeps.py build --no-tests xz
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests xz
- name: Build folly
run: python3 build/fbcode_builder/getdeps.py build --no-tests folly
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests folly
- name: Build fizz
run: python3 build/fbcode_builder/getdeps.py build --no-tests fizz
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests fizz
- name: Build mvfst
run: python3 build/fbcode_builder/getdeps.py build --no-tests mvfst
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests mvfst
- name: Build wangle
run: python3 build/fbcode_builder/getdeps.py build --no-tests wangle
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests wangle
- name: Build fbthrift
run: python3 build/fbcode_builder/getdeps.py build --no-tests fbthrift
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests fbthrift
- name: Build fb303
run: python3 build/fbcode_builder/getdeps.py build --no-tests fb303
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests fb303
- name: Build edencommon
run: python3 build/fbcode_builder/getdeps.py build --no-tests edencommon
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --no-tests edencommon
- name: Build watchman
run: python3 build/fbcode_builder/getdeps.py build --src-dir=. watchman --project-install-prefix watchman:/usr/local
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages build --src-dir=. watchman --project-install-prefix watchman:/usr/local
- name: Copy artifacts
run: python3 build/fbcode_builder/getdeps.py fixup-dyn-deps --src-dir=. watchman _artifacts/mac --project-install-prefix watchman:/usr/local --final-install-prefix /usr/local
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages fixup-dyn-deps --src-dir=. watchman _artifacts/mac --project-install-prefix watchman:/usr/local --final-install-prefix /usr/local
- uses: actions/upload-artifact@v4
with:
name: watchman
path: _artifacts
- name: Test watchman
run: python3 build/fbcode_builder/getdeps.py test --src-dir=. watchman --project-install-prefix watchman:/usr/local
run: python3 build/fbcode_builder/getdeps.py --allow-system-packages test --src-dir=. watchman --project-install-prefix watchman:/usr/local
4 changes: 4 additions & 0 deletions .github/workflows/getdeps_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
run: python build/fbcode_builder/getdeps.py fetch --no-tests googletest
- name: Fetch libsodium
run: python build/fbcode_builder/getdeps.py fetch --no-tests libsodium
- name: Fetch xxhash
run: python build/fbcode_builder/getdeps.py fetch --no-tests xxhash
- name: Fetch zstd
run: python build/fbcode_builder/getdeps.py fetch --no-tests zstd
- name: Fetch double-conversion
Expand Down Expand Up @@ -103,6 +105,8 @@ jobs:
run: python build/fbcode_builder/getdeps.py build --no-tests googletest
- name: Build libsodium
run: python build/fbcode_builder/getdeps.py build --no-tests libsodium
- name: Build xxhash
run: python build/fbcode_builder/getdeps.py build --no-tests xxhash
- name: Build zstd
run: python build/fbcode_builder/getdeps.py build --no-tests zstd
- name: Build double-conversion
Expand Down
2 changes: 1 addition & 1 deletion build/deps/github_hashes/facebook/fbthrift-rev.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Subproject commit 5ae23ab52d29fec02244a7d50903cf1fb4031ace
Subproject commit 97518207214e89d6db73da63837f4e1dc2b57acf
2 changes: 1 addition & 1 deletion build/deps/github_hashes/facebook/folly-rev.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Subproject commit 452c7438adb67321f99f2bca7395087ef59dd58f
Subproject commit ab576d641d9ae77662e6e54a5db7fbe6d215fa6d
2 changes: 1 addition & 1 deletion build/deps/github_hashes/facebook/wangle-rev.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Subproject commit 95d995a1dc06d5244676f4981393accb205753b3
Subproject commit dd5f918c13d1f4c89519cc76edec50e39c0fdc2b
18 changes: 14 additions & 4 deletions build/fbcode_builder/getdeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,10 @@ def get_run_on(self, args):
def write_job_for_platform(self, platform, args): # noqa: C901
build_opts = setup_build_options(args, platform)
ctx_gen = build_opts.get_context_generator()
if args.enable_tests:
ctx_gen.set_value_for_project(args.project, "test", "on")
else:
ctx_gen.set_value_for_project(args.project, "test", "off")
loader = ManifestLoader(build_opts, ctx_gen)
self.process_project_dir_arguments(args, loader)
manifest = loader.load_manifest(args.project)
Expand Down Expand Up @@ -1081,7 +1085,10 @@ def write_job_for_platform(self, platform, args): # noqa: C901
free_up_disk = ""

allow_sys_arg = ""
if run_tests:
if (
build_opts.allow_system_packages
and build_opts.host_type.get_package_manager()
):
sudo_arg = "sudo "
allow_sys_arg = " --allow-system-packages"
if build_opts.host_type.get_package_manager() == "deb":
Expand All @@ -1092,13 +1099,16 @@ def write_job_for_platform(self, platform, args): # noqa: C901
if build_opts.is_darwin():
# brew is installed as regular user
sudo_arg = ""
tests_arg = "--no-tests "
if run_tests:
tests_arg = ""
out.write(
f" run: {sudo_arg}python3 build/fbcode_builder/getdeps.py --allow-system-packages install-system-deps --recursive {manifest.name}\n"
f" run: {sudo_arg}python3 build/fbcode_builder/getdeps.py --allow-system-packages install-system-deps {tests_arg}--recursive {manifest.name}\n"
)
if build_opts.is_linux() or build_opts.is_freebsd():
out.write(" - name: Install packaging system deps\n")
out.write(
f" run: {sudo_arg}python3 build/fbcode_builder/getdeps.py --allow-system-packages install-system-deps --recursive patchelf\n"
f" run: {sudo_arg}python3 build/fbcode_builder/getdeps.py --allow-system-packages install-system-deps {tests_arg}--recursive patchelf\n"
)
required_locales = manifest.get(
"github.actions", "required_locales", ctx=manifest_ctx
Expand Down Expand Up @@ -1176,7 +1186,7 @@ def write_job_for_platform(self, platform, args): # noqa: C901
no_deps_arg = "--no-deps "

no_tests_arg = ""
if not args.enable_tests:
if not run_tests:
no_tests_arg = "--no-tests "

out.write(
Expand Down
10 changes: 10 additions & 0 deletions build/fbcode_builder/manifests/xxhash
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ sha256 = baee0c6afd4f03165de7a4e67988d16f0f2b257b51d0e3cb91909302a26a79c4
[rpms]
xxhash-devel

[debs]
libxxhash-dev
xxhash

[homebrew]
xxhash

[build.not(os=windows)]
builder = make
subdir = xxHash-0.8.2
Expand All @@ -18,3 +25,6 @@ all
[make.install_args]
install

[build.os=windows]
builder = cmake
subdir = xxHash-0.8.2/cmake_unofficial
Loading

0 comments on commit c036c53

Please sign in to comment.