[wip] Feature/gtid memory mode #1738
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: CI | |
on: | |
push: | |
branches: [ xredis_2_ror ] | |
pull_request: | |
branches: [ xredis_2_ror ] | |
jobs: | |
unit: | |
strategy: | |
matrix: | |
platform: [ubuntu-24.04] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: get rocksdb sha | |
id: rocksdb-sha | |
run: | | |
ROCKSDB_SHA=$(cd deps/rocksdb && git rev-parse HEAD) | |
echo "ROCKSDB_SHA is $ROCKSDB_SHA" | |
echo "ROCKSDB_SHA=$ROCKSDB_SHA" >> $GITHUB_ENV | |
shell: bash | |
- name: cache rocksdb | |
id: cache-rocksdb | |
uses: actions/cache@v3 | |
with: | |
path: deps/rocksdb | |
key: ${{ runner.os }}-rocksdb-${{ env.ROCKSDB_SHA }} | |
- name: unit-test | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install libsnappy-dev zlib1g-dev libstdc++6 | |
make SWAP=1 unit-test -j8 | |
mem: | |
strategy: | |
matrix: | |
platform: [ubuntu-24.04] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: get rocksdb sha | |
id: rocksdb-sha | |
run: | | |
ROCKSDB_SHA=$(cd deps/rocksdb && git rev-parse HEAD) | |
echo "ROCKSDB_SHA is $ROCKSDB_SHA" | |
echo "ROCKSDB_SHA=$ROCKSDB_SHA" >> $GITHUB_ENV | |
shell: bash | |
- name: cache rocksdb | |
id: cache-rocksdb | |
uses: actions/cache@v3 | |
with: | |
path: deps/rocksdb | |
key: ${{ runner.os }}-rocksdb-${{ env.ROCKSDB_SHA }} | |
- name: make | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install libsnappy-dev zlib1g-dev libstdc++6 | |
make -j8 | |
- name: make test | |
run: make test | |
swap: | |
strategy: | |
matrix: | |
platform: [ubuntu-24.04] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: get rocksdb sha | |
id: rocksdb-sha | |
run: | | |
ROCKSDB_SHA=$(cd deps/rocksdb && git rev-parse HEAD) | |
echo "ROCKSDB_SHA is $ROCKSDB_SHA" | |
echo "ROCKSDB_SHA=$ROCKSDB_SHA" >> $GITHUB_ENV | |
shell: bash | |
- name: cache rocksdb | |
id: cache-rocksdb | |
uses: actions/cache@v3 | |
with: | |
path: deps/rocksdb | |
key: ${{ runner.os }}-rocksdb-${{ env.ROCKSDB_SHA }} | |
- name: make | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install libsnappy-dev zlib1g-dev libstdc++6 | |
make SWAP=1 -j8 | |
- name: make test | |
run: make SWAP=1 test | |
swap-asan: | |
strategy: | |
matrix: | |
platform: [ubuntu-24.04] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: get rocksdb sha | |
id: rocksdb-sha | |
run: | | |
ROCKSDB_SHA=$(cd deps/rocksdb && git rev-parse HEAD) | |
echo "ROCKSDB_SHA is $ROCKSDB_SHA" | |
echo "ROCKSDB_SHA=$ROCKSDB_SHA" >> $GITHUB_ENV | |
shell: bash | |
- name: cache rocksdb | |
id: cache-rocksdb | |
uses: actions/cache@v3 | |
with: | |
path: deps/rocksdb | |
key: ${{ runner.os }}-rocksdb-${{ env.ROCKSDB_SHA }} | |
- name: make | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install libsnappy-dev zlib1g-dev libstdc++6 | |
make SWAP=1 SANTIZER=address -j8 | |
- name: make test | |
run: make SWAP=1 test | |