Skip to content

Commit 3840b0a

Browse files
Copilothanthor
andcommitted
Install just via Homebrew in CI and update agent instructions
Co-authored-by: hanthor <5840441+hanthor@users.noreply.github.com>
1 parent 47fee77 commit 3840b0a

File tree

4 files changed

+38
-5
lines changed

4 files changed

+38
-5
lines changed

.github/copilot-instructions.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,18 @@ sudo just iso yellowfin base local
3939
## Working Effectively
4040

4141
### Dependencies and Setup
42-
- Install Just command runner to a temp dir not the root of the repo: `mkdir -p /tmp/just && cd /tmp/just && wget https://github.com/casey/just/releases/download/1.32.0/just-1.32.0-x86_64-unknown-linux-musl.tar.gz -O just.tar.gz && tar xzf just.tar.gz && sudo mv just /usr/local/bin/ && cd - && rm -rf /tmp/just`
42+
- **Install Just via Homebrew** (recommended for consistency with CI):
43+
```bash
44+
# Install Homebrew if not already installed
45+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
46+
47+
# Install just
48+
brew install just
49+
```
50+
- **Alternative**: Install Just from GitHub releases to a temp dir (not recommended):
51+
```bash
52+
mkdir -p /tmp/just && cd /tmp/just && wget https://github.com/casey/just/releases/download/1.32.0/just-1.32.0-x86_64-unknown-linux-musl.tar.gz -O just.tar.gz && tar xzf just.tar.gz && sudo mv just /usr/local/bin/ && cd - && rm -rf /tmp/just
53+
```
4354
- **CRITICAL**: NEVER extract just or any other tools directly into the repository root as this will overwrite project files like LICENSE and README.md
4455
- Podman is required for container builds (usually pre-installed in CI environments)
4556
- Shellcheck is required for linting: `sudo apt-get update && sudo apt-get install -y shellcheck`

.github/workflows/build-iso.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,11 @@ jobs:
194194
- name: Checkout
195195
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v5
196196

197-
- name: Setup Just
198-
uses: extractions/setup-just@e33e0265a09d6d736e2ee1e0eb685ef1de4669ff # v3
197+
- name: Setup Homebrew
198+
uses: Homebrew/actions/setup-homebrew@master
199+
200+
- name: Install Just via Homebrew
201+
run: brew install just
199202

200203
- name: Check Just Syntax
201204
shell: bash

.github/workflows/reusable-build-image.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,11 @@ jobs:
138138
if: ${{ matrix.platform != 'linux/arm64' && inputs.cleanup_runner }}
139139
uses: ublue-os/container-storage-action@main
140140

141-
- name: Setup Just
142-
uses: extractions/setup-just@e33e0265a09d6d736e2ee1e0eb685ef1de4669ff # v3
141+
- name: Setup Homebrew
142+
uses: Homebrew/actions/setup-homebrew@master
143+
144+
- name: Install Just via Homebrew
145+
run: brew install just
143146

144147
- name: Check Just Syntax
145148
shell: bash

AGENTS.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
This document contains guidelines for AI agents (like GitHub Copilot) working on the TunaOS repository.
44

5+
## Setup Requirements
6+
7+
### Install Just via Homebrew
8+
9+
Before working on this repository, ensure you have `just` installed via Homebrew for consistency with CI:
10+
11+
```bash
12+
# Install Homebrew if not already installed (Linux/macOS)
13+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
14+
15+
# Install just
16+
brew install just
17+
```
18+
19+
**Why Homebrew?** The CI environment uses Homebrew to install just, ensuring version consistency between local development and CI builds. This prevents formatting mismatches that can cause CI failures.
20+
521
## Pre-Commit Requirements
622

723
### Always Run `just fix` Before Committing

0 commit comments

Comments
 (0)