Skip to content

Commit

Permalink
Github action to create a debian package
Browse files Browse the repository at this point in the history
  • Loading branch information
arminha committed Feb 26, 2024
1 parent 5414743 commit f2aa16c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/debian-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on:
push:

name: create-debian-package

jobs:
create-debian-package:
runs-on: ubuntu-latest
container: rust:1.76.0-bookworm
steps:
- name: Install required packages
run: apt-get update && apt-get install -y build-essential devscripts pkg-config rsync libssl-dev

- name: Checkout sources
uses: actions/checkout@v3

- name: Build package
run: ./build_deb.sh
4 changes: 3 additions & 1 deletion build_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ SCRIPT_DIR=$(dirname $0)
rm -rf build
mkdir build

rsync -av --exclude-from=$SCRIPT_DIR/.gitignore --exclude=.git $SCRIPT_DIR/ build/covet
rsync -av --exclude-from=$SCRIPT_DIR/.gitignore \
--exclude=.git --exclude=build --exclude=apt --exclude=cargo \
$SCRIPT_DIR/ build/covet

pushd build
pushd covet
Expand Down

0 comments on commit f2aa16c

Please sign in to comment.