Skip to content

armgit / uzu

Public Imported from GitHub
0

A high-performance inference engine for AI models

ci tests (#208)

uuuvn06270837d616
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml
index e8d82a857..ae3577a08 100644
--- a/.github/actions/setup/action.yml
+++ b/.github/actions/setup/action.yml
@@ -1,11 +1,40 @@
name: setup
description: Setup dependencies
+inputs:
+ linters:
+ description: "Install linters"
+ required: false
+ default: 'false'
+ metal:
+ description: "Install metal toolchain"
+ required: false
+ default: 'false'
+ test_model:
+ description: "Download test model"
+ required: false
+ default: 'false'
+
runs:
using: composite
steps:
- uses: dtolnay/rust-toolchain@stable
- - run: |
- brew install clang-format
+ - if: inputs.linters == 'true'
+ run: |
+ arch -arm64 brew install clang-format
+ shell: bash
+ - if: inputs.metal == 'true'
+ run: |
+ arch -arm64 brew install cmake
xcodebuild -downloadComponent MetalToolchain
shell: bash
+ - if: inputs.test_model == 'true'
+ uses: astral-sh/setup-uv@v7
+ with:
+ enable-cache: true
+ - if: inputs.test_model == 'true'
+ run: |
+ mkdir -p ~/.cache/ci-uzu/models
+ ln -sf ~/.cache/ci-uzu/models models
+ ./scripts/download_test_model.sh
+ shell: bash
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 4ea289873..75caafcf6 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -23,12 +23,14 @@ defaults:
jobs:
linters:
name: Linters
- runs-on: macos-26-xlarge
+ runs-on: [self-hosted, macos, x64, mac, m3max, runner2]
steps:
- uses: actions/checkout@v6
- id: setup
uses: ./.github/actions/setup
+ with:
+ linters: true
- name: Install nightly rustfmt
if: ${{ always() && steps.setup.outcome == 'success' }}
@@ -50,9 +52,9 @@ jobs:
cargo metadata --locked --format-version=1 > /dev/null
git diff --exit-code -- Cargo.lock
- build:
- name: Build${{ matrix.tracing && ' (tracing)' || '' }}
- runs-on: macos-26-xlarge
+ tests:
+ name: Tests${{ matrix.tracing && ' (tracing)' || '' }}
+ runs-on: [self-hosted, macos, x64, mac, m3max, runner1]
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
strategy:
@@ -65,11 +67,14 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
+ with:
+ metal: true
+ test_model: true
- name: Build crates
run: |
cargo build ${{ matrix.tracing && '--features tracing' || '' }}
- - name: Build tests
+ - name: Run tests
run: |
- cargo test ${{ matrix.tracing && '--features tracing' || '' }} --no-run
+ cargo test ${{ matrix.tracing && '--features tracing' || '' }}