summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJefty Negapatan <jefty.dev@gmail.com>2020-04-18 17:05:22 +0200
committerdormando <dormando@rydia.net>2020-05-12 18:47:29 -0700
commit7554dc78225b4c501e97f56b69f1b5a8eebb5d9f (patch)
treecb81fe6980f0f2ad6a5de5566c5a83cf5c48c8ca /.github
parent7fe298676f1ddfabf71051f093fa1b8b0f2f447b (diff)
downloadmemcached-7554dc78225b4c501e97f56b69f1b5a8eebb5d9f.tar.gz
Use GitHub CI for x86_64 build
GitHub now offers free CI service via Actions. It's faster and has better integration with GitHub. As of this time, ubuntu-latest (18.04 LTS) and macos-latest (Catalina 10.15) are both supported. See https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners for details. Free users can run 20 concurrent jobs for Ubuntu and 5 for Mac. This is already more than enough.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..c1364ce
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,21 @@
+name: GitHub CI
+
+on: [push, pull_request]
+
+jobs:
+ ubuntu-build-test:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Install deps
+ run: |
+ sudo apt-get update -y
+ sudo apt-get install -y libevent-dev libseccomp-dev git libsasl2-dev
+ - name: Build
+ run: |
+ gcc --version
+ ./autogen.sh
+ ./configure --enable-seccomp --enable-tls --enable-sasl --enable-sasl-pwdb
+ make -j
+ - name: Test
+ run: PARALLEL=5 make test