-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up the 2.4 branch of the yugabyte-db-thirdparty repo (#64)
- Branch off of the commit 45c97f4, which is the thirdparty commit used in the 2.4 branch of yugabyte/yugabyte-db ( https://github.com/yugabyte/yugabyte-db/tree/2.4 ), which is at the commit yugabyte/yugabyte-db@bcf406c as of this writing. - GitHub Actions setup similar to the master branch of the yugabyte-db-thirdparty repo (as of the 6a4d8d4 commit). - Downgrade gperftools to 2.7. - Fix the Boost source tarball download URL. - Remove the unused multi_build.py / MultiBuilder functionality. - Add various possible checksums that we might later need to thirdparty_src_checksums.txt. - Use the codecheck tool for running mypy on Python code and shellcheck on Bash code.
- Loading branch information
Showing
18 changed files
with
212 additions
and
392 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
df -H . | ||
checkout_dir=$PWD | ||
echo "Building in directory: $checkout_dir" | ||
docker run -t \ | ||
--cap-add=SYS_PTRACE \ | ||
-e GITHUB_TOKEN \ | ||
-e YB_BUILD_THIRDPARTY_ARGS \ | ||
-e YB_THIRDPARTY_ARCHIVE_NAME_SUFFIX \ | ||
"--mount=type=bind,src=$checkout_dir,dst=/opt/yb-build/thirdparty/checkout" \ | ||
"$YB_DOCKER_IMAGE" \ | ||
bash -c " | ||
set -euo pipefail | ||
cd /opt/yb-build/thirdparty/checkout | ||
./build_and_release.sh | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
name: Linux | ||
|
||
# TODO: deduplicate this across multiple workflow files. | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- 2.4 | ||
|
||
paths-ignore: | ||
- README.md | ||
|
||
# Run tests for any PRs. | ||
pull_request: | ||
branches: | ||
- master | ||
- 2.4 | ||
|
||
paths-ignore: | ||
- README.md | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.archive_name_suffix }} | ||
runs-on: ubuntu-20.04 | ||
if: > | ||
(github.event_name == 'push' && | ||
!contains(github.event.head_commit.message, 'skip ci') && | ||
!contains(github.event.head_commit.message, 'ci skip')) || | ||
github.event_name == 'pull_request' | ||
strategy: | ||
# To avoid terminating all jobs when one job fails. | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- name: centos7-linuxbrew-gcc5 | ||
archive_name_suffix: centos7-linuxbrew | ||
docker_image: yugabyteci/yb_build_infra_centos7:v2021-03-26T05_02_29 | ||
build_thirdparty_args: "--toolchain=linuxbrew" | ||
|
||
- name: centos7-gcc-devtoolset-8 | ||
archive_name_suffix: centos7-devtoolset-8 | ||
docker_image: yugabyteci/yb_build_infra_centos7:v2021-03-26T05_02_29 | ||
build_thirdparty_args: "--devtoolset=8" | ||
|
||
- name: centos7-gcc-devtoolset-9 | ||
archive_name_suffix: centos7-devtoolset-9 | ||
docker_image: yugabyteci/yb_build_infra_centos7:v2021-03-26T05_02_29 | ||
build_thirdparty_args: "--devtoolset=9" | ||
|
||
- name: centos7-clang11 | ||
archive_name_suffix: centos7-clang11 | ||
docker_image: yugabyteci/yb_build_infra_centos7:v2021-03-26T05_02_29 | ||
build_thirdparty_args: --toolchain=llvm11 | ||
|
||
- name: ubuntu1804-gcc7 | ||
archive_name_suffix: ubuntu1804-gcc7 | ||
docker_image: yugabyteci/yb_build_infra_ubuntu1804:v2021-03-26T05_02_28 | ||
build_thirdparty_args: >- | ||
--compiler-prefix=/usr | ||
--single-compiler-type=gcc | ||
--compiler-suffix=-7 | ||
- name: ubuntu1804-gcc8 | ||
archive_name_suffix: ubuntu1804-gcc8 | ||
docker_image: yugabyteci/yb_build_infra_ubuntu1804:v2021-03-26T05_02_28 | ||
build_thirdparty_args: >- | ||
--compiler-prefix=/usr | ||
--single-compiler-type=gcc | ||
--compiler-suffix=-8 | ||
- name: ubuntu1804-clang10 | ||
archive_name_suffix: ubuntu1804-clang10 | ||
docker_image: yugabyteci/yb_build_infra_ubuntu1804:v2021-03-26T05_02_28 | ||
build_thirdparty_args: >- | ||
--single-compiler-type=clang | ||
--compiler-prefix=/usr | ||
--compiler-suffix=-10 | ||
- name: ubuntu1804-clang11 | ||
archive_name_suffix: ubuntu1804-clang11 | ||
docker_image: yugabyteci/yb_build_infra_ubuntu1804:v2021-03-26T05_02_28 | ||
build_thirdparty_args: >- | ||
--single-compiler-type=clang | ||
--compiler-prefix=/usr | ||
--compiler-suffix=-11 | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: Build | ||
run: ./.github/workflows/linux_build.sh | ||
env: | ||
YB_DOCKER_IMAGE: ${{ matrix.docker_image }} | ||
YB_THIRDPARTY_ARCHIVE_NAME_SUFFIX: ${{ matrix.archive_name_suffix }} | ||
YB_BUILD_THIRDPARTY_ARGS: ${{ matrix.build_thirdparty_args }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
brew install autoconf automake pkg-config shellcheck | ||
dirs=( /opt/yb-build/{thirdparty,brew,tmp} ) | ||
sudo mkdir -p "${dirs[@]}" | ||
sudo chmod 777 "${dirs[@]}" | ||
./build_and_release.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,6 @@ prebuilt_downloads/ | |
src/ | ||
venv/ | ||
.pyre | ||
archive.tar.gz | ||
archive.tar.gz.sha256 | ||
fossa_modules.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.