2021-03-04 22:21:49 +00:00
|
|
|
name: Build
|
|
|
|
on: [pull_request, push]
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-07-27 18:56:24 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2021-03-04 22:21:49 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2023-03-20 01:13:18 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-03-04 22:21:49 +00:00
|
|
|
- run: sudo apt-get update
|
2022-07-27 18:56:24 +00:00
|
|
|
- run: sudo apt-get remove libunwind-14-dev
|
2022-11-06 14:27:53 +00:00
|
|
|
- run: sudo apt-get install -y build-essential gettext cmake valac libgee-0.8-dev libsqlite3-dev libgtk-4-dev libnotify-dev libgpgme-dev libsoup2.4-dev libgcrypt20-dev libqrencode-dev libnice-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libsrtp2-dev libwebrtc-audio-processing-dev libadwaita-1-dev libsignal-protocol-c-dev libcanberra-dev
|
2024-04-15 17:07:49 +00:00
|
|
|
- run: ./configure --release --no-debug --with-tests --enable-plugin=notification-sound --prefix=/usr
|
|
|
|
- run: cmake --build build
|
|
|
|
- run: cmake --build build --target=test
|
|
|
|
- name: Build DEB-package
|
|
|
|
run: cd build && cpack -G DEB
|
|
|
|
- name: Upload Dino+ DEB-package
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: dino-plus-deb
|
|
|
|
path: _packages/dino-plus.deb
|
|
|
|
- name: Release Dino+ DEB-package
|
|
|
|
if: ${{ github.ref_type == 'tag' }}
|
|
|
|
uses: svenstaro/upload-release-action@2.9.0
|
|
|
|
with:
|
|
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
file: _packages/dino-plus.deb
|
|
|
|
asset_name: dino-plus.deb
|
|
|
|
tag: ${{ github.ref }}
|
2024-04-15 17:12:56 +00:00
|
|
|
release_name: Dino+ ${{ github.ref_name }}
|
2024-04-15 17:07:49 +00:00
|
|
|
|
2023-03-20 01:13:18 +00:00
|
|
|
build-meson:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- run: sudo apt-get update
|
|
|
|
- run: sudo apt-get remove libunwind-14-dev
|
2024-04-02 07:30:59 +00:00
|
|
|
- run: sudo apt-get install -y build-essential gettext libadwaita-1-dev libcanberra-dev libgcrypt20-dev libgee-0.8-dev libgpgme-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libgtk-4-dev libnice-dev libnotify-dev libqrencode-dev libsignal-protocol-c-dev libsoup2.4-dev libsqlite3-dev libsrtp2-dev libwebrtc-audio-processing-dev meson valac
|
|
|
|
- run: meson setup build -Dcrypto-backend=auto -Dplugin-ice=enabled -Duse-soup2=true
|
2023-03-20 01:13:18 +00:00
|
|
|
- run: meson compile -C build
|
2024-04-08 13:47:06 +00:00
|
|
|
- run: meson test -C build
|
2023-04-20 16:36:48 +00:00
|
|
|
build-flatpak:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
container:
|
|
|
|
image: bilelmoussaoui/flatpak-github-actions:gnome-44
|
|
|
|
options: --privileged
|
|
|
|
steps:
|
2024-04-01 13:44:43 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
submodules: true
|
|
|
|
- run: flatpak repair --user
|
|
|
|
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6.1
|
|
|
|
with:
|
|
|
|
manifest-path: im.dino.Dino.json
|
|
|
|
build-bundle: true
|
2024-04-15 17:12:56 +00:00
|
|
|
- name: Release Dino+ flatpak
|
2024-04-01 13:44:43 +00:00
|
|
|
if: ${{ github.ref_type == 'tag' }}
|
|
|
|
uses: svenstaro/upload-release-action@2.9.0
|
|
|
|
with:
|
|
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
file: app.flatpak
|
|
|
|
asset_name: app.flatpak
|
|
|
|
tag: ${{ github.ref }}
|
2024-04-15 17:12:56 +00:00
|
|
|
release_name: Dino+ ${{ github.ref_name }}
|