Skip to content

Commit

Permalink
add client and server artifacts creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-Sagaydak committed Apr 27, 2024
1 parent 57853a5 commit 94b0902
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,17 @@ jobs:
- 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 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@v3
with:
name: client
path: ./http-client.deb
- run: sh create_debpkg_server.sh
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: server
path: ./http-server.deb
17 changes: 17 additions & 0 deletions create_debpkg_client.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
cd client/
mkdir -p ./deb_pakage
mkdir -p ./deb_pakage/bin
mkdir -p ./deb_pakage/DEBIAN
touch ./deb_pakage/DEBIAN/control

cat << EOF > ./deb_pakage/DEBIAN/control
Package: http-client
Version: 1.0
Architecture: amd64
Maintainer: alexey-sagaidak
Description: http client for DCSA labs
EOF

cp ./build/libhv-client ./deb_pakage/bin/

dpkg-deb --build ./deb_pakage/ http-client.deb
17 changes: 17 additions & 0 deletions create_debpkg_server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
cd server/
mkdir -p ./deb_pakage
mkdir -p ./deb_pakage/bin
mkdir -p ./deb_pakage/DEBIAN
touch ./deb_pakage/DEBIAN/control

cat << EOF > ./deb_pakage/DEBIAN/control
Package: http-server
Version: 1.0
Architecture: amd64
Maintainer: alexey-sagaidak
Description: http server for DCSA labs
EOF

cp ./build/libhv-http ./deb_pakage/bin/

dpkg-deb --build ./deb_pakage/ http-server.deb

0 comments on commit 94b0902

Please sign in to comment.