-
-
Notifications
You must be signed in to change notification settings - Fork 123
executable file
·114 lines (101 loc) · 3.61 KB
/
rssguard.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
name: rssguard
on:
push:
branches: ["*"]
tags: ["*"]
jobs:
check-build-script:
name: check-build-script
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Check script syntax
run: bash -n ./resources/scripts/github-actions/build-linux-mac.sh
- name: Show shellcheck version
run: shellcheck --version
- name: Run shellcheck
run: shellcheck --color=always ./resources/scripts/github-actions/build-linux-mac.sh
build-rssguard:
needs: check-build-script
name: "${{ matrix.os }}; no-lite = ${{ matrix.no_lite }}; qt5 = ${{ matrix.use_qt5 }}"
runs-on: "${{ matrix.os }}"
strategy:
matrix:
os: [windows-2019, ubuntu-20.04, macos-11]
no_lite: ["ON", "OFF"]
use_qt5: ["ON", "OFF"]
include:
- os: windows-2019
script_name: .\resources\scripts\github-actions\build-windows.ps1
- os: ubuntu-20.04
script_name: ./resources/scripts/github-actions/build-linux-mac.sh
- os: macos-11
script_name: ./resources/scripts/github-actions/build-linux-mac.sh
exclude:
- os: ubuntu-20.04
use_qt5: "OFF"
- os: macos-11
use_qt5: "ON"
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Prepare environment and compile application
run: ${{ matrix.script_name }} "${{ matrix.os }}" "${{ matrix.no_lite }}" "${{ matrix.use_qt5 }}"
env:
GMAIL_CLIENT_ID: ${{ secrets.GMAIL_CLIENT_ID }}
GMAIL_CLIENT_SECRET: ${{ secrets.GMAIL_CLIENT_SECRET }}
FEEDLY_CLIENT_ID: ${{ secrets.FEEDLY_CLIENT_ID }}
FEEDLY_CLIENT_SECRET: ${{ secrets.FEEDLY_CLIENT_SECRET }}
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: RSS_Guard-${{ runner.os }}${{ matrix.no_lite == 'ON' && '-' || '-nowebengine-' }}Qt${{ matrix.use_qt5 == 'ON' && '5' || '6' }}
path: |
./rssguard-build/rssguard-*win*.exe
./rssguard-build/rssguard-*win*.7z
./rssguard-build/rssguard-*mac64.dmg
./rssguard-build/rssguard-*linux64.AppImage
dist-binaries:
name: distribute-binaries
needs:
- build-rssguard
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Download binaries from previous jobs
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Release development binaries
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifactErrorsFailBuild: true
artifacts: artifacts/*/*
name: Development builds
omitBodyDuringUpdate: true
prerelease: true
removeArtifacts: true
tag: devbuild
- name: Update "devbuild" tag
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
uses: richardsimko/update-tag@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: devbuild
- name: Release stable binaries
if: startsWith(github.ref, 'refs/tags/')
uses: ncipollo/release-action@v1
with:
artifactErrorsFailBuild: true
artifacts: artifacts/*/*
draft: true