diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..47a1010 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,12 @@ +name: build +on: push +jobs: + build: + runs-on: ubuntu-latest + steps: + - run: sudo apt install -y libev-dev libssl-dev + - uses: actions/checkout@v2 + with: + submodules: true + - run: cmake . + - run: make diff --git a/.travis.yml b/.travis.yml deleted file mode 100755 index c81f9e7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: c - -os: - - linux - -before_install: - - sudo apt-get -qq update - - sudo apt-get install -y libssl-dev libev-dev - -script: - - mkdir build && cd build - - cmake .. - - make && sudo make install diff --git a/README.md b/README.md index 4812383..2634e63 100644 --- a/README.md +++ b/README.md @@ -8,14 +8,13 @@ [6]: https://github.com/zhaojh329/libuhttpd/issues/new [7]: https://img.shields.io/badge/release-3.8.0-blue.svg?style=plastic [8]: https://github.com/zhaojh329/libuhttpd/releases -[9]: https://travis-ci.org/zhaojh329/libuhttpd.svg?branch=master -[10]: https://travis-ci.org/zhaojh329/libuhttpd +[9]: https://github.com/zhaojh329/libuhttpd/workflows/build/badge.svg [![license][1]][2] [![PRs Welcome][3]][4] [![Issue Welcome][5]][6] [![Release Version][7]][8] -[![Build Status][9]][10] +![Build Status][9] [libev]: http://software.schmorp.de/pkg/libev.html [http-parser]: https://github.com/nodejs/http-parser diff --git a/README_ZH.md b/README_ZH.md index 94fbe0e..a21c3e1 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -8,14 +8,13 @@ [6]: https://github.com/zhaojh329/libuhttpd/issues/new [7]: https://img.shields.io/badge/release-3.8.0-blue.svg?style=plastic [8]: https://github.com/zhaojh329/libuhttpd/releases -[9]: https://travis-ci.org/zhaojh329/libuhttpd.svg?branch=master -[10]: https://travis-ci.org/zhaojh329/libuhttpd +[9]: https://github.com/zhaojh329/libuhttpd/workflows/build/badge.svg [![license][1]][2] [![PRs Welcome][3]][4] [![Issue Welcome][5]][6] [![Release Version][7]][8] -[![Build Status][9]][10] +![Build Status][9] [libev]: http://software.schmorp.de/pkg/libev.html [http-parser]: https://github.com/nodejs/http-parser