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.ymlindex e8d82a857..ae3577a08 100644--- a/.github/actions/setup/action.yml+++ b/.github/actions/setup/action.yml@@ -1,11 +1,40 @@name: setupdescription: 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: compositesteps:- 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 cmakexcodebuild -downloadComponent MetalToolchainshell: 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: bashdiff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 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: setupuses: ./.github/actions/setup+ with:+ linters: true- name: Install nightly rustfmtif: ${{ always() && steps.setup.outcome == 'success' }}@@ -50,9 +52,9 @@ jobs:cargo metadata --locked --format-version=1 > /dev/nullgit 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 cratesrun: |cargo build ${{ matrix.tracing && '--features tracing' || '' }}- - name: Build tests+ - name: Run testsrun: |- cargo test ${{ matrix.tracing && '--features tracing' || '' }} --no-run+ cargo test ${{ matrix.tracing && '--features tracing' || '' }}