mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-29 00:30:12 +01:00
Actions
This commit is contained in:
parent
e6aa16eb22
commit
a853935eff
6
.github/workflows/rssguard.yml
vendored
6
.github/workflows/rssguard.yml
vendored
@ -9,12 +9,12 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-rssguard:
|
build-rssguard:
|
||||||
name: "rssguard; ${{ matrix.os }}; ${{ matrix.qmake_args }}"
|
name: "${{ matrix.os }}; webengine = ${{ matrix.use_webengine }}"
|
||||||
runs-on: "${{ matrix.os }}"
|
runs-on: "${{ matrix.os }}"
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-2019, ubuntu-16.04, macos-10.15]
|
os: [windows-2019, ubuntu-16.04, macos-10.15]
|
||||||
qmake_args: ["USE_WEBENGINE=true"]
|
use_webengine: ["true", "false"]
|
||||||
include:
|
include:
|
||||||
- os: windows-2019
|
- os: windows-2019
|
||||||
script_name: .\resources\scripts\github-actions\build-windows.ps1
|
script_name: .\resources\scripts\github-actions\build-windows.ps1
|
||||||
@ -27,4 +27,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Prepare environment and compile application
|
- name: Prepare environment and compile application
|
||||||
run: ${{ matrix.script_name }} "${{ matrix.os }}" "${{ matrix.qmake_args }}"
|
run: ${{ matrix.script_name }} "${{ matrix.os }}" "${{ matrix.use_webengine }}"
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
os="$1"
|
os="$1"
|
||||||
qmake_args="$2"
|
webengine="$2"
|
||||||
|
|
||||||
if [[ "$os" == *"ubuntu"* ]]; then
|
if [[ "$os" == *"ubuntu"* ]]; then
|
||||||
echo "We are building for GNU/Linux on Ubuntu."
|
echo "We are building for GNU/Linux on Ubuntu."
|
||||||
@ -11,7 +11,7 @@ else
|
|||||||
is_linux=false
|
is_linux=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "OS: $os; qmake args: $qmake_args"
|
echo "OS: $os; WebEngine: $webengine"
|
||||||
|
|
||||||
# Prepare environment.
|
# Prepare environment.
|
||||||
if [ $is_linux = true ]; then
|
if [ $is_linux = true ]; then
|
||||||
@ -43,13 +43,13 @@ fi
|
|||||||
# Build application and package it.
|
# Build application and package it.
|
||||||
if [ $is_linux = true ]; then
|
if [ $is_linux = true ]; then
|
||||||
mkdir rssguard-build && cd rssguard-build
|
mkdir rssguard-build && cd rssguard-build
|
||||||
qmake .. "USE_WEBENGINE=$USE_WEBENGINE"
|
qmake .. "USE_WEBENGINE=$webengine"
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
cd "src/rssguard"
|
cd "src/rssguard"
|
||||||
else
|
else
|
||||||
mkdir rssguard-build && cd rssguard-build
|
mkdir rssguard-build && cd rssguard-build
|
||||||
qmake .. "$qmake_args"
|
qmake .. "USE_WEBENGINE=$webengine"
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
cd "src/rssguard"
|
cd "src/rssguard"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
$os = $args[0]
|
$os = $args[0]
|
||||||
$qmake_args = $args[1]
|
$webengine = $args[1]
|
||||||
|
|
||||||
echo "We are building for MS Windows."
|
echo "We are building for MS Windows."
|
||||||
echo "OS: $os; qmake args: $qmake_args"
|
echo "OS: $os; WebEngine: $webengine"
|
Loading…
x
Reference in New Issue
Block a user