From 0ecbfa6d2b72284e34bf2bd3724785a7f3d181c6 Mon Sep 17 00:00:00 2001 From: Makito Date: Sat, 10 Jan 2026 00:56:03 +0900 Subject: [PATCH] chore(ci): add platform input to release-tamagotchi workflow --- .github/workflows/release-tamagotchi.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-tamagotchi.yml b/.github/workflows/release-tamagotchi.yml index 7540a088f..cbaf82ef8 100644 --- a/.github/workflows/release-tamagotchi.yml +++ b/.github/workflows/release-tamagotchi.yml @@ -31,6 +31,14 @@ on: description: Specific tag/commit for the release (leave empty to auto-detect latest tag) required: false type: string + platform: + description: Target platform (leave empty to build for all) + required: false + type: choice + options: + - windows + - macos + - linux schedule: - cron: '0 0 * * *' @@ -41,31 +49,36 @@ jobs: matrix: include: - - os: macos-15-intel + - if: ${{ inputs.platform == '' || inputs.platform == 'macos' }} + os: macos-15-intel artifact: darwin-x64 target: x86_64-apple-darwin arch: x64 builder-args: --macos --x64 - - os: macos-latest + - if: ${{ inputs.platform == '' || inputs.platform == 'macos' }} + os: macos-latest artifact: darwin-arm64 target: aarch64-apple-darwin builder-args: --macos --arm64 arch: arm64 - - os: ubuntu-latest + - if: ${{ inputs.platform == '' || inputs.platform == 'linux' }} + os: ubuntu-latest artifact: linux-x64 target: x86_64-unknown-linux-gnu builder-args: --linux --x64 arch: x64 - - os: ubuntu-24.04-arm + - if: ${{ inputs.platform == '' || inputs.platform == 'linux' }} + os: ubuntu-24.04-arm artifact: linux-arm64 target: aarch64-unknown-linux-gnu builder-args: --linux --arm64 arch: arm64 - - os: windows-latest + - if: ${{ inputs.platform == '' || inputs.platform == 'windows' }} + os: windows-latest artifact: windows-x64-setup target: x86_64-pc-windows-msvc builder-args: --windows --x64