Skip to content

Commit

Permalink
Support macOS CI (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShooterIT committed May 18, 2021
1 parent 7e470e2 commit b939f02
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/kvrocks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: kvrocks ci actions # don't edit while the badge was depend on this
on: [push, pull_request]

jobs:
lint-build-test:
name: Lint/Build
lint-build-test-on-ubuntu:
strategy:
matrix:
os: [ubuntu-18.04]
Expand Down Expand Up @@ -47,4 +46,28 @@ jobs:
run: |
sudo apt-get install tcl8.5
cd tests/tcl && sh runtest && cd -
build-test-on-macos-latest:
runs-on: macos-latest
steps:
- name: Checkout Code Base
uses: actions/[email protected]
with:
fetch-depth: 64

- name: Install Dependencies
run: |
brew install snappy googletest gcc autoconf automake libtool
mkdir build
- name: Build
run: |
make -j4
cp src/kvrocks build/kvrocks
- name: Unit Test
run: make test

- name: Redis Tcl Test
run:
cd tests/tcl && sh runtest && cd -

0 comments on commit b939f02

Please sign in to comment.