Disable uploads for build types that we are not using in CI or development #678
Workflow file for this run
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
fname: ci | ||
on: | ||
push: | ||
branches: | ||
- master | ||
# Not all of these branches might exist. | ||
- 2.4 | ||
- 2.6 | ||
- 2.8 | ||
- 2.10 | ||
- 2.12 | ||
- 2.14 | ||
- 2.16 | ||
- 2.17.3 | ||
- 2.18 | ||
paths-ignore: | ||
- README.md | ||
# Run tests for any PRs. | ||
pull_request: | ||
branches: | ||
- master | ||
- 2.14 | ||
- 2.16 | ||
- 2.17.3 | ||
- 2.18 | ||
paths-ignore: | ||
- README.md | ||
jobs: | ||
build: | ||
name: ${{ matrix.name }} | ||
runs-on: ${{ matrix.os }} | ||
if: > | ||
(github.event_name == 'push' && | ||
!contains(github.event.head_commit.message, 'skip ci') && | ||
!contains(github.event.head_commit.message, 'ci skip') && | ||
!contains(github.event.head_commit.message, 'skip github actions')) || | ||
github.event_name == 'pull_request' | ||
strategy: | ||
# To avoid terminating all jobs when one job fails. | ||
fail-fast: false | ||
matrix: | ||
include: | ||
# --------------------------------------------------------------------------------------- | ||
# CentOS 7 | ||
# --------------------------------------------------------------------------------------- | ||
# GCC 11 | ||
- name: centos7-x86_64-gcc11 | ||
os: ubuntu-20.04 # Ubuntu 20.04 is for the top-level VM only. We use Docker in it. | ||
docker_image: yugabyteci/yb_build_infra_centos7_x86_64:v2023-10-25T03_33_02 | ||
build_thirdparty_args: >- | ||
--devtoolset=11 | ||
--expected-major-compiler-version=11 | ||
upload: true | ||
# Clang 16 | ||
- name: centos7-x86_64-clang16 | ||
os: ubuntu-20.04 # Ubuntu 20.04 is for the top-level VM only. We use Docker in it. | ||
docker_image: yugabyteci/yb_build_infra_centos7_x86_64:v2023-10-25T03_33_02 | ||
build_thirdparty_args: >- | ||
--toolchain=llvm16 | ||
--expected-major-compiler-version=16 | ||
upload: true | ||
- name: centos7-x86_64-clang16-full-lto | ||
os: ubuntu-20.04 # Ubuntu 20.04 is for the top-level VM only. We use Docker in it. | ||
docker_image: yugabyteci/yb_build_infra_centos7_x86_64:v2023-10-25T03_33_02 | ||
build_thirdparty_args: >- | ||
--toolchain=llvm16 | ||
--expected-major-compiler-version=16 | ||
--lto=full | ||
--skip-sanitizers | ||
upload: true | ||
# Clang 17 | ||
- name: centos7-x86_64-clang17 | ||
os: ubuntu-20.04 # Ubuntu 20.04 is for the top-level VM only. We use Docker in it. | ||
docker_image: yugabyteci/yb_build_infra_centos7_x86_64:v2023-10-25T03_33_02 | ||
build_thirdparty_args: >- | ||
--toolchain=llvm17 | ||
--expected-major-compiler-version=17 | ||
upload: true | ||
- name: centos7-x86_64-clang17-full-lto | ||
os: ubuntu-20.04 # Ubuntu 20.04 is for the top-level VM only. We use Docker in it. | ||
docker_image: yugabyteci/yb_build_infra_centos7_x86_64:v2023-10-25T03_33_02 | ||
build_thirdparty_args: >- | ||
--toolchain=llvm17 | ||
--expected-major-compiler-version=17 | ||
--lto=full | ||
--skip-sanitizers | ||
upload: true | ||
# --------------------------------------------------------------------------------------- | ||
# Ubuntu 20.04 | ||
# --------------------------------------------------------------------------------------- | ||
- name: ubuntu2004-x86_64-clang16 | ||
os: ubuntu-20.04 # Ubuntu 20.04 is for the top-level VM only. We use Docker in it. | ||
docker_image: yugabyteci/yb_build_infra_ubuntu2004_x86_64:v2023-10-25T03_33_01 | ||
build_thirdparty_args: >- | ||
--toolchain=llvm16 | ||
--expected-major-compiler-version=16 | ||
upload: true | ||
# --------------------------------------------------------------------------------------- | ||
# Ubuntu 22.04 | ||
# --------------------------------------------------------------------------------------- | ||
- name: ubuntu2204-x86_64-gcc11 | ||
os: ubuntu-20.04 # Ubuntu 20.04 is for the top-level VM only. We use Docker in it. | ||
docker_image: yugabyteci/yb_build_infra_ubuntu2204_x86_64:v2023-10-25T03_33_00 | ||
build_thirdparty_args: >- | ||
--compiler-prefix=/usr | ||
--compiler-family=gcc | ||
--compiler-suffix=-11 | ||
--expected-major-compiler-version=11 | ||
# We can use the CentOS 7 GCC 11 build on Ubuntu 22.04. | ||
upload: false | ||
- name: ubuntu2204-x86_64-clang16 | ||
os: ubuntu-20.04 # Ubuntu 20.04 is for the top-level VM only. We use Docker in it. | ||
docker_image: yugabyteci/yb_build_infra_ubuntu2204_x86_64:v2023-10-25T03_33_00 | ||
build_thirdparty_args: >- | ||
--toolchain=llvm16 | ||
--expected-major-compiler-version=16 | ||
# We can use the CentOS 7 Clang 16 build on Ubuntu 22.04. | ||
upload: false | ||
- name: ubuntu2204-x86_64-clang17 | ||
os: ubuntu-20.04 # Ubuntu 20.04 is for the top-level VM only. We use Docker in it. | ||
docker_image: yugabyteci/yb_build_infra_ubuntu2204_x86_64:v2023-10-25T03_33_00 | ||
build_thirdparty_args: >- | ||
--toolchain=llvm17 | ||
--expected-major-compiler-version=17 | ||
# We can use the CentOS 7 Clang 17 build on Ubuntu 22.04. | ||
upload: false | ||
# --------------------------------------------------------------------------------------- | ||
# AlmaLinux 8 | ||
# --------------------------------------------------------------------------------------- | ||
- name: almalinux8-x86_64-gcc11 | ||
os: ubuntu-20.04 # Ubuntu 20.04 is for the top-level VM only. We use Docker in it. | ||
docker_image: yugabyteci/yb_build_infra_almalinux8_x86_64:v2023-10-25T03_33_01 | ||
build_thirdparty_args: >- | ||
--devtoolset=11 | ||
--expected-major-compiler-version=11 | ||
# We can use the CentOS 7 GCC 11 build on AlmaLinux 8. | ||
upload: false | ||
# Clang/LLVM 16 | ||
- name: almalinux8-x86_64-clang16 | ||
os: ubuntu-20.04 # Ubuntu 20.04 is for the top-level VM only. We use Docker in it. | ||
docker_image: yugabyteci/yb_build_infra_almalinux8_x86_64:v2023-10-25T03_33_01 | ||
build_thirdparty_args: >- | ||
--toolchain=llvm16 | ||
--expected-major-compiler-version=16 | ||
upload: true | ||
# Clang/LLVM 17 | ||
- name: almalinux8-x86_64-clang17 | ||
os: ubuntu-20.04 # Ubuntu 20.04 is for the top-level VM only. We use Docker in it. | ||
docker_image: yugabyteci/yb_build_infra_almalinux8_x86_64:v2023-10-25T03_33_01 | ||
build_thirdparty_args: >- | ||
--toolchain=llvm17 | ||
--expected-major-compiler-version=17 | ||
upload: true | ||
# --------------------------------------------------------------------------------------- | ||
# Ubuntu 23.04 | ||
# --------------------------------------------------------------------------------------- | ||
- name: ubuntu2304-x86_64-gcc13 | ||
os: ubuntu-20.04 # Ubuntu 20.04 is for the top-level VM only. We use Docker in it. | ||
docker_image: yugabyteci/yb_build_infra_ubuntu2304_x86_64:v2023-10-25T03_33_00 | ||
build_thirdparty_args: >- | ||
--compiler-prefix=/usr | ||
--compiler-suffix=-13 | ||
--compiler-family=gcc | ||
--expected-major-compiler-version=13 | ||
upload: true | ||
# --------------------------------------------------------------------------------------- | ||
# AlmaLinux 9 | ||
# --------------------------------------------------------------------------------------- | ||
- name: almalinux9-x86_64-gcc12 | ||
os: ubuntu-20.04 # Ubuntu 20.04 is for the top-level VM only. We use Docker in it. | ||
docker_image: yugabyteci/yb_build_infra_almalinux9_x86_64:v2023-10-25T03_33_02 | ||
build_thirdparty_args: >- | ||
--devtoolset=12 | ||
--expected-major-compiler-version=12 | ||
upload: false | ||
- name: almalinux9-x86_64-clang16 | ||
os: ubuntu-20.04 # Ubuntu 20.04 is for the top-level VM only. We use Docker in it. | ||
docker_image: yugabyteci/yb_build_infra_almalinux9_x86_64:v2023-10-25T03_33_02 | ||
build_thirdparty_args: >- | ||
--toolchain=llvm16 | ||
--expected-major-compiler-version=16 | ||
upload: false | ||
- name: almalinux9-x86_64-clang17 | ||
os: ubuntu-20.04 # Ubuntu 20.04 is for the top-level VM only. We use Docker in it. | ||
docker_image: yugabyteci/yb_build_infra_almalinux9_x86_64:v2023-10-25T03_33_02 | ||
build_thirdparty_args: >- | ||
--toolchain=llvm17 | ||
--expected-major-compiler-version=17 | ||
upload: false | ||
# --------------------------------------------------------------------------------------- | ||
# macOS | ||
# --------------------------------------------------------------------------------------- | ||
- name: macos-x86_64 | ||
os: macos-12 | ||
docker_image: | ||
build_thirdparty_args: | ||
upload: true | ||
steps: | ||
- name: Increase disk space | ||
run: | | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf "/usr/local/share/boost" | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
with: | ||
# We need to fetch all history because we are cloning the checkout directory further | ||
# in test code. | ||
fetch-depth: 0 | ||
- name: Build | ||
run: .github/workflows/github_actions_build.sh | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }} | ||
SNYK_TOKEN: ${{ secrets.SNYK_AUTH_TOKEN }} | ||
YB_BUILD_THIRDPARTY_ARGS: ${{ matrix.build_thirdparty_args }} | ||
YB_DOCKER_IMAGE: ${{ matrix.docker_image }} | ||
YB_THIRDPARTY_ARCHIVE_NAME_SUFFIX: ${{ matrix.name }} | ||
YB_UPLOAD_THIRDPARTY_ARCHIVE: ${{ matrix.upload }} | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: yugabyte-db-thirdparty-${{ matrix.name }}.tar.gz | ||
path: archive.tar.gz | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: yugabyte-db-thirdparty-${{ matrix.name }}.tar.gz.sha256 | ||
path: archive.tar.gz.sha256 |