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
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
name: Build

on:
push:
branches: main
pull_request:
branches: main
workflow_dispatch:
push:
branches:
- main
- release/**

jobs:
build:
name: Build using xcodebuild
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: make build
- uses: actions/checkout@v6
- uses: jdx/mise-action@v3
- run: mise run build
14 changes: 0 additions & 14 deletions Makefile

This file was deleted.

20 changes: 20 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[settings]
activate_aggressive = true
experimental = true

[env]
PROJECT_ROOT = "{{config_root}}"

[tools]
xcbeautify = "latest"
xcodes = "latest"

[tasks.bootstrap]
run = "xcodes select 26.1.1"

[tasks.build]
depends = ["bootstrap"]
run = "scripts/build.bash"

[tasks.clean]
run = "rm -rf DerivedData"
29 changes: 29 additions & 0 deletions scripts/build.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env bash

set -o errexit # Exit on error
set -o nounset # Exit on unset variable
set -o pipefail # Exit on pipe failure

# Output extra debug logging if `DEBUG` or `TRACE` are set to `true` or `RUNNER_DEBUG` is set to `1`
# (https://docs.github.com/en/actions/reference/workflows-and-actions/variables)
if [[ "${DEBUG:-}" == "true" || "${TRACE:-}" == true || "${RUNNER_DEBUG:-}" == "1" ]]; then
set -o xtrace # Trace the execution of the script (debug)
fi

function main() {
xcrun xcodebuild build \

Copilot AI Dec 2, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The clean operation was removed from the xcodebuild command (original was clean build). This means builds will no longer clean before building by default. Consider whether this is intentional or if clean should be added back to ensure consistent builds.

Suggested change
xcrun xcodebuild build \
xcrun xcodebuild clean build \

Copilot uses AI. Check for mistakes.
-scheme "CenterMouse" \
-derivedDataPath "${PROJECT_ROOT}/DerivedData" \

Copilot AI Dec 2, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The -clonedSourcePackagesDirPath parameter was removed from the xcodebuild command. This was present in the original build.sh script and may be necessary for package dependency management. Verify this removal is intentional, or add it back: -clonedSourcePackagesDirPath \"${PROJECT_ROOT}/DerivedData/Packages\"

Suggested change
-derivedDataPath "${PROJECT_ROOT}/DerivedData" \
-derivedDataPath "${PROJECT_ROOT}/DerivedData" \
-clonedSourcePackagesDirPath "${PROJECT_ROOT}/DerivedData/Packages" \

Copilot uses AI. Check for mistakes.
CODE_SIGN_IDENTITY= | xcbeautify
}

trap handle_exit EXIT
function handle_exit() {
declare -ri exit_code="$?"
if [[ "${exit_code}" -ne 0 ]]; then
declare -r script_name="${0##*/}"
echo -e "\n==> ${script_name} exited with code ${exit_code}"
fi
}

main "$@"
13 changes: 0 additions & 13 deletions scripts/build.sh

This file was deleted.

Loading