-
Notifications
You must be signed in to change notification settings - Fork 67
51 lines (44 loc) · 1.25 KB
/
linux.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
name: linux
on:
push:
branches:
- "*"
paths-ignore:
- "**.md"
pull_request:
branches:
- "*"
workflow_dispatch:
jobs:
build:
name: ${{matrix.cxx_compiler}} USE_QT_GUI=${{matrix.qt_gui}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
cxx_compiler: [g++, clang++]
qt_gui: [YES, NO]
steps:
- name: "Checkout Code"
uses: actions/checkout@v4
with:
submodules: "recursive"
fetch-depth: 0
- name: Dependencies
run: |
sudo apt -y update
sudo apt -y install ninja-build build-essential libcurl4-openssl-dev libboost-regex-dev \
libjsoncpp-dev librhash-dev libtinyxml2-dev libtidy-dev \
libboost-system-dev libboost-filesystem-dev libboost-program-options-dev \
libboost-date-time-dev libboost-iostreams-dev cmake \
pkg-config zlib1g-dev qtwebengine5-dev
- name: Configure
env:
CXX: ${{matrix.cxx_compiler}}
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release \
-DUSE_QT_GUI=${{matrix.qt_gui}} -GNinja
- name: Build
run: ninja -Cbuild
- name: Run
run: cd build && ./lgogdownloader --help