Re-add PHOTON_BUILD_DEPENDENCIES in x86 CI workflow #291
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
name: Linux x86_64 | |
on: | |
push: | |
branches: [ "main", "release/*" ] | |
pull_request: | |
branches: [ "main", "release/*" ] | |
jobs: | |
gcc850: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/alibaba/photon-ut-base:latest | |
options: --cpus 4 --privileged | |
steps: | |
- uses: szenius/[email protected] | |
with: | |
timezoneLinux: "Asia/Shanghai" | |
timezoneMacos: "Asia/Shanghai" | |
timezoneWindows: "China Standard Time" | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
cmake -B build -D CMAKE_BUILD_TYPE=MinSizeRel \ | |
-D PHOTON_ENABLE_ECOSYSTEM=ON \ | |
-D PHOTON_BUILD_TESTING=ON \ | |
-D PHOTON_ENABLE_SASL=ON \ | |
-D PHOTON_ENABLE_FUSE=ON \ | |
-D PHOTON_ENABLE_URING=ON \ | |
-D PHOTON_ENABLE_EXTFS=ON | |
cmake --build build -j $(nproc) -- VERBOSE=1 | |
- name: Test epoll | |
run: | | |
cd build && ctest -E test-lockfree --timeout 3600 -V | |
- name: Test io_uring | |
run: | | |
export PHOTON_CI_EV_ENGINE=io_uring | |
cd build && ctest -E test-lockfree --timeout 3600 -V | |
- name: Test epoll_ng | |
run: | | |
export PHOTON_CI_EV_ENGINE=epoll_ng | |
cd build && ctest -E test-lockfree --timeout 3600 -V | |
gcc921: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/alibaba/photon-ut-base:latest | |
options: --cpus 4 --privileged | |
steps: | |
- uses: szenius/[email protected] | |
with: | |
timezoneLinux: "Asia/Shanghai" | |
timezoneMacos: "Asia/Shanghai" | |
timezoneWindows: "China Standard Time" | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
source /opt/rh/gcc-toolset-9/enable | |
cmake -B build -D CMAKE_BUILD_TYPE=MinSizeRel \ | |
-D PHOTON_ENABLE_ECOSYSTEM=ON \ | |
-D PHOTON_BUILD_TESTING=ON \ | |
-D PHOTON_ENABLE_SASL=ON \ | |
-D PHOTON_ENABLE_FUSE=ON \ | |
-D PHOTON_ENABLE_URING=ON \ | |
-D PHOTON_ENABLE_EXTFS=ON | |
cmake --build build -j $(nproc) -- VERBOSE=1 | |
- name: Test epoll | |
run: | | |
cd build && ctest -E test-lockfree --timeout 3600 -V | |
- name: Test io_uring | |
run: | | |
export PHOTON_CI_EV_ENGINE=io_uring | |
cd build && ctest -E test-lockfree --timeout 3600 -V | |
- name: Test epoll_ng | |
run: | | |
export PHOTON_CI_EV_ENGINE=epoll_ng | |
cd build && ctest -E test-lockfree --timeout 3600 -V | |
gcc1031: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/alibaba/photon-ut-base:latest | |
options: --cpus 4 --privileged | |
steps: | |
- uses: szenius/[email protected] | |
with: | |
timezoneLinux: "Asia/Shanghai" | |
timezoneMacos: "Asia/Shanghai" | |
timezoneWindows: "China Standard Time" | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
source /opt/rh/gcc-toolset-10/enable | |
cmake -B build -D CMAKE_BUILD_TYPE=MinSizeRel \ | |
-D PHOTON_ENABLE_ECOSYSTEM=ON \ | |
-D PHOTON_BUILD_TESTING=ON \ | |
-D PHOTON_ENABLE_SASL=ON \ | |
-D PHOTON_ENABLE_FUSE=ON \ | |
-D PHOTON_ENABLE_URING=ON \ | |
-D PHOTON_ENABLE_EXTFS=ON | |
cmake --build build -j $(nproc) -- VERBOSE=1 | |
- name: Test epoll | |
run: | | |
cd build && ctest -E test-lockfree --timeout 3600 -V | |
- name: Test io_uring | |
run: | | |
export PHOTON_CI_EV_ENGINE=io_uring | |
cd build && ctest -E test-lockfree --timeout 3600 -V | |
- name: Test epoll_ng | |
run: | | |
export PHOTON_CI_EV_ENGINE=epoll_ng | |
cd build && ctest -E test-lockfree --timeout 3600 -V | |
gcc1121: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/alibaba/photon-ut-base:latest | |
options: --cpus 4 --privileged | |
steps: | |
- uses: szenius/[email protected] | |
with: | |
timezoneLinux: "Asia/Shanghai" | |
timezoneMacos: "Asia/Shanghai" | |
timezoneWindows: "China Standard Time" | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
source /opt/rh/gcc-toolset-11/enable | |
cmake -B build -D CMAKE_BUILD_TYPE=MinSizeRel \ | |
-D PHOTON_ENABLE_ECOSYSTEM=ON \ | |
-D PHOTON_BUILD_TESTING=ON \ | |
-D PHOTON_ENABLE_SASL=ON \ | |
-D PHOTON_ENABLE_FUSE=ON \ | |
-D PHOTON_ENABLE_URING=ON \ | |
-D PHOTON_ENABLE_EXTFS=ON | |
cmake --build build -j $(nproc) -- VERBOSE=1 | |
- name: Test epoll | |
run: | | |
cd build && ctest -E test-lockfree --timeout 3600 -V | |
- name: Test io_uring | |
run: | | |
export PHOTON_CI_EV_ENGINE=io_uring | |
cd build && ctest -E test-lockfree --timeout 3600 -V | |
- name: Test epoll_ng | |
run: | | |
export PHOTON_CI_EV_ENGINE=epoll_ng | |
cd build && ctest -E test-lockfree --timeout 3600 -V | |
gcc1211: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/alibaba/photon-ut-base:latest | |
options: --cpus 4 --privileged | |
steps: | |
- uses: szenius/[email protected] | |
with: | |
timezoneLinux: "Asia/Shanghai" | |
timezoneMacos: "Asia/Shanghai" | |
timezoneWindows: "China Standard Time" | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
source /opt/rh/gcc-toolset-12/enable | |
cmake -B build -D CMAKE_BUILD_TYPE=MinSizeRel \ | |
-D PHOTON_ENABLE_ECOSYSTEM=ON \ | |
-D PHOTON_BUILD_TESTING=ON \ | |
-D PHOTON_ENABLE_SASL=ON \ | |
-D PHOTON_ENABLE_FUSE=ON \ | |
-D PHOTON_ENABLE_URING=ON \ | |
-D PHOTON_ENABLE_EXTFS=ON | |
cmake --build build -j $(nproc) -- VERBOSE=1 | |
- name: Test epoll | |
run: | | |
cd build && ctest -E test-lockfree --timeout 3600 -V | |
- name: Test io_uring | |
run: | | |
export PHOTON_CI_EV_ENGINE=io_uring | |
cd build && ctest -E test-lockfree --timeout 3600 -V | |
- name: Test epoll_ng | |
run: | | |
export PHOTON_CI_EV_ENGINE=epoll_ng | |
cd build && ctest -E test-lockfree --timeout 3600 -V | |
debug-build-from-source: | |
runs-on: ubuntu-latest | |
container: | |
image: almalinux:8 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
dnf -q -y install git gcc-c++ cmake gcc-toolset-9-gcc-c++ openssl-devel libcurl-devel | |
dnf -q -y install autoconf automake libtool | |
source /opt/rh/gcc-toolset-9/enable | |
cmake -B build -D CMAKE_BUILD_TYPE=Debug \ | |
-D PHOTON_ENABLE_ECOSYSTEM=ON \ | |
-D PHOTON_BUILD_TESTING=ON \ | |
-D PHOTON_ENABLE_SASL=OFF \ | |
-D PHOTON_ENABLE_FUSE=OFF \ | |
-D PHOTON_ENABLE_URING=ON \ | |
-D PHOTON_ENABLE_EXTFS=OFF \ | |
-D PHOTON_BUILD_DEPENDENCIES=ON \ | |
-D PHOTON_OPENSSL_SOURCE="" \ | |
-D PHOTON_CURL_SOURCE="" | |
cmake --build build -j $(nproc) -- VERBOSE=1 | |
fstack: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/alibaba/photon-ut-fstack:latest | |
options: --cpus 4 --privileged | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
cmake -B build -D CMAKE_BUILD_TYPE=MinSizeRel \ | |
-D PHOTON_BUILD_TESTING=ON \ | |
-D PHOTON_ENABLE_FSTACK_DPDK=ON | |
cmake --build build -j $(nproc) -t fstack-dpdk-demo | |
RocksDB: | |
runs-on: ubuntu-latest | |
container: | |
image: almalinux:8 | |
options: --cpus 4 --privileged | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
export PHOTON_SRC_DIR=`pwd` | |
dnf install -q -y git gcc-c++ cmake openssl-devel libcurl-devel libaio-devel zlib-devel epel-release | |
dnf config-manager --set-enabled powertools | |
dnf install -q -y gflags-devel snappy-devel zlib-devel bzip2-devel lz4-devel libzstd-devel | |
git clone -b photon-on-6.1.2 https://github.com/data-accelerator/rocksdb.git /opt/rocksdb | |
cd /opt/rocksdb | |
rm -rf third-party/PhotonLibOS | |
ln -s $PHOTON_SRC_DIR third-party/PhotonLibOS | |
./photon-auto-convert.sh | |
cmake -B build -D WITH_TESTS=on -D INIT_PHOTON_IN_ENV=on -D WITH_LZ4=on -D WITH_SNAPPY=on \ | |
-D CMAKE_BUILD_TYPE=Debug | |
cmake --build build -j `nproc` |