Compare commits

...
2 Commits
Author SHA1 Message Date
sirhcm c0d9c79668 add ninja to setup-tinygrad
Autogen / In-tree Autogen (macos) (pull_request) Waiting to run
Platform Tests / MacOS (unit) (pull_request) Waiting to run
Platform Tests / MacOS (unit, mock) (pull_request) Waiting to run
Platform Tests / MacOS (DEV=METAL) (1) (pull_request) Waiting to run
Platform Tests / MacOS (DEV=METAL) (2) (pull_request) Waiting to run
Platform Tests / MacOS (DEV=CPU:CLANG) (pull_request) Waiting to run
Platform Tests / MacOS (DEV=CPU:LLVM) (pull_request) Waiting to run
Platform Tests / MacOS (DEV=CPU:LVP) (pull_request) Waiting to run
Platform Tests / MacOS (DEV=WEBGPU) (pull_request) Waiting to run
Platform Tests / Windows (DEV=CPU:CLANG) (pull_request) Waiting to run
Platform Tests / Windows (DEV=CPU:LLVM) (pull_request) Waiting to run
Platform Tests / Windows (DEV=CPU:X86) (pull_request) Waiting to run
Platform Tests / Windows (DEV=WEBGPU) (pull_request) Waiting to run
Autogen / In-tree Autogen (comgr 2) (pull_request) Successful in 1m30s
Autogen / In-tree Autogen (pull_request) Failing after 2m36s
Check Line Counts / Check PR Branch status (pull_request_target) Successful in 15s
Check Line Counts / Core Library Line Difference (pull_request_target) Failing after 4s
Unit Tests / Docs (pull_request) Successful in 3m10s
Unit Tests / Torch Backend Tests (pull_request) Successful in 6m48s
Unit Tests / Torch Backend Training (pull_request) Successful in 6m11s
Unit Tests / Python Backend (pull_request) Successful in 4m7s
Unit Tests / Linters (pull_request) Successful in 4m17s
Unit Tests / Null Tests (pull_request) Successful in 7m19s
Unit Tests / Unit Tests (pull_request) Successful in 7m9s
Unit Tests / SPEC=2 (1) (pull_request) Successful in 6m58s
Unit Tests / SPEC=2 (2) (pull_request) Successful in 7m12s
Unit Tests / Fuzzing (pull_request) Successful in 3m23s
Unit Tests / CL IMAGE Tests (pull_request) Successful in 6m20s
Unit Tests / openpilot Compile Tests (pull_request) Successful in 7m27s
Unit Tests / ONNX (CPU) Tests (pull_request) Failing after 9m49s
Unit Tests / Optimization Tests (pull_request) Successful in 8m0s
Unit Tests / Test LLM (pull_request) Successful in 4m9s
Unit Tests / Models (pull_request) Successful in 5m16s
Unit Tests / Linux (DSP) (pull_request) Successful in 4m22s
Unit Tests / Linux (DEV=CL) (pull_request) Successful in 6m53s
Unit Tests / Linux (DEV=CPU:CLANG) (pull_request) Successful in 7m14s
Unit Tests / Linux (DEV=CPU:LLVM) (pull_request) Successful in 6m49s
Unit Tests / Linux (DEV=CPU:LVP) (pull_request) Successful in 6m38s
Unit Tests / Linux (DEV=CPU:X86) (pull_request) Successful in 5m52s
Unit Tests / Linux (DEV=WEBGPU) (pull_request) Successful in 6m40s
Unit Tests / AMD ASM IDE (pull_request) Successful in 5m43s
Unit Tests / hcq2 (pull_request) Failing after 4m18s
Unit Tests / Linux (amd gfx1100) (pull_request) Successful in 7m36s
Unit Tests / Linux (amdllvm gfx1100) (pull_request) Successful in 7m0s
Unit Tests / Linux (amd gfx1201) (pull_request) Successful in 7m36s
Unit Tests / Linux (amdllvm gfx1201) (pull_request) Successful in 7m11s
Unit Tests / Linux (amd gfx950) (pull_request) Successful in 7m1s
Unit Tests / Linux (amdllvm gfx950) (pull_request) Successful in 4m30s
Unit Tests / Linux (nv) (pull_request) Successful in 5m12s
Unit Tests / Linux (ptx) (pull_request) Successful in 3m50s
Unit Tests / Compile-only (DEV=NULL:IR3:a630) (pull_request) Successful in 2m28s
Unit Tests / Compile-only (DEV=NULL:NAK:sm_120) (pull_request) Successful in 1m53s
Unit Tests / Compile-only (DEV=NULL:QCOMCL:a630) (pull_request) Failing after 9m25s
Unit Tests / Linux (am) (pull_request) Successful in 3m52s
2026-08-18 15:53:24 -07:00
sirhcm 19dc868750 ci: cleanup deps 2026-08-18 15:48:48 -07:00
4 changed files with 22 additions and 18 deletions
+14 -6
View File
@@ -42,7 +42,11 @@ inputs:
required: false
default: 'false'
qemu:
description: "Install qemu"
description: "Install qemu?"
required: false
default: 'false'
ninja:
description: "Install ninja?"
required: false
default: 'false'
runs:
@@ -130,7 +134,7 @@ runs:
# ******************* apt *******************
- name: Setup apt
if: runner.os == 'Linux' && (inputs.opencl == 'true' || inputs.amd == 'true' || inputs.webgpu == 'true' || inputs.llvm == 'true' || inputs.qemu == 'true')
if: runner.os == 'Linux' && (inputs.opencl == 'true' || inputs.amd == 'true' || inputs.webgpu == 'true' || inputs.llvm == 'true' || inputs.qemu == 'true' || inputs.ninja == 'true')
shell: bash
run: |
sudo mkdir -p /var/cache/apt/archives
@@ -158,7 +162,7 @@ runs:
echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-20 main" | sudo tee /etc/apt/sources.list.d/llvm.list
- name: Compute Package List + Hash
if: runner.os == 'Linux' && (inputs.opencl == 'true' || inputs.amd == 'true' || inputs.webgpu == 'true' || inputs.llvm == 'true' || inputs.qemu == 'true')
if: runner.os == 'Linux' && (inputs.opencl == 'true' || inputs.amd == 'true' || inputs.webgpu == 'true' || inputs.llvm == 'true' || inputs.qemu == 'true' || inputs.ninja == 'true')
id: apt-pkgs
shell: bash
run: |
@@ -183,25 +187,29 @@ runs:
if [[ "${{ inputs.qemu }}" == "true" ]]; then
pkgs+=" qemu-user-static"
fi
# **** ninja ****
if [[ "${{ inputs.ninja }}" == "true" ]]; then
pkgs+=" ninja-build"
fi
echo "pkgs=$pkgs" >> "$GITHUB_OUTPUT"
echo "hash=$(echo -n "$pkgs" | sha256sum | cut -d' ' -f1)" >> "$GITHUB_OUTPUT"
- name: Cache apt (PR)
if: runner.os == 'Linux' && (inputs.opencl == 'true' || inputs.amd == 'true' || inputs.webgpu == 'true' || inputs.llvm == 'true' || inputs.qemu == 'true') && github.event_name == 'pull_request'
if: runner.os == 'Linux' && (inputs.opencl == 'true' || inputs.amd == 'true' || inputs.webgpu == 'true' || inputs.llvm == 'true' || inputs.qemu == 'true' || inputs.ninja == 'true') && github.event_name == 'pull_request'
uses: actions/cache/restore@v5
with:
path: /var/cache/apt/archives/
key: ${{ runner.os }}-${{ runner.arch }}-apt-${{ steps.apt-pkgs.outputs.hash }}-${{ env.CACHE_VERSION }}
- name: Cache apt
if: runner.os == 'Linux' && (inputs.opencl == 'true' || inputs.amd == 'true' || inputs.webgpu == 'true' || inputs.llvm == 'true' || inputs.qemu == 'true') && github.event_name != 'pull_request'
if: runner.os == 'Linux' && (inputs.opencl == 'true' || inputs.amd == 'true' || inputs.webgpu == 'true' || inputs.llvm == 'true' || inputs.qemu == 'true' || inputs.ninja == 'true') && github.event_name != 'pull_request'
uses: actions/cache@v5
with:
path: /var/cache/apt/archives/
key: ${{ runner.os }}-${{ runner.arch }}-apt-${{ steps.apt-pkgs.outputs.hash }}-${{ env.CACHE_VERSION }}
- name: Run apt Update + Install
if: runner.os == 'Linux' && (inputs.opencl == 'true' || inputs.amd == 'true' || inputs.webgpu == 'true' || inputs.llvm == 'true' || inputs.qemu == 'true')
if: runner.os == 'Linux' && (inputs.opencl == 'true' || inputs.amd == 'true' || inputs.webgpu == 'true' || inputs.llvm == 'true' || inputs.qemu == 'true' || inputs.ninja == 'true')
shell: bash
run: |
sudo apt -qq update || true
+1 -1
View File
@@ -35,7 +35,7 @@ jobs:
key: 'autogen'
amd: 'true'
llvm: 'true'
pydeps: 'pyyaml mako'
deps: 'autogen'
- name: Install autogen support packages
run: sudo apt-get install -y --no-install-recommends libclang-20-dev llvm-20-dev hip-dev libusb-1.0-0-dev libdrm-dev liburing-dev
- name: Regenerate autogen files
+3 -11
View File
@@ -31,8 +31,7 @@ jobs:
- name: Setup Environment
uses: ./.github/actions/setup-tinygrad
with:
deps: docs
pydeps: "capstone torch"
deps: "docs testing_minimal"
- name: Build wheel and show size
run: |
uv build --wheel
@@ -73,10 +72,7 @@ jobs:
deps: testing_unit
pydeps: "pillow torchvision expecttest"
llvm: 'true'
- name: Install ninja
run: |
sudo apt update || true
sudo apt install -y --no-install-recommends ninja-build
ninja: 'true'
- name: Test ResNet-18
run: DEBUG=2 python3 extra/torch_backend/example.py
- name: Test one op in torch tests
@@ -98,12 +94,8 @@ jobs:
with:
key: torch-backend-pillow-torchvision-et-pt
deps: testing_unit
pydeps: "pillow torchvision expecttest"
llvm: 'true'
- name: Install ninja
run: |
sudo apt update || true
sudo apt install -y --no-install-recommends ninja-build
ninja: 'true'
- name: Test beautiful_mnist in torch with TINY_BACKEND
run: STEPS=20 DEV=CPU TARGET_EVAL_ACC_PCT=90.0 MAX_BUFFER_SIZE=0 TINY_BACKEND=1 python3 examples/other_mnist/beautiful_mnist_torch.py
+4
View File
@@ -111,6 +111,10 @@ docs = [
"numpy",
]
mesa = ["tinymesa==25.2.7.2"]
autogen = [
"pyyaml",
"mako",
]
[tool.mutmut]