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
2 changes: 1 addition & 1 deletion .github/workflows/uitests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
paths:
- 'Example/OpenSwiftUIUITests/**'
- 'Example/setup.sh'
- 'Example/mise*.toml'
- 'mise*.toml'
- '.github/workflows/uitests.yml'
- '.github/actions/uitests/action.yml'
workflow_dispatch:
Expand Down
12 changes: 6 additions & 6 deletions Example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ Run the CI setup script from the `OpenSwiftUI` repository root. It checks out th

Since OpenAttributeGraph is not yet completed, you need to configure an AG backend before building.

This example defaults to Apple's private AttributeGraph framework through `mise.toml`.
This example defaults to Apple's private AttributeGraph framework through the repository's root `mise.toml`.

To use Compute instead, run setup with the Compute mise environment:

```shell
./setup.sh --compute
```

The Compute environment is defined in `mise.compute.toml`. It disables the private AttributeGraph framework and uses `OpenSwiftUIProject/Compute` from source with `0.3.0-bugfix.1` tag.
The Compute environment is defined in the repository's root `mise.compute.toml`. It disables the private AttributeGraph framework and uses `OpenSwiftUIProject/Compute` from source with `0.3.0-bugfix.1` tag.

## Generate Project

Expand All @@ -33,20 +33,20 @@ The recommended setup path is the local setup script:
./setup.sh
```

The script trusts and installs the tools declared by `Example/mise.toml`, then runs Tuist through `mise exec` so the pinned Tuist version is used.
The script trusts and installs the tools declared by the repository's root `mise.toml`, then runs Tuist through `mise exec` so the pinned Tuist version is used.

To generate the project with Compute:

```shell
./setup.sh --compute
```

This uses `mise --env compute`, which loads `Example/mise.compute.toml` for `mise install`, `tuist install`, and `tuist generate`.
This uses `mise --env compute`, which loads the repository's root `mise.compute.toml` for `mise install`, `tuist install`, and `tuist generate`.

To run the steps manually:

```shell
mise trust mise.toml
mise trust ../mise.toml
mise install
mise exec -- tuist install
mise exec -- tuist generate --no-open
Expand All @@ -55,7 +55,7 @@ mise exec -- tuist generate --no-open
Or with Compute:

```shell
mise trust mise.compute.toml
mise trust ../mise.compute.toml

@augmentcode augmentcode Bot Jul 19, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The manual Compute instructions only mise trust ../mise.compute.toml, but mise --env compute … will typically still load the base ../mise.toml as well. If someone follows just this section, they may still hit an untrusted-config prompt for mise.toml.

Severity: low

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

mise --env compute install
mise --env compute exec -- tuist install
mise --env compute exec -- tuist generate --no-open
Expand Down
6 changes: 0 additions & 6 deletions Example/mise.toml

This file was deleted.

6 changes: 3 additions & 3 deletions Example/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ usage() {
"Usage: $(basename "$0") [--compute]" \
"" \
"Options:" \
" --compute Use mise.compute.toml while installing tools and generating the project."
" --compute Use ../mise.compute.toml while installing tools and generating the project."
}

run_mise() {
Expand Down Expand Up @@ -39,9 +39,9 @@ while [[ $# -gt 0 ]]; do
done

cd "$SCRIPT_DIR"
mise trust "$SCRIPT_DIR/mise.toml"
mise trust "$SCRIPT_DIR/../mise.toml"
if [[ ${#MISE_ARGS[@]} -gt 0 ]]; then
mise trust "$SCRIPT_DIR/mise.compute.toml"
mise trust "$SCRIPT_DIR/../mise.compute.toml"
fi
run_mise install
run_mise exec -- tuist install
Expand Down
File renamed without changes.
Loading