MateuszSC
3 years ago
committed by
GitHub
5 changed files with 118 additions and 48 deletions
@ -0,0 +1,58 @@
|
||||
name: "Build Webgreeter" |
||||
description: "Builds webgreeter" |
||||
inputs: |
||||
target-distro: |
||||
required: true |
||||
description: "Target distro" |
||||
runs: |
||||
using: "composite" |
||||
steps: |
||||
- |
||||
name: Checkout |
||||
uses: actions/checkout@v2 |
||||
- |
||||
name: Install dependencies |
||||
shell: bash |
||||
run: | |
||||
sudo apt update |
||||
sudo apt install \ |
||||
liblightdm-gobject-1-dev \ |
||||
libgirepository1.0-dev \ |
||||
libqt5webengine5 \ |
||||
pyqt5-dev-tools \ |
||||
python3-gi \ |
||||
python3-pyqt5 \ |
||||
python3-ruamel.yaml \ |
||||
python3-pyinotify \ |
||||
python3-xlib \ |
||||
python3-pip \ |
||||
dpkg |
||||
- |
||||
name: Build web-greeter |
||||
shell: bash |
||||
run: make build |
||||
- |
||||
name: Prepare deb build (common) |
||||
shell: bash |
||||
run: | |
||||
cp -r build/DEBIAN/ build/install_root/ |
||||
- |
||||
name: Prepare deb build (for Debian) |
||||
shell: bash |
||||
if: ${{ inputs.target-distro == 'debian' }} |
||||
run: | |
||||
sed -i "s/liblightdm-gobject-1-dev/liblightdm-gobject-dev/g" build/install_root/DEBIAN/control |
||||
- |
||||
name: Build deb |
||||
shell: bash |
||||
run: | |
||||
cd build/ |
||||
dpkg-deb --root-owner-group --build install_root "web-greeter.deb" |
||||
dpkg --info "./web-greeter.deb" |
||||
- |
||||
name: 'Upload Artifact' |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: build-${{ inputs.target-distro }} |
||||
path: ./build/web-greeter.deb |
||||
retention-days: 7 |
@ -1,26 +1,27 @@
|
||||
name: Build Test |
||||
|
||||
on: |
||||
push: |
||||
branches: [ master ] |
||||
pull_request: |
||||
branches: [ master ] |
||||
on: [push] |
||||
|
||||
jobs: |
||||
|
||||
build: |
||||
|
||||
build-ubuntu: |
||||
runs-on: ubuntu-latest |
||||
|
||||
steps: |
||||
- |
||||
name: Checkout |
||||
name: Checkout local actions |
||||
uses: actions/checkout@v2 |
||||
- |
||||
name: Install dependencies |
||||
run: | |
||||
sudo apt update |
||||
sudo apt install liblightdm-gobject-1-dev libqt5webengine5 pyqt5-dev-tools python3-gi python3-pyqt5 python3-ruamel.yaml python3-pyinotify python3-xlib python3-pip libgirepository1.0-dev build-essential gobject-introspection |
||||
- |
||||
name: Build and install web-greeter |
||||
run: sudo make install |
||||
uses: "./.github/actions/build" |
||||
with: |
||||
target-distro: ubuntu |
||||
build-debian: |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- |
||||
name: Checkout local actions |
||||
uses: actions/checkout@v2 |
||||
- |
||||
name: Build web-greeter |
||||
uses: "./.github/actions/build" |
||||
with: |
||||
target-distro: debian |
Loading…
Reference in new issue