Skip to content

docs: add gitlab runner setup instructions#8

Merged
bniladridas merged 2 commits into
mainfrom
docs/gitlab-runner-setup
Mar 1, 2026
Merged

docs: add gitlab runner setup instructions#8
bniladridas merged 2 commits into
mainfrom
docs/gitlab-runner-setup

Conversation

@bniladridas
Copy link
Copy Markdown
Member

@bniladridas bniladridas commented Mar 1, 2026

Description

Adds instructions for setting up a self-hosted GitLab runner for CI/CD, including screenshot and step-by-step guide for Homebrew and manual installation methods.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other

Checklist

  • Code compiles with swiftc main.swift -framework Metal -o vector_add
  • Metal kernel validates with xcrun metal kernel.metal
  • CI passes (GitHub Actions, GitLab CI, CircleCI)
  • SPDX headers added to new/modified files
  • Documentation updated
  • Ready for review

Screenshots (if applicable)

GitLab Runner Settings

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the project's documentation by providing comprehensive instructions for configuring a self-hosted GitLab CI/CD runner on macOS. This addition aims to facilitate continuous integration and deployment workflows for developers using GitLab, offering flexibility beyond GitHub Actions.

Highlights

  • GitLab Runner Setup Documentation: Added a new section to the README.md providing comprehensive instructions for setting up a self-hosted GitLab CI/CD runner on macOS. This includes steps for installation via Homebrew or manual download, runner registration, and verification.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • README.md
    • Added a new section titled "Setting Up GitLab Runner" detailing installation, registration, and verification steps for macOS.
Activity
  • No specific activity (comments, reviews, or progress updates) was provided in the context for this pull request.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 1, 2026

✅ SPDX check passed — all changed files include the required license header.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds documentation for setting up a self-hosted GitLab runner on macOS. The instructions are a good start, but have a couple of issues that could confuse users or lead to a suboptimal setup. Specifically, the manual download link points to an Intel (amd64) binary instead of the native Apple Silicon (arm64) one, which is the focus of this project. Additionally, the instructions for starting the runner don't account for the differences between a Homebrew installation and a manual one, which will cause commands to fail for users who chose the manual path. My review includes suggestions to correct the binary link and clarify the service startup process.

Comment thread README.md Outdated

**Option 2: Manual Download**
```bash
sudo curl --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-amd64
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

This project focuses on Apple Silicon (M1/M2), but the download link provided is for the amd64 (Intel) architecture. For native performance on Apple Silicon, the arm64 binary should be used. While the amd64 binary can run via Rosetta 2, it's better to provide the native version.

Suggested change
sudo curl --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-amd64
sudo curl --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-arm64

Comment thread README.md Outdated
Comment on lines +98 to +103
gitlab-runner register --non-interactive \
--url https://gitlab.com \
--registration-token <TOKEN> \
--description macos \
--tag-list macos \
--executor shell
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Registering a system-wide runner (as implied by installing to /usr/local/bin) typically requires sudo to write the configuration file to a system directory like /etc/gitlab-runner/. Without sudo, the command may fail or create a user-specific configuration, which might not be what's intended for a service that runs system-wide.

Suggested change
gitlab-runner register --non-interactive \
--url https://gitlab.com \
--registration-token <TOKEN> \
--description macos \
--tag-list macos \
--executor shell
sudo gitlab-runner register --non-interactive \
--url https://gitlab.com \
--registration-token <TOKEN> \
--description macos \
--tag-list macos \
--executor shell

Comment thread README.md
Comment on lines +106 to +110
**Start and verify**
```bash
gitlab-runner start
gitlab-runner verify
```
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The gitlab-runner start command assumes the runner is installed as a service. This is handled automatically by the Homebrew installation, but not by the manual download steps. For users who followed the manual download, gitlab-runner start will fail because they first need to run gitlab-runner install.

To avoid confusion, it would be helpful to provide separate instructions for each installation method. For example:

**Start and Verify**

*   **For Homebrew installations:**
    The service is managed by `brew services`.
    ```bash
    brew services start gitlab-runner
    gitlab-runner verify
    ```
*   **For manual installations:**
    First, install the service, then start it.
    ```bash
    sudo gitlab-runner install
    sudo gitlab-runner start
    gitlab-runner verify
    ```

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 1, 2026

✅ SPDX check passed — all changed files include the required license header.

@bniladridas bniladridas force-pushed the docs/gitlab-runner-setup branch from f07a47c to 025ce56 Compare March 1, 2026 19:03
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 1, 2026

✅ SPDX check passed — all changed files include the required license header.

@bniladridas bniladridas merged commit 872d0a2 into main Mar 1, 2026
4 checks passed
@bniladridas bniladridas deleted the docs/gitlab-runner-setup branch March 1, 2026 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants