mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Merge branch 'add_ci' of https://github.com/bensuperpc/lgogdownloader
This commit is contained in:
commit
140f382836
51
.github/workflows/linux.yml
vendored
Normal file
51
.github/workflows/linux.yml
vendored
Normal file
@ -0,0 +1,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@v2
|
||||||
|
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 libhtmlcxx-dev \
|
||||||
|
libboost-system-dev libboost-filesystem-dev libboost-program-options-dev \
|
||||||
|
libboost-date-time-dev libboost-iostreams-dev help2man 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
|
Loading…
Reference in New Issue
Block a user