Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-Sagaydak committed Apr 27, 2024
1 parent 64a11d5 commit b207721
Showing 1 changed file with 29 additions and 22 deletions.
51 changes: 29 additions & 22 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1,45 @@
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
tests:
- 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 client artifact
uses: actions/upload-artifact@v4
with:
name: client
path: ./client/http-client.deb

- run: sh create_debpkg_server.sh
- name: Upload server artifact
uses: actions/upload-artifact@v4
with:
name: server
path: ./server/http-server.deb

- name: Install client
run: sudo dpkg -i ./client/http-client.deb

- name: Test client
run: libhv-client
run: libhv-client --help

- name: Install server
run: sudo dpkg -i ./server/http-server.deb

- name: Test server
run: libhv-http
run: libhv-http --help

0 comments on commit b207721

Please sign in to comment.