mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-02-28 22:13:29 +00:00
Workflow updates
- Do not re-run PR tests on edited PRs - Close added/fixed issues on published release - Issues stale after 60 days instead of 30, close after 10 days instead of 5 - Use Vankka/pr-target-branch-action for checking that PR is made to proper branch - Add version number to sphinx config, must use cmake to configure the file - Add jobs to readthedocs.yaml configuration
This commit is contained in:
parent
c4054c75a7
commit
7a1e5f43d9
2
.github/workflows/CI.yml
vendored
2
.github/workflows/CI.yml
vendored
@ -3,7 +3,7 @@ name: CI
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master, nightly]
|
branches: [master, nightly]
|
||||||
types: [opened, synchronize, edited, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [master]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
2
.github/workflows/clang.yml
vendored
2
.github/workflows/clang.yml
vendored
@ -3,7 +3,7 @@ name: clang-format-lint
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master, nightly]
|
branches: [master, nightly]
|
||||||
types: [opened, synchronize, edited, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
21
.github/workflows/issues-closer.yml
vendored
Normal file
21
.github/workflows/issues-closer.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
name: Close Added/Fixed Issues
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
close_issues:
|
||||||
|
name: Check Issues / PRs
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Close Issues (added/fixed)
|
||||||
|
uses: actions/stale@v3
|
||||||
|
with:
|
||||||
|
only-issues-labels: 'added,fixed'
|
||||||
|
close-issue-message: >
|
||||||
|
This is now available in the latest release.
|
||||||
|
close-issue-label: 'released'
|
||||||
|
days-before-issue-stale: 0
|
||||||
|
days-before-issue-close: 0
|
||||||
|
ignore-updates: true
|
4
.github/workflows/issues-stale.yml
vendored
4
.github/workflows/issues-stale.yml
vendored
@ -26,8 +26,8 @@ jobs:
|
|||||||
This PR was closed because it has been stalled for 5 days with no activity.
|
This PR was closed because it has been stalled for 5 days with no activity.
|
||||||
stale-pr-label: 'stale'
|
stale-pr-label: 'stale'
|
||||||
exempt-pr-labels: 'status:in-progress'
|
exempt-pr-labels: 'status:in-progress'
|
||||||
days-before-stale: 30
|
days-before-stale: 60
|
||||||
days-before-close: 5
|
days-before-close: 10
|
||||||
|
|
||||||
- name: Invalid Template
|
- name: Invalid Template
|
||||||
uses: actions/stale@v5
|
uses: actions/stale@v5
|
||||||
|
34
.github/workflows/pull-requests.yml
vendored
34
.github/workflows/pull-requests.yml
vendored
@ -5,31 +5,17 @@ on:
|
|||||||
types: [opened, synchronize, edited, reopened]
|
types: [opened, synchronize, edited, reopened]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-branch:
|
check-pull-request:
|
||||||
name: Check Pull Request
|
name: Check Pull Request
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- uses: Vankka/pr-target-branch-action@v2
|
||||||
uses: actions/checkout@v3
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Branch check
|
|
||||||
if: ( github.head_ref == 'repo-sync/common-repo-files/default' && github.base_ref == 'master' ) || ( github.head_ref == 'nightly' && github.base_ref == 'master' )
|
|
||||||
run: |
|
|
||||||
echo Base: "$GITHUB_BASE_REF"
|
|
||||||
echo Head: "$GITHUB_HEAD_REF"
|
|
||||||
echo "branch=True" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Comment on Pull Request
|
|
||||||
uses: mshick/add-pr-comment@v1
|
|
||||||
if: github.base_ref != 'nightly' && env.branch != 'True'
|
|
||||||
with:
|
with:
|
||||||
message: Pull requests must be made to the `nightly` branch. Thanks.
|
target: master
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
exclude: nightly # Don't prevent going from nightly -> master
|
||||||
repo-token-user-login: 'github-actions[bot]'
|
change-to: nightly
|
||||||
|
comment: |
|
||||||
- name: Fail Workflow
|
Your PR was set to `master`, PRs should be sent to `nightly`
|
||||||
if: github.base_ref != 'nightly' && env.branch != 'True'
|
The base branch of this PR has been automatically changed to `nightly`, please check that there are no merge conflicts
|
||||||
run: |
|
|
||||||
echo Base: "$GITHUB_BASE_REF"
|
|
||||||
echo Head: "$GITHUB_HEAD_REF"
|
|
||||||
exit 1
|
|
||||||
|
@ -10,6 +10,11 @@ build:
|
|||||||
os: ubuntu-20.04
|
os: ubuntu-20.04
|
||||||
tools:
|
tools:
|
||||||
python: "3.9"
|
python: "3.9"
|
||||||
|
jobs:
|
||||||
|
post_system_dependencies:
|
||||||
|
- apt-get install cmake
|
||||||
|
pre_create_environment:
|
||||||
|
- cmake ..
|
||||||
|
|
||||||
# Build documentation in the docs/ directory with Sphinx
|
# Build documentation in the docs/ directory with Sphinx
|
||||||
sphinx:
|
sphinx:
|
||||||
|
@ -319,6 +319,7 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
configure_file(version.h.in version.h @ONLY)
|
configure_file(version.h.in version.h @ONLY)
|
||||||
|
configure_file(docs/source/conf.py.in "${CMAKE_CURRENT_SOURCE_DIR}/docs/source/conf.py" @ONLY)
|
||||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
||||||
set(SUNSHINE_TARGET_FILES
|
set(SUNSHINE_TARGET_FILES
|
||||||
|
@ -26,7 +26,7 @@ copyright = f'{datetime.now ().year}, {project}'
|
|||||||
author = 'ReenigneArcher'
|
author = 'ReenigneArcher'
|
||||||
|
|
||||||
# The full version, including alpha/beta/rc tags
|
# The full version, including alpha/beta/rc tags
|
||||||
# version = '0.13.0'
|
version = '@PROJECT_VERSION@'
|
||||||
|
|
||||||
|
|
||||||
# -- General configuration ---------------------------------------------------
|
# -- General configuration ---------------------------------------------------
|
||||||
@ -60,7 +60,7 @@ source_suffix = ['.rst', '.md']
|
|||||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||||
# html_static_path = ['_static']
|
# html_static_path = ['_static']
|
||||||
|
|
||||||
html_logo = os.path.join(root_dir, 'sunshine.ico')
|
html_logo = os.path.join(root_dir, 'sunshine.png')
|
||||||
|
|
||||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||||
# a list of builtin themes.
|
# a list of builtin themes.
|
Loading…
x
Reference in New Issue
Block a user