-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 1.07 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: CI
run-name: ${{ github.actor }} run CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- run: sudo apt-get update
- run: sudo apt-get install g++ make cmake
- run: sudo apt-get install -y libboost-all-dev
- run: cd client && mkdir -p build && cd build && cmake .. && make && cd ../../server && mkdir -p build && cd build && cmake .. && make
- run: cd ../..
- run: sh create_debpkg_client.sh
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: client
path: ./client/http-client.deb
- run: sh create_debpkg_server.sh
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: server
path: ./server/http-server.deb
- name: Test 1. Smoke-test that verifies the success of client startup
- run: ./client/build/libhv-client
- name: Test 2. Smoke-test that verifies the success of server startup
- run: ./server/build/libhv-http