chore: update global workflows (#2581)
Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
This commit is contained in:
@@ -11,18 +11,19 @@ pacman --noconfirm -S \
|
|||||||
gcc \
|
gcc \
|
||||||
git \
|
git \
|
||||||
make \
|
make \
|
||||||
mingw-w64-x86_64-binutils \
|
mingw-w64-ucrt-x86_64-boost \
|
||||||
mingw-w64-x86_64-boost \
|
mingw-w64-ucrt-x86_64-cmake \
|
||||||
mingw-w64-x86_64-cmake \
|
mingw-w64-ucrt-x86_64-curl \
|
||||||
mingw-w64-x86_64-curl \
|
mingw-w64-ucrt-x86_64-graphviz \
|
||||||
mingw-w64-x86_64-miniupnpc \
|
mingw-w64-ucrt-x86_64-miniupnpc \
|
||||||
mingw-w64-x86_64-nlohmann-json \
|
mingw-w64-ucrt-x86_64-nlohmann-json \
|
||||||
mingw-w64-x86_64-nodejs \
|
mingw-w64-ucrt-x86_64-nodejs \
|
||||||
mingw-w64-x86_64-onevpl \
|
mingw-w64-ucrt-x86_64-nsis \
|
||||||
mingw-w64-x86_64-openssl \
|
mingw-w64-ucrt-x86_64-onevpl \
|
||||||
mingw-w64-x86_64-opus \
|
mingw-w64-ucrt-x86_64-openssl \
|
||||||
mingw-w64-x86_64-rust \
|
mingw-w64-ucrt-x86_64-opus \
|
||||||
mingw-w64-x86_64-toolchain
|
mingw-w64-ucrt-x86_64-rust \
|
||||||
|
mingw-w64-ucrt-x86_64-toolchain
|
||||||
|
|
||||||
# build
|
# build
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
|
|||||||
28
.github/pr_release_template.md
vendored
28
.github/pr_release_template.md
vendored
@@ -1,28 +0,0 @@
|
|||||||
## Description
|
|
||||||
<!--- Please include a summary of the changes. --->
|
|
||||||
This PR was created automatically.
|
|
||||||
|
|
||||||
|
|
||||||
### Screenshot
|
|
||||||
<!--- Include screenshots if the changes are UI-related. --->
|
|
||||||
|
|
||||||
|
|
||||||
### Issues Fixed or Closed
|
|
||||||
<!--- Close issue example: `- Closes #1` --->
|
|
||||||
<!--- Fix bug issue example: `- Fixes #2` --->
|
|
||||||
<!--- Resolve issue example: `- Resolves #3` --->
|
|
||||||
|
|
||||||
|
|
||||||
## Type of Change
|
|
||||||
- [ ] Bug fix (non-breaking change which fixes an issue)
|
|
||||||
- [ ] New feature (non-breaking change which adds functionality)
|
|
||||||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
|
|
||||||
- [ ] Dependency update (updates to dependencies)
|
|
||||||
- [ ] Documentation update (changes to documentation)
|
|
||||||
- [ ] Repository update (changes to repository files, e.g. `.github/...`)
|
|
||||||
|
|
||||||
## Branch Updates
|
|
||||||
- [x] I want maintainers to keep my branch updated
|
|
||||||
|
|
||||||
## Changelog Summary
|
|
||||||
<!--- Summarize all the changes in a bulleted list. --->
|
|
||||||
35
.github/workflows/auto-create-pr.yml
vendored
35
.github/workflows/auto-create-pr.yml
vendored
@@ -1,35 +0,0 @@
|
|||||||
---
|
|
||||||
# This action is centrally managed in https://github.com/<organization>/.github/
|
|
||||||
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
|
|
||||||
# the above-mentioned repo.
|
|
||||||
|
|
||||||
# This workflow creates a PR automatically when anything is merged/pushed into the `nightly` branch. The PR is created
|
|
||||||
# against the `master` (default) branch.
|
|
||||||
|
|
||||||
name: Auto create PR
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'nightly'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
create_pr:
|
|
||||||
if: startsWith(github.repository, 'LizardByte/')
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Create Pull Request
|
|
||||||
uses: repo-sync/pull-request@v2
|
|
||||||
with:
|
|
||||||
source_branch: "" # should be "nightly" as it's the triggering branch
|
|
||||||
destination_branch: "master"
|
|
||||||
pr_title: "Pulling ${{ github.ref_name }} into master"
|
|
||||||
pr_template: ".github/pr_release_template.md"
|
|
||||||
pr_assignee: "${{ secrets.GH_BOT_NAME }}"
|
|
||||||
pr_draft: true
|
|
||||||
pr_allow_empty: false
|
|
||||||
github_token: ${{ secrets.GH_BOT_TOKEN }}
|
|
||||||
64
.github/workflows/automerge.yml
vendored
64
.github/workflows/automerge.yml
vendored
@@ -1,64 +0,0 @@
|
|||||||
---
|
|
||||||
# This action is centrally managed in https://github.com/<organization>/.github/
|
|
||||||
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
|
|
||||||
# the above-mentioned repo.
|
|
||||||
|
|
||||||
# This workflow will, first, automatically approve PRs created by @LizardByte-bot. Then it will automerge relevant PRs.
|
|
||||||
|
|
||||||
name: Automerge PR
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types:
|
|
||||||
- opened
|
|
||||||
- synchronize
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
autoapprove:
|
|
||||||
if: >-
|
|
||||||
contains(fromJson('["LizardByte-bot"]'), github.event.pull_request.user.login) &&
|
|
||||||
contains(fromJson('["LizardByte-bot"]'), github.actor) &&
|
|
||||||
startsWith(github.repository, 'LizardByte/')
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Autoapproving
|
|
||||||
uses: hmarr/auto-approve-action@v4
|
|
||||||
with:
|
|
||||||
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
|
|
||||||
- name: Label autoapproved
|
|
||||||
uses: actions/github-script@v7
|
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.GH_BOT_TOKEN }}
|
|
||||||
script: |
|
|
||||||
github.rest.issues.addLabels({
|
|
||||||
issue_number: context.issue.number,
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
labels: ['autoapproved', 'autoupdate']
|
|
||||||
})
|
|
||||||
|
|
||||||
automerge:
|
|
||||||
if: startsWith(github.repository, 'LizardByte/')
|
|
||||||
needs: [autoapprove]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Automerging
|
|
||||||
uses: pascalgn/automerge-action@v0.16.3
|
|
||||||
env:
|
|
||||||
BASE_BRANCHES: nightly
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
|
||||||
GITHUB_LOGIN: ${{ secrets.GH_BOT_NAME }}
|
|
||||||
MERGE_LABELS: "!dependencies"
|
|
||||||
MERGE_METHOD: "squash"
|
|
||||||
MERGE_COMMIT_MESSAGE: "{pullRequest.title} (#{pullRequest.number})"
|
|
||||||
MERGE_DELETE_BRANCH: true
|
|
||||||
MERGE_ERROR_FAIL: true
|
|
||||||
MERGE_FILTER_AUTHOR: ${{ secrets.GH_BOT_NAME }}
|
|
||||||
MERGE_RETRIES: "240" # 1 hour
|
|
||||||
MERGE_RETRY_SLEEP: "15000" # 15 seconds
|
|
||||||
6
.github/workflows/ci-docker.yml
vendored
6
.github/workflows/ci-docker.yml
vendored
@@ -22,10 +22,10 @@ name: CI Docker
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master, nightly]
|
branches: [master]
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
push:
|
push:
|
||||||
branches: [master, nightly]
|
branches: [master]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
@@ -210,8 +210,6 @@ jobs:
|
|||||||
if [[ $GITHUB_REF == refs/heads/master ]]; then
|
if [[ $GITHUB_REF == refs/heads/master ]]; then
|
||||||
TAGS="${TAGS},${BASE_TAG}:latest${{ matrix.tag }},ghcr.io/${BASE_TAG}:latest${{ matrix.tag }}"
|
TAGS="${TAGS},${BASE_TAG}:latest${{ matrix.tag }},ghcr.io/${BASE_TAG}:latest${{ matrix.tag }}"
|
||||||
TAGS="${TAGS},${BASE_TAG}:master${{ matrix.tag }},ghcr.io/${BASE_TAG}:master${{ matrix.tag }}"
|
TAGS="${TAGS},${BASE_TAG}:master${{ matrix.tag }},ghcr.io/${BASE_TAG}:master${{ matrix.tag }}"
|
||||||
elif [[ $GITHUB_REF == refs/heads/nightly ]]; then
|
|
||||||
TAGS="${TAGS},${BASE_TAG}:nightly${{ matrix.tag }},ghcr.io/${BASE_TAG}:nightly${{ matrix.tag }}"
|
|
||||||
else
|
else
|
||||||
TAGS="${TAGS},${BASE_TAG}:test${{ matrix.tag }},ghcr.io/${BASE_TAG}:test${{ matrix.tag }}"
|
TAGS="${TAGS},${BASE_TAG}:test${{ matrix.tag }},ghcr.io/${BASE_TAG}:test${{ matrix.tag }}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
9
.github/workflows/codeql.yml
vendored
9
.github/workflows/codeql.yml
vendored
@@ -9,9 +9,9 @@ name: "CodeQL"
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["master", "nightly"]
|
branches: ["master"]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["master", "nightly"]
|
branches: ["master"]
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '00 12 * * 0' # every Sunday at 12:00 UTC
|
- cron: '00 12 * * 0' # every Sunday at 12:00 UTC
|
||||||
|
|
||||||
@@ -140,9 +140,12 @@ jobs:
|
|||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Setup msys2
|
- name: Setup msys2
|
||||||
if: runner.os == 'Windows'
|
if: >-
|
||||||
|
runner.os == 'Windows' &&
|
||||||
|
matrix.language == 'cpp'
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
|
msystem: ucrt64
|
||||||
update: true
|
update: true
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
|
|||||||
4
.github/workflows/cpp-lint.yml
vendored
4
.github/workflows/cpp-lint.yml
vendored
@@ -9,11 +9,11 @@ name: C++ Lint
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master, nightly]
|
branches: [master]
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
4
.github/workflows/python-flake8.yml
vendored
4
.github/workflows/python-flake8.yml
vendored
@@ -9,11 +9,11 @@ name: flake8
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master, nightly]
|
branches: [master]
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
4
.github/workflows/yaml-lint.yml
vendored
4
.github/workflows/yaml-lint.yml
vendored
@@ -9,11 +9,11 @@ name: yaml lint
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master, nightly]
|
branches: [master]
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
Reference in New Issue
Block a user