pro:优化单例启动。
This commit is contained in:
1
SingleApplication-3.5.2/.github/FUNDING.yml
vendored
Normal file
1
SingleApplication-3.5.2/.github/FUNDING.yml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
github: itay-grudev
|
||||
34
SingleApplication-3.5.2/.github/workflows/doxygen.yml
vendored
Normal file
34
SingleApplication-3.5.2/.github/workflows/doxygen.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: "Documentation"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
|
||||
jobs:
|
||||
doxygen:
|
||||
name: Doxygen
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install doxygen and pre-requsites packages
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install doxygen qtbase5-dev
|
||||
|
||||
- name: Generate documentation
|
||||
run: |
|
||||
cmake -B build -D SINGLEAPPLICATION_DOCUMENTATION=ON -D DOXYGEN_WARN_AS_ERROR=YES
|
||||
cmake --build build --target SingleApplicationDocumentation
|
||||
find build/html/ -name *.html -type f -exec sed -i 's+https://github.com/jothepro/doxygen-awesome-css+https://github.com/itay-grudev/SingleApplication+g' {} \;
|
||||
|
||||
- name: Deploy to GitHub pages
|
||||
uses: crazy-max/ghaction-github-pages@v3
|
||||
with:
|
||||
target_branch: gh-pages
|
||||
build_dir: build/html
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
111
SingleApplication-3.5.2/.github/workflows/main.yml
vendored
Normal file
111
SingleApplication-3.5.2/.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,111 @@
|
||||
name: "CI: Build Test"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- "releases/**"
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
strategy:
|
||||
matrix:
|
||||
qt_version:
|
||||
- 5.15.0
|
||||
- 6.2.4
|
||||
- 6.5.0
|
||||
platform:
|
||||
- ubuntu-20.04
|
||||
- windows-latest
|
||||
- macos-latest
|
||||
include:
|
||||
- qt_version: 6.2.4
|
||||
additional_arguments: -D QT_DEFAULT_MAJOR_VERSION=6
|
||||
- qt_version: 6.5.0
|
||||
additional_arguments: -D QT_DEFAULT_MAJOR_VERSION=6
|
||||
- platform: ubuntu-20.04
|
||||
make: make
|
||||
CXXFLAGS: -Wall -Wextra -pedantic -Werror
|
||||
MAKEFLAGS: -j2
|
||||
- platform: macos-latest
|
||||
make: make
|
||||
CXXFLAGS: -Wall -Wextra -pedantic -Werror
|
||||
MAKEFLAGS: -j3
|
||||
- platform: windows-latest
|
||||
make: nmake
|
||||
CXXFLAGS: /W4 /WX /MP
|
||||
|
||||
runs-on: ${{ matrix.platform }}
|
||||
env:
|
||||
CXXFLAGS: ${{ matrix.CXXFLAGS }}
|
||||
MAKEFLAGS: ${{ matrix.MAKEFLAGS }}
|
||||
|
||||
steps:
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Qt
|
||||
uses: jurplel/install-qt-action@v3
|
||||
with:
|
||||
version: ${{ matrix.qt_version }}
|
||||
|
||||
- name: Setup MSVC environment for QMake
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
|
||||
- name: Build library with CMake
|
||||
run: |
|
||||
cmake . ${{ matrix.additional_arguments }}
|
||||
cmake --build .
|
||||
|
||||
- name: Build basic example with CMake
|
||||
working-directory: examples/basic/
|
||||
run: |
|
||||
cmake . ${{ matrix.additional_arguments }}
|
||||
cmake --build .
|
||||
|
||||
- name: Build calculator example with CMake
|
||||
working-directory: examples/calculator/
|
||||
run: |
|
||||
cmake . ${{ matrix.additional_arguments }}
|
||||
cmake --build .
|
||||
|
||||
- name: Build sending_arguments example with CMake
|
||||
working-directory: examples/sending_arguments/
|
||||
run: |
|
||||
cmake . ${{ matrix.additional_arguments }}
|
||||
cmake --build .
|
||||
|
||||
- name: Build windows_raise_widget example with CMake
|
||||
working-directory: examples/windows_raise_widget/
|
||||
run: |
|
||||
cmake . ${{ matrix.additional_arguments }}
|
||||
cmake --build .
|
||||
|
||||
- name: Build basic example with QMake
|
||||
working-directory: examples/basic/
|
||||
run: |
|
||||
qmake
|
||||
${{ matrix.make }}
|
||||
|
||||
- name: Build calculator example with QMake
|
||||
working-directory: examples/calculator/
|
||||
run: |
|
||||
qmake
|
||||
${{ matrix.make }}
|
||||
|
||||
- name: Build sending_arguments example with QMake
|
||||
working-directory: examples/sending_arguments/
|
||||
run: |
|
||||
qmake
|
||||
${{ matrix.make }}
|
||||
|
||||
- name: Build windows_raise_widget example with QMake
|
||||
working-directory: examples/windows_raise_widget/
|
||||
run: |
|
||||
qmake
|
||||
${{ matrix.make }}
|
||||
Reference in New Issue
Block a user