-
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.
- Loading branch information
Showing
14 changed files
with
750 additions
and
201 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ on: [push, pull_request] | |
|
||
jobs: | ||
ubuntu: | ||
name: Ubuntu | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
|
@@ -13,7 +14,8 @@ jobs: | |
|
||
- name: Install dependencies | ||
run: | | ||
sudo add-apt-repository -y ppa:chris-lea/redis-server | ||
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg | ||
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list | ||
sudo apt-get update | ||
sudo apt-get install -y redis-server valgrind libevent-dev | ||
|
@@ -40,6 +42,7 @@ jobs: | |
# run: $GITHUB_WORKSPACE/test.sh | ||
|
||
centos7: | ||
name: CentOS 7 | ||
runs-on: ubuntu-latest | ||
container: centos:7 | ||
steps: | ||
|
@@ -79,8 +82,9 @@ jobs: | |
run: $GITHUB_WORKSPACE/test.sh | ||
|
||
centos8: | ||
name: RockyLinux 8 | ||
runs-on: ubuntu-latest | ||
container: centos:8 | ||
container: rockylinux:8 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
@@ -118,7 +122,26 @@ jobs: | |
TEST_PREFIX: valgrind --error-exitcode=99 --track-origins=yes --leak-check=full | ||
run: $GITHUB_WORKSPACE/test.sh | ||
|
||
freebsd: | ||
runs-on: macos-10.15 | ||
name: FreeBSD | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: ${{ env.GITHUB_REPOSITORY }} | ||
ref: ${{ env.GITHUB_HEAD_REF }} | ||
|
||
- name: Build in FreeBSD | ||
uses: vmactions/[email protected] | ||
with: | ||
prepare: pkg install -y gmake cmake | ||
run: | | ||
mkdir build && cd build && cmake .. && make && cd .. | ||
gmake | ||
macos: | ||
name: macOS | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout code | ||
|
@@ -140,6 +163,7 @@ jobs: | |
run: $GITHUB_WORKSPACE/test.sh | ||
|
||
windows: | ||
name: Windows | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout code | ||
|
@@ -174,6 +198,7 @@ jobs: | |
HIREDIS_PATH: ${{ github.workspace }} | ||
run: | | ||
build_hiredis() { | ||
git config --global --add safe.directory "$(cygpath -u $HIREDIS_PATH)" | ||
cd $(cygpath -u $HIREDIS_PATH) | ||
git clean -xfd | ||
make | ||
|
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
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
Oops, something went wrong.