From 9567075e208c71a29101ef403d1f89497a23b613 Mon Sep 17 00:00:00 2001 From: Salman Chishti Date: Tue, 24 Mar 2026 14:28:19 +0000 Subject: [PATCH] Upgrade GitHub Actions for Node 24 compatibility (#15445) Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com> Co-authored-by: chenyu --- .github/actions/setup-tinygrad/action.yml | 10 ++-- .github/workflows/autogen.yml | 12 ++--- .github/workflows/benchmark.yml | 28 +++++----- .github/workflows/benchmark_search.yml | 2 +- .github/workflows/docs.yml | 6 +-- .github/workflows/mlperf.yml | 2 +- .github/workflows/python-publish.yml | 4 +- .github/workflows/szdiff.yml | 8 +-- .github/workflows/test.yml | 66 +++++++++++------------ 9 files changed, 69 insertions(+), 69 deletions(-) diff --git a/.github/actions/setup-tinygrad/action.yml b/.github/actions/setup-tinygrad/action.yml index f8a67ffa89..44203c8db7 100644 --- a/.github/actions/setup-tinygrad/action.yml +++ b/.github/actions/setup-tinygrad/action.yml @@ -54,7 +54,7 @@ runs: steps: - name: Set up Python ${{ inputs.python-version }} id: setup-python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ inputs.python-version }} @@ -70,7 +70,7 @@ runs: - name: Cache Python packages if: github.event_name != 'pull_request' id: restore-venv - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ${{ github.workspace }}/.venv key: venv-${{ runner.os }}-${{ runner.arch }}-python-${{ steps.setup-python.outputs.python-version }}-${{ inputs.deps }}-${{ inputs.pydeps }}-${{ env.CACHE_VERSION }} @@ -85,7 +85,7 @@ runs: key: downloads-${{ github.job }}-${{ inputs.key }}-${{ env.CACHE_VERSION }} - name: Cache downloads if: inputs.key != '' && github.event_name != 'pull_request' - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ${{ runner.os == 'Linux' && '~/.cache/tinygrad/downloads/' || '~/Library/Caches/tinygrad/downloads/' }} key: downloads-${{ github.job }}-${{ inputs.key }}-${{ env.CACHE_VERSION }} @@ -202,7 +202,7 @@ runs: 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.cuda == 'true' || inputs.webgpu == 'true' || inputs.llvm == 'true') && github.event_name != 'pull_request' - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: /var/cache/apt/archives/ key: ${{ runner.os }}-${{ runner.arch }}-apt-${{ steps.apt-pkgs.outputs.hash }}-${{ env.CACHE_VERSION }} @@ -269,7 +269,7 @@ runs: - name: Cache gpuocelot if: inputs.ocelot == 'true' && github.event_name != 'pull_request' id: cache-build - uses: actions/cache@v4 + uses: actions/cache@v5 env: cache-name: cache-gpuocelot-build-1 with: diff --git a/.github/workflows/autogen.yml b/.github/workflows/autogen.yml index c7c4842638..bc4354f147 100644 --- a/.github/workflows/autogen.yml +++ b/.github/workflows/autogen.yml @@ -28,7 +28,7 @@ jobs: timeout-minutes: 15 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -68,7 +68,7 @@ jobs: fi - name: Upload patch artifact if: failure() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: autogen-ubuntu-patch path: autogen-ubuntu.patch @@ -79,7 +79,7 @@ jobs: timeout-minutes: 15 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -99,7 +99,7 @@ jobs: fi - name: Upload patch artifact if: failure() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: autogen-macos-patch path: autogen-macos.patch @@ -110,7 +110,7 @@ jobs: timeout-minutes: 15 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -138,7 +138,7 @@ jobs: fi - name: Upload patch artifact if: failure() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: autogen-comgr2-patch path: autogen-comgr2.patch diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index b823c454c3..527b512dcd 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -32,7 +32,7 @@ jobs: if: github.repository_owner == 'tinygrad' steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 # brew install uv - name: setup python environment run: | @@ -64,7 +64,7 @@ jobs: if: github.repository_owner == 'tinygrad' steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Symlink models and datasets run: | mkdir -p weights @@ -154,7 +154,7 @@ jobs: # TODO: too slow # - name: Run 10 CIFAR training steps w winograd # run: BENCHMARK_LOG=cifar_10steps_wino JIT=1 ASSERT_MIN_STEP_TIME=150 WINO=1 STEPS=10 python3.11 examples/hlb_cifar10.py - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 with: name: Speed (Mac) path: | @@ -174,7 +174,7 @@ jobs: if: github.repository_owner == 'tinygrad' steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: setup staging db if: github.ref == 'refs/heads/update_benchmark_staging' run: | @@ -207,7 +207,7 @@ jobs: if: github.repository_owner == 'tinygrad' steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Print nvidia-smi run: nvidia-smi - name: Symlink models and datasets @@ -287,7 +287,7 @@ jobs: run: BENCHMARK_LOG=gpt2_half NV=1 HALF=1 ASSERT_MIN_STEP_TIME=6 python3 examples/gpt2.py --count 10 --temperature 0 --timing - name: Run GPT2 w HALF/BEAM run: BENCHMARK_LOG=gpt2_half_beam NV=1 HALF=1 JITBEAM=2 IGNORE_BEAM_CACHE=1 python3 examples/gpt2.py --count 10 --temperature 0 --timing - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 with: name: Speed (NVIDIA) path: | @@ -305,7 +305,7 @@ jobs: if: github.repository_owner == 'tinygrad' steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Symlink models and datasets run: | mkdir -p weights @@ -367,7 +367,7 @@ jobs: if: github.repository_owner == 'tinygrad' steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setcap to python run: ./extra/amdpci/setup_python_cap.sh - name: Remove amd modules @@ -479,7 +479,7 @@ jobs: if: github.repository_owner == 'tinygrad' steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setcap to python run: ./extra/amdpci/setup_python_cap.sh - name: Remove amd modules @@ -534,7 +534,7 @@ jobs: if: github.repository_owner == 'tinygrad' steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setcap to python run: ./extra/amdpci/setup_python_cap.sh - name: Remove amd modules @@ -580,7 +580,7 @@ jobs: if: github.repository_owner == 'tinygrad' steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: setup staging db if: github.ref == 'refs/heads/update_benchmark_staging' run: | @@ -625,7 +625,7 @@ jobs: if: github.repository_owner == 'tinygrad' steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: setup staging db if: github.ref == 'refs/heads/update_benchmark_staging' run: | @@ -646,7 +646,7 @@ jobs: if: github.repository_owner == 'tinygrad' steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setcap to python run: ./extra/amdpci/setup_python_cap.sh - name: Remove amd modules @@ -718,7 +718,7 @@ jobs: if: github.repository_owner == 'tinygrad' steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setcap to python run: ./extra/amdpci/setup_python_cap.sh - name: Remove nv modules diff --git a/.github/workflows/benchmark_search.yml b/.github/workflows/benchmark_search.yml index 2c56c3b82a..28a068dd9f 100644 --- a/.github/workflows/benchmark_search.yml +++ b/.github/workflows/benchmark_search.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Remove amdgpu run: sudo rmmod amdgpu || true - name: Cleanup running AM processes diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index def8b3160f..c32c1466b1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -10,16 +10,16 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Configure Git Credentials run: | git config user.name github-actions[bot] git config user.email 41898282+github-actions[bot]@users.noreply.github.com - - uses: actions/setup-python@v5 + - uses: actions/setup-python@v6 with: python-version: 3.x - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV - - uses: actions/cache@v4 + - uses: actions/cache@v5 with: key: mkdocs-material-${{ env.cache_id }} path: .cache diff --git a/.github/workflows/mlperf.yml b/.github/workflows/mlperf.yml index eedc8989f0..63dcb39e3a 100644 --- a/.github/workflows/mlperf.yml +++ b/.github/workflows/mlperf.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Cleanup running AM processes run: python extra/amdpci/am_smi.py --pids --kill - name: Symlink datasets diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 8f56f3eed7..397467a86f 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -12,9 +12,9 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v6 with: python-version: '3.x' - name: Install dependencies diff --git a/.github/workflows/szdiff.yml b/.github/workflows/szdiff.yml index 610431a51b..03bf1f5495 100644 --- a/.github/workflows/szdiff.yml +++ b/.github/workflows/szdiff.yml @@ -15,7 +15,7 @@ jobs: branchstat: ${{ steps.brstat.outputs.stat}} steps: - name: Check code from PR branch - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: ${{ github.event.pull_request.head.repo.full_name }} ref: ${{ github.event.pull_request.head.sha }} @@ -46,18 +46,18 @@ jobs: if: needs.checkbranch.outputs.branchstat == 'false' steps: - name: Checkout code from PR branch - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: ${{ github.event.pull_request.head.repo.full_name }} ref: ${{ github.event.pull_request.head.sha }} path: pr # the base default to tinygrad master and cannot be other fork branch for security purpose - name: Checkout code from tinygrad master - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: path: base - name: Set up Python 3.12 - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: '3.12' - name: Count Line Diff diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1edb3dec95..343bc7283c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: timeout-minutes: 20 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -41,7 +41,7 @@ jobs: CHECK_OOB: 0 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -93,7 +93,7 @@ jobs: timeout-minutes: 15 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -129,7 +129,7 @@ jobs: timeout-minutes: 15 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -151,7 +151,7 @@ jobs: timeout-minutes: 15 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -220,7 +220,7 @@ jobs: steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -251,7 +251,7 @@ jobs: steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -282,7 +282,7 @@ jobs: steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -325,7 +325,7 @@ jobs: timeout-minutes: 15 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -341,7 +341,7 @@ jobs: timeout-minutes: 10 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -362,7 +362,7 @@ jobs: timeout-minutes: 15 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -383,7 +383,7 @@ jobs: timeout-minutes: 10 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -397,7 +397,7 @@ jobs: - name: Run fused optimizer tests run: CL=1 FUSE_OPTIM=1 python -m pytest -n=auto test/models/test_mnist.py test/backend/test_optim.py -k "not muon" - name: Upload artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: sops.gz path: /tmp/sops.gz @@ -408,7 +408,7 @@ jobs: timeout-minutes: 15 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -437,7 +437,7 @@ jobs: steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -464,7 +464,7 @@ jobs: timeout-minutes: 20 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -500,7 +500,7 @@ jobs: CHECK_OOB: 0 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -521,7 +521,7 @@ jobs: timeout-minutes: 15 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -544,7 +544,7 @@ jobs: timeout-minutes: 20 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -564,7 +564,7 @@ jobs: timeout-minutes: 15 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -585,7 +585,7 @@ jobs: timeout-minutes: 15 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -619,7 +619,7 @@ jobs: timeout-minutes: 20 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -647,7 +647,7 @@ jobs: MOCKGPU: 1 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -694,7 +694,7 @@ jobs: AMD_IFACE: PCI steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -726,7 +726,7 @@ jobs: AMD_LLVM: ${{ matrix.backend == 'amdllvm' && '1' || matrix.backend != 'amdllvm' && '0' }} steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -759,7 +759,7 @@ jobs: FORWARD_ONLY: 1 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -792,7 +792,7 @@ jobs: timeout-minutes: 20 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -822,7 +822,7 @@ jobs: timeout-minutes: 20 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -886,7 +886,7 @@ jobs: timeout-minutes: 10 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -927,7 +927,7 @@ jobs: timeout-minutes: 20 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -962,7 +962,7 @@ jobs: timeout-minutes: 15 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -998,7 +998,7 @@ jobs: timeout-minutes: 15 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: @@ -1021,7 +1021,7 @@ jobs: timeout-minutes: 15 steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Environment uses: ./.github/actions/setup-tinygrad with: