2020-12-27 22:37:24 +00:00
|
|
|
name: Packaging Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- $default-branch
|
|
|
|
- development
|
|
|
|
- master
|
|
|
|
# Run tests for any PRs
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
env:
|
|
|
|
SOURCE_DIR: ./
|
|
|
|
ARTIFACTS_DIR: debian/build/release/
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-05 04:32:37 +00:00
|
|
|
- uses: actions/checkout@v4
|
2020-12-27 22:37:24 +00:00
|
|
|
env:
|
|
|
|
DEBIAN_FRONTEND: "noninteractive"
|
2022-10-20 11:07:47 +00:00
|
|
|
- name: Remove github artefacts
|
|
|
|
run: |
|
|
|
|
rm -rf .github*
|
2020-12-27 22:37:24 +00:00
|
|
|
- name: Adjust distibution in changelog file
|
|
|
|
run: |
|
|
|
|
sed -i '0,/restricted/s//stable/' debian/changelog
|
|
|
|
- name: Build Debian package
|
2023-03-07 05:00:23 +00:00
|
|
|
uses: dawidd6/action-debian-package@v1.5.0
|
2020-12-27 22:37:24 +00:00
|
|
|
with:
|
|
|
|
artifacts_directory: debian/build/release/
|
2022-10-20 11:07:47 +00:00
|
|
|
os_distribution: testing
|
2020-12-27 22:37:24 +00:00
|
|
|
- name: Debug
|
|
|
|
run: |
|
|
|
|
ls -la
|