Skip to content

Commit

Permalink
Merge pull request redis#238 from szadam/4.0.0-devel
Browse files Browse the repository at this point in the history
[4.0.0] add tarball tests
  • Loading branch information
PatKamin committed Oct 6, 2022
2 parents 3088f1e + c4eb8ab commit afefd66
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,49 @@ on: [push, pull_request]

jobs:

test-tarball:
runs-on: ubuntu-22.04
name: Test tarball | Compiler ${{ matrix.env.cc }}
strategy:
matrix:
env:
- { cc: gcc, cxx: g++}
- { cc: clang, cxx: clang++}

steps:

- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive

- id: get-tarball-name
run: echo "::set-output name=tarball-name::$(git describe --tags --match "[1-9].[0-9].[0-9]*")"

- name: Install memkind build dependencies
run: |
sudo apt-get install libnuma-dev libdaxctl-dev
- name: Build TieredMemDB
run: make

- name: Build tarball
run: make git-tarball

- name: Build from tarball
run: |
cd ..
tar -xJf tmdb-redis-${{ steps.get-tarball-name.outputs.tarball-name }}.tar.xz
cd tmdb-redis-${{ steps.get-tarball-name.outputs.tarball-name }}
make
- name: Default tests
run: make test

- name: Pmem tests
run: MEMKIND_DAX_KMEM_NODES=0 ./runtest --pmem-ratio

test-ubuntu-latest:
runs-on: ubuntu-20.04
name: Allocator ${{ matrix.allocator }} | Compiler ${{ matrix.env.cc }}
Expand Down

0 comments on commit afefd66

Please sign in to comment.