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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
80 changes: 75 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
linux:
conformance:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
Expand All @@ -26,19 +26,89 @@ jobs:
"https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-linux-amd64"
chmod +x "$RUNNER_TEMP/bazel"
echo "$RUNNER_TEMP" >> "$GITHUB_PATH"
- name: Conformance and unit tests
- name: Architecture conformance
run: >-
bazel test //build_system/architecture:conformance_test
--spawn_strategy=local --test_output=errors --cache_test_results=no

unit:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Bazelisk
run: |
curl -fsSL -o "$RUNNER_TEMP/bazel" \
"https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-linux-amd64"
chmod +x "$RUNNER_TEMP/bazel"
echo "$RUNNER_TEMP" >> "$GITHUB_PATH"
- name: Unit tests
run: >-
bazel test
//build_system/architecture:conformance_test
//clients/tui/constants:unit_tests
//clients/tui/app:unit_tests
//clients/tui/cli:unit_tests
//core/crates/terminal/metadata:unit_tests
//core/crates/application/upgrade/cli:unit_tests
--spawn_strategy=local --test_output=errors --cache_test_results=no

integration:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Bazelisk
run: |
curl -fsSL -o "$RUNNER_TEMP/bazel" \
"https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-linux-amd64"
chmod +x "$RUNNER_TEMP/bazel"
echo "$RUNNER_TEMP" >> "$GITHUB_PATH"
- name: Integration tests
run: >-
bazel test
//core/crates/terminal/metadata:integration_tests
//clients/tui/app:integration_tests
//clients/tui/cli:integration_tests
--spawn_strategy=local --test_output=errors --cache_test_results=no

client-boundary:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Bazelisk
run: |
curl -fsSL -o "$RUNNER_TEMP/bazel" \
"https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-linux-amd64"
chmod +x "$RUNNER_TEMP/bazel"
echo "$RUNNER_TEMP" >> "$GITHUB_PATH"
- name: Client boundary
run: bazel build --spawn_strategy=local //build_system/architecture:client_boundary

build-linux:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Bazelisk
run: |
curl -fsSL -o "$RUNNER_TEMP/bazel" \
"https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-linux-amd64"
chmod +x "$RUNNER_TEMP/bazel"
echo "$RUNNER_TEMP" >> "$GITHUB_PATH"
- name: Build YoloShell
run: bazel build --spawn_strategy=local -c opt //core:yolo

macos:
runs-on: macos-15
build-macos:
runs-on: macos-26
timeout-minutes: 90
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:

build-macos-arm64:
needs: verify
runs-on: macos-15
runs-on: macos-26
steps:
- uses: actions/checkout@v4
- name: Require Apple Silicon
Expand Down
72 changes: 72 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
stages:
- verify
- sync
- release

workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
- if: '$CI_COMMIT_TAG =~ /^v[0-9]/'
- if: '$CI_PIPELINE_SOURCE == "schedule"'
- if: '$CI_PIPELINE_SOURCE == "web"'
Expand All @@ -15,12 +18,77 @@ default:
variables:
GIT_DEPTH: "0"
GITHUB_REPOSITORY: "AgentsMesh/YoloShell"
BAZELISK_HOME: "$CI_PROJECT_DIR/.cache/bazelisk"

# Linux gates run on the internal runner. The macOS build gate remains in
# GitHub Actions; the release jobs below stay tag/schedule/web only.
.bazel:
tags: [linux]
before_script:
- mkdir -p .cache/bin
- |
if ! command -v bazel >/dev/null 2>&1; then
curl -fsSL -o .cache/bin/bazel \
"https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-linux-amd64"
chmod +x .cache/bin/bazel
export PATH="$PWD/.cache/bin:$PATH"
fi

conformance:
extends: .bazel
stage: verify
timeout: 60m
script:
- bazel test //build_system/architecture:conformance_test
--spawn_strategy=local --test_output=errors --cache_test_results=no

unit:
extends: .bazel
stage: verify
timeout: 60m
script:
- bazel test
//clients/tui/constants:unit_tests
//clients/tui/app:unit_tests
//clients/tui/cli:unit_tests
//core/crates/terminal/metadata:unit_tests
//core/crates/application/upgrade/cli:unit_tests
--spawn_strategy=local --test_output=errors --cache_test_results=no

integration:
extends: .bazel
stage: verify
timeout: 60m
script:
- bazel test
//core/crates/terminal/metadata:integration_tests
//clients/tui/app:integration_tests
//clients/tui/cli:integration_tests
--spawn_strategy=local --test_output=errors --cache_test_results=no

client-boundary:
extends: .bazel
stage: verify
timeout: 60m
script:
- bazel build --spawn_strategy=local //build_system/architecture:client_boundary

build-linux:
extends: .bazel
stage: verify
timeout: 90m
script:
- bazel build --spawn_strategy=local -c opt //core:yolo

sync-public:
stage: sync
tags: [linux]
script:
- sh scripts/release/sync-public.sh
rules:
- if: '$CI_COMMIT_TAG =~ /^v[0-9]/'
- if: '$CI_PIPELINE_SOURCE == "schedule"'
- if: '$CI_PIPELINE_SOURCE == "web"'

trigger-release:
stage: release
Expand All @@ -32,3 +100,7 @@ trigger-release:
script:
- eval "$(sh scripts/release/variables.sh)"
- sh scripts/release/trigger-github.sh "$RELEASE_TAG" "$VERSION" "$RELEASE_NAME" "$PRERELEASE" "$CI_COMMIT_SHA"
rules:
- if: '$CI_COMMIT_TAG =~ /^v[0-9]/'
- if: '$CI_PIPELINE_SOURCE == "schedule"'
- if: '$CI_PIPELINE_SOURCE == "web"'
Loading
Loading