Unverified Commit 9a7cda42 authored by Xuehai Pan's avatar Xuehai Pan Committed by GitHub
Browse files

[CI] auto-cancel in-progress PR CI when new commits are pushed (#956)

parent 07f62104
name: CI Test on AMD
on: [pull_request]
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
PYTHON_VERSION: '3.12'
VENV_DIR: tilelang_ci
......@@ -11,7 +15,7 @@ jobs:
runs-on: [self-hosted, amd, gpu]
permissions:
contents: write
contents: write
steps:
- name: Checkout repository
......@@ -84,7 +88,7 @@ jobs:
set -e
REQS_HASH=$(sha256sum requirements-rocm.txt | cut -d ' ' -f 1)
MARKER="${{ runner.tool_cache }}/.venv_marker_${{ env.PYTHON_VERSION }}_${REQS_HASH:0:8}"
echo "Installing requirements"
if [[ -f "$MARKER" ]] && [[ -f "${{ runner.tool_cache }}/${{ env.VENV_DIR }}/bin/activate" ]]; then
echo "venv exists and hash matches – reuse it"
......
name: Bot
on:
on:
issue_comment:
types: [created]
......@@ -36,7 +36,7 @@ jobs:
- name: Build original version
run: |
echo "Check files to be deleted!"
git clean -dxn | grep -v 'tll/' | xargs -I{} echo {}
git clean -dxn | grep -v 'tll/' | xargs -I{} echo {}
git clean -dxn | grep -v 'tll/' | xargs -I{} rm -rf {}
echo "Delete files completed!"
git checkout main
......
name: CI
on: [pull_request]
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
PYTHON_VERSION: '3.12'
VENV_DIR: tilelang_ci
......@@ -10,7 +14,7 @@ jobs:
runs-on: [self-hosted, nvidia]
permissions:
contents: write
contents: write
steps:
- name: Checkout repository
......
name: CI Test on Metal
on: [pull_request]
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
PYTHON_VERSION: '3.12'
VENV_DIR: tilelang_ci
......@@ -10,7 +14,7 @@ jobs:
runs-on: [macos-latest]
permissions:
contents: write
contents: write
steps:
- name: Checkout repository
......
......@@ -41,4 +41,3 @@ jobs:
else
echo "No changes detected, skipping commit and push."
fi
......@@ -20,4 +20,4 @@ jobs:
'🚀'
})
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment