|
16 | 16 | FLASHINFER_CUDA_ARCH_LIST: "7.5 8.0 8.9 9.0 10.0 10.3 12.0" |
17 | 17 |
|
18 | 18 | jobs: |
19 | | - validate-tag: |
20 | | - runs-on: ubuntu-latest |
21 | | - steps: |
22 | | - # - name: Validate tag format |
23 | | - # run: | |
24 | | - # if [[ ! "${{ inputs.tag }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+([a-z0-9]+)?$ ]]; then |
25 | | - # echo "Error: Tag '${{ inputs.tag }}' does not match the expected format (e.g., v1.2.3 or v1.2.3.post1 or v1.2.3rc1)" |
26 | | - # exit 1 |
27 | | - # fi |
28 | | - # echo "✓ Tag format is valid: ${{ inputs.tag }}" |
29 | | - |
30 | | - # - name: Check out tag |
31 | | - # uses: actions/checkout@v4 |
32 | | - # with: |
33 | | - # ref: ${{ inputs.tag }} |
34 | | - # submodules: true |
35 | | - |
36 | | - # - name: Verify tag matches version.txt |
37 | | - # run: | |
38 | | - # # Extract version from tag (remove 'v' prefix) |
39 | | - # TAG_VERSION="${{ inputs.tag }}" |
40 | | - # TAG_VERSION="${TAG_VERSION#v}" |
41 | | - |
42 | | - # # Check version.txt - this is the source of truth |
43 | | - # if [ ! -f "version.txt" ]; then |
44 | | - # echo "Error: version.txt file not found!" |
45 | | - # exit 1 |
46 | | - # fi |
47 | | - |
48 | | - # VERSION_TXT=$(cat version.txt | tr -d '[:space:]') |
49 | | - |
50 | | - # if [ "$TAG_VERSION" != "$VERSION_TXT" ]; then |
51 | | - # echo "❌ CRITICAL ERROR: version.txt does not match tag!" |
52 | | - # echo " Tag version: $TAG_VERSION" |
53 | | - # echo " version.txt: $VERSION_TXT" |
54 | | - # echo "" |
55 | | - # echo "Please update version.txt to match the release version before creating a release." |
56 | | - # echo "The tag should be 'v$VERSION_TXT' (e.g., if version.txt contains '1.2.3', tag should be 'v1.2.3')" |
57 | | - # exit 1 |
58 | | - # fi |
59 | | - |
60 | | - # echo "✓ version.txt matches tag version: $VERSION_TXT" |
| 19 | + # validate-tag: |
| 20 | + # runs-on: ubuntu-latest |
| 21 | + # steps: |
| 22 | + # - name: Validate tag format |
| 23 | + # run: | |
| 24 | + # if [[ ! "${{ inputs.tag }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+([a-z0-9]+)?$ ]]; then |
| 25 | + # echo "Error: Tag '${{ inputs.tag }}' does not match the expected format (e.g., v1.2.3 or v1.2.3.post1 or v1.2.3rc1)" |
| 26 | + # exit 1 |
| 27 | + # fi |
| 28 | + # echo "✓ Tag format is valid: ${{ inputs.tag }}" |
| 29 | + |
| 30 | + # - name: Check out tag |
| 31 | + # uses: actions/checkout@v4 |
| 32 | + # with: |
| 33 | + # ref: ${{ inputs.tag }} |
| 34 | + # submodules: true |
| 35 | + |
| 36 | + # - name: Verify tag matches version.txt |
| 37 | + # run: | |
| 38 | + # # Extract version from tag (remove 'v' prefix) |
| 39 | + # TAG_VERSION="${{ inputs.tag }}" |
| 40 | + # TAG_VERSION="${TAG_VERSION#v}" |
| 41 | + |
| 42 | + # # Check version.txt - this is the source of truth |
| 43 | + # if [ ! -f "version.txt" ]; then |
| 44 | + # echo "Error: version.txt file not found!" |
| 45 | + # exit 1 |
| 46 | + # fi |
| 47 | + |
| 48 | + # VERSION_TXT=$(cat version.txt | tr -d '[:space:]') |
| 49 | + |
| 50 | + # if [ "$TAG_VERSION" != "$VERSION_TXT" ]; then |
| 51 | + # echo "❌ CRITICAL ERROR: version.txt does not match tag!" |
| 52 | + # echo " Tag version: $TAG_VERSION" |
| 53 | + # echo " version.txt: $VERSION_TXT" |
| 54 | + # echo "" |
| 55 | + # echo "Please update version.txt to match the release version before creating a release." |
| 56 | + # echo "The tag should be 'v$VERSION_TXT' (e.g., if version.txt contains '1.2.3', tag should be 'v1.2.3')" |
| 57 | + # exit 1 |
| 58 | + # fi |
| 59 | + |
| 60 | + # echo "✓ version.txt matches tag version: $VERSION_TXT" |
61 | 61 |
|
62 | 62 | build-wheel: |
63 | 63 | # needs: validate-tag |
|
0 commit comments