mirror of
https://github.com/xemu-project/xemu.git
synced 2026-10-21 01:59:16 +02:00
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 10.2.0 to 10.3.0. - [Release notes](https://github.com/astral-sh/setup-uv/releases) - [Commits](https://github.com/astral-sh/setup-uv/compare/c18668ad3cf93ea998bef934396af7bb5c839dc7...1c37ad07a6a961277cf70c0d37d6f313000f5884) --- updated-dependencies: - dependency-name: astral-sh/setup-uv dependency-version: 10.3.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
86 lines
2.7 KiB
YAML
86 lines
2.7 KiB
YAML
name: Bump Meson subprojects
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 6 * * 1'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
bump_wraps:
|
|
name: "Bump Meson subprojects"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v4
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install meson
|
|
|
|
- name: Install the latest version of uv
|
|
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v6
|
|
with:
|
|
enable-cache: false
|
|
|
|
- name: Check for updates
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
uv run -s scripts/bump-subproject-wraps.py -m \
|
|
subprojects/curl.wrap \
|
|
subprojects/genconfig.wrap \
|
|
subprojects/glslang.wrap \
|
|
subprojects/imgui.wrap \
|
|
subprojects/implot.wrap \
|
|
subprojects/nlohmann_json.wrap \
|
|
subprojects/nv2a_vsh_cpu.wrap \
|
|
subprojects/sdl3.wrap \
|
|
subprojects/SPIRV-Reflect.wrap \
|
|
subprojects/tomlplusplus.wrap \
|
|
subprojects/volk.wrap \
|
|
subprojects/VulkanMemoryAllocator.wrap \
|
|
subprojects/xxhash.wrap \
|
|
> updated.json
|
|
|
|
- name: Create PRs for updates
|
|
env:
|
|
GH_TOKEN: ${{ secrets.XEMU_ROBOT_TOKEN }}
|
|
run: |
|
|
set -euo pipefail
|
|
git config user.name "xemu-robot"
|
|
git config user.email "robot@xemu.app"
|
|
|
|
jq -c '.[]' updated.json | while read -r item; do
|
|
path=$(echo "$item" | jq -r '.path')
|
|
file_basename=$(basename "$path")
|
|
name="${file_basename%%.*}"
|
|
|
|
owner=$(echo "$item" | jq -r '.owner')
|
|
repo=$(echo "$item" | jq -r '.repo')
|
|
old_rev=$(echo "$item" | jq -r '.old_rev')
|
|
new_rev=$(echo "$item" | jq -r '.new_rev')
|
|
new_tag=$(echo "$item" | jq -r '.new_tag')
|
|
|
|
echo "➤ Processing $name"
|
|
branch="sync/bump-${name//\//-}-${GITHUB_RUN_ID}"
|
|
|
|
git switch --quiet -c "$branch" origin/master
|
|
git add "$path"
|
|
git commit -m "meson: Bump ${name} to ${new_tag}"
|
|
git push -u origin "$branch"
|
|
|
|
gh pr create \
|
|
--title "meson: Bump ${name} to ${new_tag}" \
|
|
--body "Automatic bump of \`${name}\` to [${new_tag}](https://github.com/${owner}/${repo}/compare/${old_rev}..${new_rev})." \
|
|
--base master \
|
|
--label dependencies
|
|
done
|