-
Notifications
You must be signed in to change notification settings - Fork 0
Use mise for bootstrapping and task running #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 |
This file was deleted.
| 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" |
| 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 \ | ||||||||
| -scheme "CenterMouse" \ | ||||||||
| -derivedDataPath "${PROJECT_ROOT}/DerivedData" \ | ||||||||
|
||||||||
| -derivedDataPath "${PROJECT_ROOT}/DerivedData" \ | |
| -derivedDataPath "${PROJECT_ROOT}/DerivedData" \ | |
| -clonedSourcePackagesDirPath "${PROJECT_ROOT}/DerivedData/Packages" \ |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
cleanoperation was removed from the xcodebuild command (original wasclean build). This means builds will no longer clean before building by default. Consider whether this is intentional or ifcleanshould be added back to ensure consistent builds.