2021-03-01 18:03:35 +00:00
|
|
|
name: Build AppImage
|
2021-03-02 13:20:57 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
tags:
|
|
|
|
- v*
|
2023-03-14 21:56:15 +00:00
|
|
|
paths-ignore:
|
|
|
|
- web/**
|
|
|
|
- doc/**
|
2024-02-29 13:50:03 +00:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths-ignore:
|
|
|
|
- web/**
|
|
|
|
- doc/**
|
2021-03-02 13:20:57 +00:00
|
|
|
|
2022-10-13 20:32:01 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-03-01 18:03:35 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
2024-02-29 12:22:42 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
2024-02-29 14:28:33 +00:00
|
|
|
fail-fast: false
|
2024-02-29 12:22:42 +00:00
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-20.04
|
|
|
|
- ubuntu-22.04
|
2024-02-29 14:21:47 +00:00
|
|
|
arch:
|
|
|
|
- x86_64
|
2022-09-12 16:18:45 +00:00
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
discussions: write
|
2021-03-01 18:03:35 +00:00
|
|
|
steps:
|
2021-04-18 15:46:00 +00:00
|
|
|
- run: sudo apt-get -qq update
|
2021-03-01 18:03:35 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get install -yqq --no-install-recommends \
|
|
|
|
audacious-dev \
|
|
|
|
cmake \
|
|
|
|
gawk \
|
|
|
|
lcov \
|
|
|
|
libaudclient-dev \
|
|
|
|
libcairo2-dev \
|
|
|
|
libcurl4-gnutls-dev \
|
2022-09-10 17:13:42 +00:00
|
|
|
libdbus-glib-1-dev \
|
2022-09-10 17:20:57 +00:00
|
|
|
libfuse2 \
|
2021-03-01 18:03:35 +00:00
|
|
|
libglib2.0-dev \
|
|
|
|
libical-dev \
|
|
|
|
libimlib2-dev \
|
|
|
|
libircclient-dev \
|
2021-03-02 18:27:59 +00:00
|
|
|
libiw-dev \
|
2021-03-01 18:03:35 +00:00
|
|
|
liblua5.3-dev \
|
|
|
|
libmicrohttpd-dev \
|
|
|
|
libmysqlclient-dev \
|
|
|
|
libpulse-dev \
|
|
|
|
librsvg2-dev \
|
|
|
|
libsystemd-dev \
|
2024-02-29 02:05:54 +00:00
|
|
|
libwayland-bin \
|
2022-12-09 17:28:40 +00:00
|
|
|
libwayland-dev \
|
2021-03-01 18:03:35 +00:00
|
|
|
libx11-dev \
|
|
|
|
libxdamage-dev \
|
|
|
|
libxext-dev \
|
|
|
|
libxft-dev \
|
|
|
|
libxinerama-dev \
|
|
|
|
libxml2-dev \
|
|
|
|
libxmmsclient-dev \
|
|
|
|
libxnvctrl-dev \
|
2022-10-14 13:13:31 +00:00
|
|
|
ncurses-dev \
|
2022-12-25 13:24:31 +00:00
|
|
|
ninja-build \
|
2022-10-14 13:13:31 +00:00
|
|
|
pandoc \
|
|
|
|
python3 \
|
2024-02-29 02:05:54 +00:00
|
|
|
wayland-protocols \
|
2022-10-14 13:13:31 +00:00
|
|
|
&&
|
|
|
|
pip3 install --upgrade pyyaml
|
2021-03-01 18:03:35 +00:00
|
|
|
- name: Checkout
|
2023-09-04 17:18:19 +00:00
|
|
|
uses: actions/checkout@v4
|
2024-02-29 14:45:29 +00:00
|
|
|
- name: Get tags
|
|
|
|
run: git fetch --tags origin
|
2024-02-29 12:22:42 +00:00
|
|
|
- name: Get git version
|
|
|
|
id: git-version
|
2024-02-29 14:45:29 +00:00
|
|
|
run: echo "GIT_VERSION=$(git describe --tags --always)" >> $GITHUB_ENV
|
2021-03-01 18:03:35 +00:00
|
|
|
- name: Import GPG Deploy Key
|
2024-02-29 14:04:51 +00:00
|
|
|
# only run on main branch
|
2024-02-29 14:08:50 +00:00
|
|
|
if: github.ref == 'refs/heads/main'
|
2021-03-01 18:03:35 +00:00
|
|
|
run: |
|
|
|
|
echo "${{ secrets.GPG_DEPLOY_KEY }}" > appimage/secret.gpg
|
|
|
|
gpg --import appimage/secret.gpg
|
2024-02-29 14:40:41 +00:00
|
|
|
- name: Set clang version to 12 for ubuntu-20.04
|
|
|
|
if: matrix.os == 'ubuntu-20.04'
|
|
|
|
run: |
|
|
|
|
echo "CLANG_VERSION=12" >> $GITHUB_ENV
|
|
|
|
- name: Set clang version to 14 for ubuntu-22.04
|
2024-02-29 14:20:01 +00:00
|
|
|
if: matrix.os == 'ubuntu-22.04'
|
|
|
|
run: |
|
2024-02-29 14:40:41 +00:00
|
|
|
echo "CLANG_VERSION=14" >> $GITHUB_ENV
|
|
|
|
- name: Install libc++, set CC and CXX env vars
|
2024-02-29 14:20:01 +00:00
|
|
|
run: |
|
2024-02-29 14:36:00 +00:00
|
|
|
sudo apt-get install -yqq --no-install-recommends \
|
2024-02-29 14:40:41 +00:00
|
|
|
libc++-${CLANG-VERSION}-dev \
|
|
|
|
libc++abi-${CLANG-VERSION}-dev
|
|
|
|
echo "CC=clang-${CLANG-VERSION}" >> $GITHUB_ENV
|
|
|
|
echo "CXX=clang++-${CLANG-VERSION}" >> $GITHUB_ENV
|
2021-03-01 18:03:35 +00:00
|
|
|
- name: Build AppImage
|
2024-02-29 14:20:01 +00:00
|
|
|
run: ./appimage/build.sh
|
2022-09-12 18:15:12 +00:00
|
|
|
- name: Upload AppImage artifact
|
2023-12-18 17:11:14 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2021-03-01 18:03:35 +00:00
|
|
|
with:
|
2024-02-29 14:40:41 +00:00
|
|
|
name: 'conky-${{ matrix.os }}-${{ matrix.arch }}-${{ env.GIT_VERSION }}.AppImage'
|
2022-09-12 18:20:18 +00:00
|
|
|
path: conky-x86_64.AppImage
|
2024-02-29 12:22:42 +00:00
|
|
|
if-no-files-found: error
|
2022-09-12 18:20:18 +00:00
|
|
|
- name: Upload AppImage checksum artifact
|
2023-12-18 17:11:14 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-09-12 18:15:12 +00:00
|
|
|
with:
|
2024-02-29 14:40:41 +00:00
|
|
|
name: 'conky-${{ matrix.os }}-${{ matrix.arch }}-${{ env.GIT_VERSION }}.AppImage.sha256'
|
2022-09-12 18:20:18 +00:00
|
|
|
path: conky-x86_64.AppImage.sha256
|
2024-02-29 12:22:42 +00:00
|
|
|
if-no-files-found: error
|
2022-10-14 13:13:31 +00:00
|
|
|
- name: Upload man page artifact
|
2023-12-18 17:11:14 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-10-14 13:13:31 +00:00
|
|
|
with:
|
2022-10-15 04:34:06 +00:00
|
|
|
name: conky.1.gz
|
|
|
|
path: conky.1.gz
|
2024-02-29 12:22:42 +00:00
|
|
|
|
|
|
|
release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: build
|
|
|
|
steps:
|
|
|
|
- name: Download all artifacts
|
|
|
|
uses: actions/download-artifact@v4
|
|
|
|
with:
|
|
|
|
# conky.1.gz is created by all jobs!
|
|
|
|
merge-multiple: true
|
|
|
|
path: ${{ github.workspace }}/artifacts
|
|
|
|
|
2021-03-02 15:41:45 +00:00
|
|
|
- name: Create Conky Release
|
2021-03-02 13:20:57 +00:00
|
|
|
id: create_release
|
2022-09-12 16:18:45 +00:00
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
2021-03-02 13:20:57 +00:00
|
|
|
with:
|
|
|
|
draft: false
|
|
|
|
prerelease: false
|
2022-09-19 15:16:35 +00:00
|
|
|
discussion_category_name: General
|
2022-09-12 16:18:45 +00:00
|
|
|
generate_release_notes: true
|
|
|
|
files: |
|
2024-02-29 12:22:42 +00:00
|
|
|
conky-*.AppImage*
|
2022-10-15 04:34:06 +00:00
|
|
|
conky.1.gz
|