-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Build CMake generated makefiles * Simplify and update checkout * Update CI workflow 'C/C++ CI' * Some corrections of spelling and naming. * Remove running on branch dev since not officially available.
- Loading branch information
Showing
2 changed files
with
29 additions
and
57 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,25 +2,23 @@ name: C/C++ CI | |
|
||
on: | ||
push: | ||
branches: [ master, dev ] | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
full-build: | ||
name: Build all, plus default examples, run tests against redis | ||
|
||
runs-on: ubuntu-latest | ||
env: | ||
# the docker image used by the test.sh | ||
REDIS_DOCKER: redis:alpine | ||
|
||
steps: | ||
|
||
- name: install prerequisites | ||
- name: Install prerequisites | ||
run: sudo apt-get update && sudo apt-get install -y libev-dev libevent-dev libglib2.0-dev libssl-dev valgrind | ||
- uses: actions/checkout@v2 | ||
- name: run make | ||
- uses: actions/checkout@v3 | ||
- name: Run make | ||
run: make all examples | ||
- name: Run unittests | ||
run: make check | ||
|
@@ -29,15 +27,15 @@ jobs: | |
TEST_PREFIX: valgrind --error-exitcode=100 | ||
SKIPS_ARG: --skip-throughput | ||
run: make check | ||
|
||
build-32-bit: | ||
name: Build and test minimal 32 bit linux | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: install prerequisites | ||
- name: Install prerequisites | ||
run: sudo apt-get update && sudo apt-get install gcc-multilib | ||
- uses: actions/checkout@v2 | ||
- name: run make | ||
- uses: actions/checkout@v3 | ||
- name: Run make | ||
run: make all | ||
env: | ||
PLATFORM_FLAGS: -m32 | ||
|
@@ -60,14 +58,14 @@ jobs: | |
emulator: qemu-aarch64 | ||
|
||
steps: | ||
- name: install qemu | ||
- name: Install qemu | ||
if: matrix.emulator | ||
run: sudo apt-get install -y qemu-user | ||
- name: install ploatform toolset | ||
run: sudo apt-get install -y qemu-user | ||
- name: Install platform toolset | ||
if: matrix.toolset | ||
run: sudo apt-get install -y gcc-${{matrix.toolset}} | ||
- uses: actions/checkout@v2 | ||
- name: run make | ||
- uses: actions/checkout@v3 | ||
- name: Run make | ||
run: make all | ||
env: | ||
CC: ${{matrix.toolset}}-gcc | ||
|
@@ -83,20 +81,18 @@ jobs: | |
runs-on: windows-latest | ||
steps: | ||
- uses: microsoft/[email protected] | ||
- uses: actions/checkout@v2 | ||
- name: Cmake | ||
- uses: actions/checkout@v3 | ||
- name: Run CMake | ||
run: cmake -Wno-dev CmakeLists.txt | ||
- name: build redis | ||
- name: Build hiredis | ||
run: MSBuild hiredis.vcxproj /p:Configuration=Debug | ||
- name: build redis_static | ||
- name: Build hiredis_static | ||
run: MSBuild hiredis_static.vcxproj /p:Configuration=Debug | ||
- name: build redis-test | ||
- name: Build hiredis-test | ||
run: MSBuild hiredis-test.vcxproj /p:Configuration=Debug | ||
# use memurai, redis compatible server, since it is easy to install. Can't | ||
# install official redis containers on the windows runner | ||
- name: install Memurai redis server | ||
- name: Install Memurai redis server | ||
run: choco install -y memurai-developer.install | ||
- name: run tests | ||
- name: Run tests | ||
run: Debug\hiredis-test.exe | ||
|
||
|