forked from OpenDDS/OpenDDS-Debian
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (60 loc) · 1.66 KB
/
main.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: CI
on:
push:
branches:
- vermaete/ubuntu2404
workflow_dispatch:
schedule:
- cron: "0 2 * * 5"
jobs:
build:
runs-on: ubuntu-24.04
env:
DEBFULLNAME: "Fred Hornsey"
DEBEMAIL: "[email protected]"
steps:
- name: Install Ubuntu Packages
run: |
sudo apt-get update
sudo apt-get install debhelper lintian
- name: Checkout OpenDDS-Debian
uses: actions/checkout@v4
with:
path: OpenDDS-Debian
- name: Checkout OpenDDS
uses: actions/checkout@v4
with:
repository: 'OpenDDS/OpenDDS'
path: OpenDDS
ref: 'DDS-3.30'
- name: Copy debian Directory
run: cp -r OpenDDS-Debian/debian OpenDDS/debian
- name: Build Package
run: |
cd OpenDDS
dpkg-buildpackage -us -uc
cd ..
cp opendds_*.deb opendds.deb
- name: Commit New Deb
run: |
cd OpenDDS
SHA=$(git rev-parse --short HEAD)
cd ../OpenDDS-Debian
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch --depth 1 origin ubuntu_24_04
git checkout ubuntu_24_04
cp ../opendds.deb opendds.deb
git add opendds.deb
git \
-c '[email protected]' \
-c 'user.name=GitHub Actions' \
commit -m "Based On OpenDDS $SHA"
- name: Push Commit
uses: ad-m/github-push-action@master
with:
directory: 'OpenDDS-Debian'
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 'ubuntu_24_04'
- name: Lintian
run: lintian --pedantic --info --display-info opendds.deb
if: always()