Skip to content

Commit

Permalink
use ubuntu 2204
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Zhou <[email protected]>
  • Loading branch information
zhouyuan committed Feb 6, 2024
1 parent bdc6c29 commit 6f628de
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:

velox-test:
runs-on: self-hosted
container: ubuntu:20.04
container: ubuntu:22.04
steps:
- uses: actions/checkout@v2
- run: apt-get update && apt-get install ca-certificates -y && update-ca-certificates
- run: sed -i 's/http\:\/\/archive.ubuntu.com/https\:\/\/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
- run: apt-get update
- run: TZ=Asia/Shanghai ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
- run: apt-get install -y cmake ccache build-essential ninja-build sudo rpm curl
- run: apt-get install -y cmake ccache build-essential ninja-build sudo rpm curl g++-12
- run: apt-get install -y libboost-all-dev libcurl4-openssl-dev
- run: apt-get install -y libssl-dev flex libfl-dev git openjdk-8-jdk axel *thrift* libkrb5-dev libgsasl7-dev libuuid1 uuid-dev
- run: apt-get install -y libz-dev
Expand All @@ -27,14 +27,7 @@ jobs:
tar xf protobuf-all-21.4.tar.gz
cd protobuf-21.4/cmake
CFLAGS=-fPIC CXXFLAGS=-fPIC cmake .. && make -j && make install
- run: |
axel https://dl.min.io/server/minio/release/linux-amd64/archive/minio_20220526054841.0.0_amd64.deb
dpkg -i minio_20220526054841.0.0_amd64.deb
rm minio_20220526054841.0.0_amd64.deb
- run: |
axel https://archive.apache.org/dist/hadoop/core/hadoop-2.10.1/hadoop-2.10.1.tar.gz
tar xf hadoop-2.10.1.tar.gz -C /usr/local/
- name: Compile C++ unit tests
- name: Compile and run C++ unit tests
run: |
git submodule sync --recursive && git submodule update --init --recursive
sed -i 's/sudo apt/apt/g' ./scripts/setup-ubuntu.sh
Expand All @@ -44,6 +37,7 @@ jobs:
DEPENDENCY_DIR=~/adapter-deps PROMPT_ALWAYS_RESPOND=n ./scripts/setup-adapters.sh gcs aws hdfs
#make debug EXTRA_CMAKE_FLAGS="-DVELOX_ENABLE_PARQUET=ON -DVELOX_BUILD_TESTING=ON -DVELOX_BUILD_TEST_UTILS=ON -DVELOX_ENABLE_HDFS=ON -DVELOX_ENABLE_S3=ON -DVELOX_ENABLE_GCS=ON" AWSSDK_ROOT_DIR=~/adapter-deps/install
#make debug EXTRA_CMAKE_FLAGS="-DVELOX_ENABLE_PARQUET=ON -DVELOX_BUILD_TESTING=ON -DVELOX_BUILD_TEST_UTILS=ON"
export CXX=/usr/bin/g++-12
make EXTRA_CMAKE_FLAGS="-DVELOX_ENABLE_PARQUET=ON -DVELOX_BUILD_TESTING=ON -DVELOX_BUILD_TEST_UTILS=ON"
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64/
export HADOOP_ROOT_LOGGER="WARN,DRFA"
Expand Down

0 comments on commit 6f628de

Please sign in to comment.