Nobuild AntPickax CI #213
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
# | |
# K2HDKC DBaaS Command Line Interface - K2HR3 CLI Plugin | |
# | |
# Copyright 2020 Yahoo Japan Corporation. | |
# | |
# K2HDKC DBaaS is a DataBase as a Service provided by Yahoo! JAPAN | |
# which is built K2HR3 as a backend and provides services in | |
# cooperation with OpenStack. | |
# The Override configuration for K2HDKC DBaaS serves to connect the | |
# components that make up the K2HDKC DBaaS. K2HDKC, K2HR3, CHMPX, | |
# and K2HASH are components provided as AntPickax. | |
# | |
# For the full copyright and license information, please view | |
# the license file that was distributed with this source code. | |
# | |
# AUTHOR: Takeshi Nakatani | |
# CREATE: Fri, Nov 13 2020 | |
# REVISION: 1.0 | |
# | |
#------------------------------------------------------------------------------------ | |
# Github Actions | |
#------------------------------------------------------------------------------------ | |
name: Nobuild AntPickax CI | |
# | |
# Events | |
# | |
on: | |
push: | |
pull_request: | |
# | |
# CRON event is fire on every sunday(UTC). | |
# | |
schedule: | |
- cron: '0 15 * * 0' | |
# | |
# Jobs | |
# | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
# | |
# build matrix for containers | |
# | |
strategy: | |
# | |
# do not stop jobs automatically if any of the jobs fail | |
# | |
fail-fast: false | |
# | |
# matrix for containers | |
# | |
matrix: | |
container: | |
- ubuntu:22.04 | |
- ubuntu:20.04 | |
- debian:bookworm | |
- debian:bullseye | |
- debian:buster | |
- rockylinux:9 | |
- rockylinux:8 | |
- centos:centos7 | |
- fedora:39 | |
- fedora:38 | |
- alpine:3.19 | |
- alpine:3.18 | |
container: | |
image: ${{ matrix.container }} | |
steps: | |
# [NOTE] | |
# actions/checkout@v3 uses nodejs v16 and will be deprecated. | |
# However, @v4 does not work on centos7 depending on the glibc version, | |
# so we will continue to use @v3. | |
# | |
- name: Checkout source code(other than centos7) | |
if: matrix.container != 'centos:centos7' | |
uses: actions/checkout@v4 | |
- name: Checkout source code(only centos7) | |
if: matrix.container == 'centos:centos7' | |
uses: actions/checkout@v3 | |
# | |
# Set environments from secrets | |
# | |
# [NOTE] Secrets | |
# Use Secrets of organization or repository as parameters to | |
# pass to build_helper.sh for building and packaging, . | |
# | |
# The available Secret variables are listed below: | |
# OSTYPE_VARS_FILE : specify custom variables file | |
# BUILD_NUMBER : buld number for packaging | |
# DEVELOPER_FULLNAME : developer name for package | |
# DEVELOPER_EMAIL : developer e-mail for package | |
# FORCE_PUBLISH : true means force to publish packages, false means never publish | |
# USE_PACKAGECLOUD_REPO : true means using pacakgecloud.io repo, false is not using | |
# * PACKAGECLOUD_TOKEN : The token for publishing to packagcloud.io | |
# PACKAGECLOUD_OWNER : owner name as a part of path to packagcloud.io for publishing/downloading | |
# PACKAGECLOUD_PUBLISH_REPO : repo name as a part of path to packagcloud.io for publishing | |
# PACKAGECLOUD_DOWNLOAD_REPO : repo name as a part of path to packagcloud.io for downloading | |
# | |
# "PACKAGECLOUD_TOKEN" is a required variable to publish the | |
# package. | |
# | |
- name: Set environments from secrets | |
run: | | |
echo "ENV_OSTYPE_VARS_FILE=${{ secrets.OSTYPE_VARS_FILE }}" >> "${GITHUB_ENV}" | |
echo "ENV_BUILD_NUMBER=${{ secrets.BUILD_NUMBER }}" >> "${GITHUB_ENV}" | |
echo "ENV_DEVELOPER_FULLNAME=${{ secrets.DEVELOPER_FULLNAME }}" >> "${GITHUB_ENV}" | |
echo "ENV_DEVELOPER_EMAIL=${{ secrets.DEVELOPER_EMAIL }}" >> "${GITHUB_ENV}" | |
echo "ENV_FORCE_PUBLISH=${{ secrets.FORCE_PUBLISH }}" >> "${GITHUB_ENV}" | |
echo "ENV_USE_PACKAGECLOUD_REPO=${{ secrets.USE_PACKAGECLOUD_REPO }}" >> "${GITHUB_ENV}" | |
echo "ENV_PACKAGECLOUD_TOKEN=${{ secrets.PACKAGECLOUD_TOKEN }}" >> "${GITHUB_ENV}" | |
echo "ENV_PACKAGECLOUD_OWNER=${{ secrets.PACKAGECLOUD_OWNER }}" >> "${GITHUB_ENV}" | |
echo "ENV_PACKAGECLOUD_PUBLISH_REPO=${{ secrets.PACKAGECLOUD_PUBLISH_REPO }}" >> "${GITHUB_ENV}" | |
echo "ENV_PACKAGECLOUD_DOWNLOAD_REPO=${{ secrets.PACKAGECLOUD_DOWNLOAD_REPO }}" >> "${GITHUB_ENV}" | |
# | |
# Run building and packaging helper | |
# | |
- name: Run building and packaging | |
run: | | |
/bin/sh -c "$GITHUB_WORKSPACE/.github/workflows/build_helper.sh -os ${{ matrix.container }}" | |
# | |
# Local variables: | |
# tab-width: 4 | |
# c-basic-offset: 4 | |
# End: | |
# vim600: expandtab sw=4 ts=4 fdm=marker | |
# vim<600: expandtab sw=4 ts=4 | |
# |