Use github actions

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
main^2
Jianhui Zhao 2021-01-20 22:36:48 +08:00
parent fb5c0337a8
commit b2e52fe1af
4 changed files with 16 additions and 19 deletions

12
.github/workflows/build.yml vendored 100644
View File

@ -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

View File

@ -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

View File

@ -8,14 +8,13 @@
[6]: https://github.com/zhaojh329/libuhttpd/issues/new [6]: https://github.com/zhaojh329/libuhttpd/issues/new
[7]: https://img.shields.io/badge/release-3.8.0-blue.svg?style=plastic [7]: https://img.shields.io/badge/release-3.8.0-blue.svg?style=plastic
[8]: https://github.com/zhaojh329/libuhttpd/releases [8]: https://github.com/zhaojh329/libuhttpd/releases
[9]: https://travis-ci.org/zhaojh329/libuhttpd.svg?branch=master [9]: https://github.com/zhaojh329/libuhttpd/workflows/build/badge.svg
[10]: https://travis-ci.org/zhaojh329/libuhttpd
[![license][1]][2] [![license][1]][2]
[![PRs Welcome][3]][4] [![PRs Welcome][3]][4]
[![Issue Welcome][5]][6] [![Issue Welcome][5]][6]
[![Release Version][7]][8] [![Release Version][7]][8]
[![Build Status][9]][10] ![Build Status][9]
[libev]: http://software.schmorp.de/pkg/libev.html [libev]: http://software.schmorp.de/pkg/libev.html
[http-parser]: https://github.com/nodejs/http-parser [http-parser]: https://github.com/nodejs/http-parser

View File

@ -8,14 +8,13 @@
[6]: https://github.com/zhaojh329/libuhttpd/issues/new [6]: https://github.com/zhaojh329/libuhttpd/issues/new
[7]: https://img.shields.io/badge/release-3.8.0-blue.svg?style=plastic [7]: https://img.shields.io/badge/release-3.8.0-blue.svg?style=plastic
[8]: https://github.com/zhaojh329/libuhttpd/releases [8]: https://github.com/zhaojh329/libuhttpd/releases
[9]: https://travis-ci.org/zhaojh329/libuhttpd.svg?branch=master [9]: https://github.com/zhaojh329/libuhttpd/workflows/build/badge.svg
[10]: https://travis-ci.org/zhaojh329/libuhttpd
[![license][1]][2] [![license][1]][2]
[![PRs Welcome][3]][4] [![PRs Welcome][3]][4]
[![Issue Welcome][5]][6] [![Issue Welcome][5]][6]
[![Release Version][7]][8] [![Release Version][7]][8]
[![Build Status][9]][10] ![Build Status][9]
[libev]: http://software.schmorp.de/pkg/libev.html [libev]: http://software.schmorp.de/pkg/libev.html
[http-parser]: https://github.com/nodejs/http-parser [http-parser]: https://github.com/nodejs/http-parser