mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-28 19:11:03 +08:00
test(ci): balance remaining macOS bottleneck
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# kilocode_change - new file
|
||||
name: "Setup Linux Sandbox"
|
||||
description: "Build the Linux bubblewrap helper"
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Setup Zig
|
||||
run: |
|
||||
curl --fail --location --retry 3 \
|
||||
https://ziglang.org/download/0.14.0/zig-linux-x86_64-0.14.0.tar.xz \
|
||||
--output "$RUNNER_TEMP/zig.tar.xz"
|
||||
echo "473ec26806133cf4d1918caf1a410f8403a13d979726a9045b421b685031a982 $RUNNER_TEMP/zig.tar.xz" | sha256sum --check --status
|
||||
tar -xJf "$RUNNER_TEMP/zig.tar.xz" -C "$RUNNER_TEMP"
|
||||
echo "$RUNNER_TEMP/zig-linux-x86_64-0.14.0" >> "$GITHUB_PATH"
|
||||
shell: bash
|
||||
|
||||
- name: Build bubblewrap helper
|
||||
run: |
|
||||
bun packages/opencode/script/kilocode/bubblewrap.ts --arch x64 --output "$RUNNER_TEMP/bwrap"
|
||||
echo "KILO_BWRAP_PATH=$RUNNER_TEMP/bwrap" >> "$GITHUB_ENV"
|
||||
shell: bash
|
||||
@@ -64,7 +64,7 @@ jobs:
|
||||
exit 0
|
||||
fi
|
||||
echo 'general=true' >> "$GITHUB_OUTPUT"
|
||||
echo 'settings=[{"name":"linux-1","host":"blacksmith-4vcpu-ubuntu-2404","run":true,"shard":"1/2","packages":true},{"name":"linux-2","host":"blacksmith-4vcpu-ubuntu-2404","run":true,"shard":"2/2","packages":false},{"name":"macos-1","host":"macos-15","run":true,"shard":"1/2","packages":true},{"name":"macos-2","host":"macos-15","run":true,"shard":"2/2","packages":false},{"name":"windows-1","host":"blacksmith-4vcpu-windows-2025","run":true,"shard":"1/4","packages":true},{"name":"windows-2","host":"blacksmith-4vcpu-windows-2025","run":true,"shard":"2/4","packages":false},{"name":"windows-3","host":"blacksmith-4vcpu-windows-2025","run":true,"shard":"3/4","packages":false},{"name":"windows-4","host":"blacksmith-4vcpu-windows-2025","run":true,"shard":"4/4","packages":false}]' >> "$GITHUB_OUTPUT"
|
||||
echo 'settings=[{"name":"linux-1","host":"blacksmith-4vcpu-ubuntu-2404","run":true,"shard":"1/2","packages":true},{"name":"linux-2","host":"blacksmith-4vcpu-ubuntu-2404","run":true,"shard":"2/2","packages":false},{"name":"macos-1","host":"macos-15","run":true,"shard":"1/3","packages":true},{"name":"macos-2","host":"macos-15","run":true,"shard":"2/3","packages":false},{"name":"macos-3","host":"macos-15","run":true,"shard":"3/3","packages":false},{"name":"windows-1","host":"blacksmith-4vcpu-windows-2025","run":true,"shard":"1/4","packages":true},{"name":"windows-2","host":"blacksmith-4vcpu-windows-2025","run":true,"shard":"2/4","packages":false},{"name":"windows-3","host":"blacksmith-4vcpu-windows-2025","run":true,"shard":"3/4","packages":false},{"name":"windows-4","host":"blacksmith-4vcpu-windows-2025","run":true,"shard":"4/4","packages":false}]' >> "$GITHUB_OUTPUT"
|
||||
|
||||
unit:
|
||||
name: unit (${{ matrix.settings.name }})
|
||||
@@ -110,21 +110,9 @@ jobs:
|
||||
uses: ./.github/actions/setup-bun
|
||||
|
||||
# kilocode_change start
|
||||
- name: Setup Zig for Linux sandbox helper
|
||||
- name: Setup Linux sandbox helper
|
||||
if: matrix.settings.run && runner.os == 'Linux'
|
||||
run: |
|
||||
curl --fail --location --retry 3 \
|
||||
https://ziglang.org/download/0.14.0/zig-linux-x86_64-0.14.0.tar.xz \
|
||||
--output "$RUNNER_TEMP/zig.tar.xz"
|
||||
echo "473ec26806133cf4d1918caf1a410f8403a13d979726a9045b421b685031a982 $RUNNER_TEMP/zig.tar.xz" | sha256sum --check --status
|
||||
tar -xJf "$RUNNER_TEMP/zig.tar.xz" -C "$RUNNER_TEMP"
|
||||
echo "$RUNNER_TEMP/zig-linux-x86_64-0.14.0" >> "$GITHUB_PATH"
|
||||
|
||||
- name: Build Linux sandbox helper
|
||||
if: matrix.settings.run && runner.os == 'Linux'
|
||||
run: |
|
||||
bun packages/opencode/script/kilocode/bubblewrap.ts --arch x64 --output "$RUNNER_TEMP/bwrap"
|
||||
echo "KILO_BWRAP_PATH=$RUNNER_TEMP/bwrap" >> "$GITHUB_ENV"
|
||||
uses: ./.github/actions/setup-linux-sandbox
|
||||
# kilocode_change end
|
||||
- name: Configure git identity
|
||||
if: matrix.settings.run
|
||||
@@ -192,19 +180,8 @@ jobs:
|
||||
- name: Setup Bun
|
||||
uses: ./.github/actions/setup-bun
|
||||
|
||||
- name: Setup Zig for Linux sandbox helper
|
||||
run: |
|
||||
curl --fail --location --retry 3 \
|
||||
https://ziglang.org/download/0.14.0/zig-linux-x86_64-0.14.0.tar.xz \
|
||||
--output "$RUNNER_TEMP/zig.tar.xz"
|
||||
echo "473ec26806133cf4d1918caf1a410f8403a13d979726a9045b421b685031a982 $RUNNER_TEMP/zig.tar.xz" | sha256sum --check --status
|
||||
tar -xJf "$RUNNER_TEMP/zig.tar.xz" -C "$RUNNER_TEMP"
|
||||
echo "$RUNNER_TEMP/zig-linux-x86_64-0.14.0" >> "$GITHUB_PATH"
|
||||
|
||||
- name: Build Linux sandbox helper
|
||||
run: |
|
||||
bun packages/opencode/script/kilocode/bubblewrap.ts --arch x64 --output "$RUNNER_TEMP/bwrap"
|
||||
echo "KILO_BWRAP_PATH=$RUNNER_TEMP/bwrap" >> "$GITHUB_ENV"
|
||||
- name: Setup Linux sandbox helper
|
||||
uses: ./.github/actions/setup-linux-sandbox
|
||||
|
||||
- name: Configure git identity
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user