mirror of https://github.com/cutefishos/fishui
Add workflows
parent
4a75b81acb
commit
c2c4694c47
@ -0,0 +1,76 @@
|
||||
name: build debian package
|
||||
|
||||
on:
|
||||
push:
|
||||
release:
|
||||
types: [prereleased]
|
||||
|
||||
# unsafe {
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||
# }
|
||||
|
||||
jobs:
|
||||
check_commit_msg:
|
||||
outputs:
|
||||
commit_message: ${{ steps.get_message.outputs.message }}
|
||||
name: Check if the workflow has been disabled.
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Get commit message
|
||||
id: get_message
|
||||
run: |
|
||||
echo "::set-output name=message::$(git log --format=%B -n 1 ${{ github.event.after }})"
|
||||
echo "::set-env name=message::$(git log --format=%B -n 1 ${{ github.event.after }})"
|
||||
linux:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
distro: [stable, unstable]
|
||||
needs: check_commit_msg
|
||||
if: ${{ !contains( needs.check_commit_msg.outputs.commit_message, 'NO_DEB') }}
|
||||
name: Debian ${{ matrix.distro }}
|
||||
runs-on: ubuntu-latest
|
||||
container: debian:${{ matrix.distro }}
|
||||
|
||||
steps:
|
||||
- name: Install git
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y git
|
||||
- name: Checking out sources
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
apt-get install -y build-essential qtbase5-dev qttools5-dev cmake pkg-config qtdeclarative5-dev extra-cmake-modules libkf5windowsystem-dev qttools5-dev qttools5-dev-tools
|
||||
- name: Build
|
||||
run: |
|
||||
dch -l${{ matrix.distro }} -m 'Build against ${{ matrix.distro }}' -D ${{ matrix.distro }}
|
||||
dpkg-buildpackage -us -uc -i -b
|
||||
- name: Copy binary
|
||||
run: |
|
||||
cp ../cutefish-uikit*.deb ./
|
||||
- name: Sleep
|
||||
if: github.event_name == 'release' && matrix.distro == 'unstable'
|
||||
run: |
|
||||
sleep 120
|
||||
- name: Get package name
|
||||
id: get_package
|
||||
run: echo ::set-output name=NAME::$(basename cutefish-uikit*.deb)
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v2-preview
|
||||
with:
|
||||
name: ${{ steps.get_package.outputs.NAME }}
|
||||
path: ${{ steps.get_package.outputs.NAME }}
|
||||
- name: Upload binaries to release
|
||||
uses: svenstaro/upload-release-action@v1-release
|
||||
if: github.event_name == 'release' && matrix.distro == 'stable'
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: ${{ steps.get_package.outputs.NAME }}
|
||||
asset_name: ${{ steps.get_package.outputs.NAME }}
|
||||
tag: ${{ github.ref }}
|
||||
overwrite: true
|
||||
@ -0,0 +1,5 @@
|
||||
cutefish-uikit (0.1) UNRELEASED; urgency=low
|
||||
|
||||
* Initial release (CutefishOS) <cutefishos@foxmail.com>
|
||||
|
||||
-- CutefishOS <cutefishos@foxmail.com> Thu, 16 Oct 2014 17:22:15 +0200
|
||||
@ -0,0 +1 @@
|
||||
9
|
||||
@ -0,0 +1,23 @@
|
||||
Source: cutefish-uikit
|
||||
Section: devel
|
||||
Priority: optional
|
||||
Maintainer: CutefishOS <cutefishos@foxmail.com>
|
||||
Build-Depends: cmake,
|
||||
debhelper (>= 9),
|
||||
extra-cmake-modules,
|
||||
libkf5windowsystem-dev,
|
||||
qtbase5-dev,
|
||||
qtdeclarative5-dev,
|
||||
qtquickcontrols2-5-dev,
|
||||
qttools5-dev,
|
||||
qttools5-dev-tools
|
||||
Standards-Version: 4.5.0
|
||||
Homepage: https://github.com/cutefishos/uikit
|
||||
|
||||
Package: cutefish-uikit
|
||||
Architecture: any
|
||||
Depends: qml-module-qtquick-controls2,
|
||||
qml-module-qtquick2,
|
||||
${misc:Depends},
|
||||
${shlibs:Depends}
|
||||
Description: CutefishOS UIKit
|
||||
@ -0,0 +1,3 @@
|
||||
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: calamares
|
||||
Source: <url://example.com>
|
||||
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
export QT_SELECT=5
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_configure:
|
||||
dh_auto_configure -- -DEMBED_TRANSLATIONS=ON -DBUILD_TESTING=ON
|
||||
@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
||||
Loading…
Reference in New Issue