mirror of
https://github.com/facebook/rocksdb.git
synced 2024-12-01 07:15:51 +00:00
5a1fb5ccd6
Summary: See new comment in pr-jobs.yml for context. I tried avoiding the massive copy-paste through some trial and error in https://github.com/facebook/rocksdb/issues/12156, but was unsuccessful. Also upgrading actions/setup-python to v5 to fix a warning. Pull Request resolved: https://github.com/facebook/rocksdb/pull/12191 Test Plan: Here's an example of a *bad* run from my fork, prior to this change: https://github.com/pdillinger/rocksdb/actions/runs/7303363126 Here's the "skipped" run associated with this change on my fork: https://github.com/pdillinger/rocksdb/actions/runs/7352251207 Here's the actual run associated with this PR: https://github.com/facebook/rocksdb/actions/runs/7352262420 Reviewed By: ajkr Differential Revision: D52451292 Pulled By: pdillinger fbshipit-source-id: 9e0d3db8a40e3257e6f912a5cba72de76f4827fa
99 lines
3.1 KiB
YAML
99 lines
3.1 KiB
YAML
name: facebook/rocksdb/nightly
|
|
on:
|
|
schedule:
|
|
- cron: 0 9 * * *
|
|
workflow_dispatch:
|
|
jobs:
|
|
build-format-compatible:
|
|
if: ${{ github.repository_owner == 'facebook' }}
|
|
runs-on:
|
|
labels: 16-core-ubuntu
|
|
container:
|
|
image: zjay437/rocksdb:0.6
|
|
options: --shm-size=16gb
|
|
steps:
|
|
- uses: actions/checkout@v4.1.0
|
|
with:
|
|
fetch-depth: 0 # Need full repo history
|
|
fetch-tags: true
|
|
- uses: "./.github/actions/setup-upstream"
|
|
- uses: "./.github/actions/pre-steps"
|
|
- name: test
|
|
run: |-
|
|
export TEST_TMPDIR=/dev/shm/rocksdb
|
|
rm -rf /dev/shm/rocksdb
|
|
mkdir /dev/shm/rocksdb
|
|
git config --global --add safe.directory /__w/rocksdb/rocksdb
|
|
tools/check_format_compatible.sh
|
|
- uses: "./.github/actions/post-steps"
|
|
build-linux-run-microbench:
|
|
if: ${{ github.repository_owner == 'facebook' }}
|
|
runs-on:
|
|
labels: 16-core-ubuntu
|
|
container:
|
|
image: zjay437/rocksdb:0.6
|
|
options: --shm-size=16gb
|
|
steps:
|
|
- uses: actions/checkout@v4.1.0
|
|
- uses: "./.github/actions/pre-steps"
|
|
- run: DEBUG_LEVEL=0 make -j32 run_microbench
|
|
- uses: "./.github/actions/post-steps"
|
|
build-linux-non-shm:
|
|
if: ${{ github.repository_owner == 'facebook' }}
|
|
runs-on:
|
|
labels: 16-core-ubuntu
|
|
container:
|
|
image: zjay437/rocksdb:0.6
|
|
options: --shm-size=16gb
|
|
env:
|
|
TEST_TMPDIR: "/tmp/rocksdb_test_tmp"
|
|
steps:
|
|
- uses: actions/checkout@v4.1.0
|
|
- uses: "./.github/actions/pre-steps"
|
|
- run: make V=1 -j32 check
|
|
- uses: "./.github/actions/post-steps"
|
|
build-linux-clang-13-asan-ubsan-with-folly:
|
|
if: ${{ github.repository_owner == 'facebook' }}
|
|
runs-on:
|
|
labels: 16-core-ubuntu
|
|
container:
|
|
image: zjay437/rocksdb:0.6
|
|
options: --shm-size=16gb
|
|
steps:
|
|
- uses: actions/checkout@v4.1.0
|
|
- uses: "./.github/actions/pre-steps"
|
|
- uses: "./.github/actions/setup-folly"
|
|
- uses: "./.github/actions/build-folly"
|
|
- run: CC=clang-13 CXX=clang++-13 LIB_MODE=static USE_CLANG=1 USE_FOLLY=1 COMPILE_WITH_UBSAN=1 COMPILE_WITH_ASAN=1 make -j32 check
|
|
- uses: "./.github/actions/post-steps"
|
|
build-linux-valgrind:
|
|
if: ${{ github.repository_owner == 'facebook' }}
|
|
runs-on:
|
|
labels: 16-core-ubuntu
|
|
container:
|
|
image: zjay437/rocksdb:0.6
|
|
options: --shm-size=16gb
|
|
steps:
|
|
- uses: actions/checkout@v4.1.0
|
|
- uses: "./.github/actions/pre-steps"
|
|
- run: PORTABLE=1 make V=1 -j32 valgrind_test
|
|
- uses: "./.github/actions/post-steps"
|
|
build-windows-vs2022-avx2:
|
|
if: ${{ github.repository_owner == 'facebook' }}
|
|
runs-on: windows-2022
|
|
env:
|
|
CMAKE_GENERATOR: Visual Studio 17 2022
|
|
CMAKE_PORTABLE: AVX2
|
|
steps:
|
|
- uses: actions/checkout@v4.1.0
|
|
- uses: "./.github/actions/windows-build-steps"
|
|
build-windows-vs2022:
|
|
if: ${{ github.repository_owner == 'facebook' }}
|
|
runs-on: windows-2022
|
|
env:
|
|
CMAKE_GENERATOR: Visual Studio 17 2022
|
|
CMAKE_PORTABLE: 1
|
|
steps:
|
|
- uses: actions/checkout@v4.1.0
|
|
- uses: "./.github/actions/windows-build-steps"
|