Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -518,12 +518,19 @@ jobs:
# --prerelease on its own only sets the flag on a still-unpublished
# draft. Nothing here goes the other way: a release that is already
# published is never pushed back to a draft.
#
# A draft has no tag yet: Publish makes it from the draft's target.
# Rebuilding a draft from a newer commit has to move the target
# too, or Publish tags the commit before the change while the
# binaries were built after it.
target=""
if [ "$state" = "--draft" ]; then target="--target $GITHUB_SHA"; fi
if [ "${{ inputs.prerelease }}" = "true" ] && [ "$state" = "--draft" ]; then
echo "release $V is a draft and a prerelease was asked for — publishing it"
state="--prerelease --draft=false"
fi
echo "release $V exists ($state) — updating in place (not deleting)"
gh release edit "$V" $state --title "$V" --notes-file RELEASE_NOTES.md
gh release edit "$V" $state $target --title "$V" --notes-file RELEASE_NOTES.md
# Clear each asset by name first. `--clobber` alone is not enough:
# a run cancelled mid-upload leaves a half-created asset, and the
# API then answers 400 for a fresh upload of that name rather than
Expand Down
5 changes: 5 additions & 0 deletions crates/kirie-platform/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ pub struct PresentOptions {
pub activity_paused: Option<std::sync::Arc<std::sync::atomic::AtomicBool>>,
pub pointer: bool,
pub take_clicks: bool,
/// The GPU to draw on, as a word from `kirie gpus`. Only Windows reads it;
/// elsewhere `--gpu` has already pinned the Vulkan driver by the time the
/// platform starts.
pub gpu: Option<String>,
}

impl Default for PresentOptions {
Expand All @@ -38,6 +42,7 @@ impl Default for PresentOptions {
activity_paused: None,
pointer: true,
take_clicks: false,
gpu: None,
}
}
}
Expand Down
Loading
Loading