Skip to content

Commit fa08133

Browse files
authored
Adding debian packaging on a tagged release (#121)
1 parent 8b400cf commit fa08133

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release Project
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
env:
8+
BUILD_TYPE: Release
9+
10+
jobs:
11+
build:
12+
name: Building Debian Ubuntu Packages
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
build-variant: [shared, static]
17+
steps:
18+
- name: Checkout Respond Repository
19+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
20+
21+
- name: Install Eigen3
22+
uses: kupns-aka-kupa/setup-eigen3@master
23+
id: install-eigen3
24+
with:
25+
version: 3.4.0
26+
env:
27+
CMAKE_GENERATOR: Ninja
28+
29+
- name: Build Debian Package
30+
env:
31+
EIGEN3_INCLUDE_DIR: ${{ steps.install-eigen3.outputs.EIGEN3_INCLUDE_DIR }}
32+
EIGEN3_DIR: ${{ steps.install-eigen3.outputs.EIGEN3_DIR}}
33+
run: |
34+
echo "Building Linux"
35+
cmake --workflow --preset package-release-debian-${{matrix.build-variant}}-workflow
36+
shell: bash
37+
- name: Upload Debian Package to Release
38+
uses: svenstaro/upload-release-action@v2
39+
with:
40+
repo_token: ${{ secrets.GITHUB_TOKEN }}
41+
file: build/${{ matrix.build-variant }}/respond-*.deb
42+
tag: ${{ github.ref }}

0 commit comments

Comments
 (0)