[VL][CI] Add a nightly build job #1
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
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
name: Velox backend nightly job | ||
on: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/velox_nightly.yml' | ||
schedule: | ||
- cron: '0 0 * * *' | ||
concurrency: | ||
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
jobs: | ||
nightly build on centos: | ||
Check failure on line 30 in .github/workflows/velox_nightly.yml GitHub Actions / Velox backend nightly jobInvalid workflow file
Check failure on line 30 in .github/workflows/velox_nightly.yml GitHub Actions / Velox backend nightly jobInvalid workflow file
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ "centos:7", "centos:8" ] | ||
runs-on: ubuntu-20.04 | ||
container: centos:8 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Update mirror list | ||
if: matrix.os == 'centos:8' | ||
run: | | ||
sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-* || true | ||
sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-* || true | ||
- name: build | ||
run: | | ||
yum install -y epel-release sudo dnf && \ | ||
yum install -y dnf-plugins-core && \ | ||
yum config-manager --set-enabled powertools && \ | ||
dnf --enablerepo=powertools install -y ninja-build && \ | ||
dnf --enablerepo=powertools install -y libdwarf-devel && \ | ||
dnf install -y --setopt=install_weak_deps=False ccache gcc-toolset-9 git wget which libevent-devel openssl-devel re2-devel libzstd-devel lz4-devel double-conversion-devel curl-devel cmake libicu-devel && \ | ||
source /opt/rh/gcc-toolset-9/enable || exit 1 && \ | ||
yum install -y java-1.8.0-openjdk-devel patch && \ | ||
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk && \ | ||
export PATH=$JAVA_HOME/bin:$PATH && \ | ||
wget https://downloads.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz && \ | ||
tar -xvf apache-maven-3.8.8-bin.tar.gz && \ | ||
mv apache-maven-3.8.8 /usr/lib/maven && \ | ||
export MAVEN_HOME=/usr/lib/maven && \ | ||
export PATH=${PATH}:${MAVEN_HOME}/bin && \ | ||
cd $GITHUB_WORKSPACE/ && \ | ||
./dev/package.sh |