Skip to content

[BUILD] Update tsingmicro build opt (#25) #30

[BUILD] Update tsingmicro build opt (#25)

[BUILD] Update tsingmicro build opt (#25) #30

name: Tsingmicro-Build-And-Test
on:
push:
branches: [ "triton_v3.3.x" ]
pull_request:
branches: [ "triton_v3.3.x" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
tsingmicro-build-and-test:
runs-on: tsingmicro
steps:
- name: Checkout code (attempt 1)
id: checkout1
uses: actions/checkout@v4
continue-on-error: true
- name: Sleep before checkout2
if: steps.checkout1.outcome == 'failure'
run: |
echo "First checkout attempt failed. Sleeping for 120 seconds before retry..."
sleep 120
- name: Checkout code (attempt 2)
id: checkout2
if: steps.checkout1.outcome == 'failure'
uses: actions/checkout@v4
continue-on-error: true
- name: Sleep before final checkout
if: steps.checkout1.outcome == 'failure' && steps.checkout2.outcome == 'failure'
run: |
echo "Second checkout attempt failed. Sleeping for 180 seconds before final retry..."
sleep 180
- name: Checkout code (final attempt)
if: steps.checkout1.outcome == 'failure' && steps.checkout2.outcome == 'failure'
uses: actions/checkout@v4
- name: Verify checkout success
if: success()
run: echo "Checkout completed successfully"
- name: FlagTree Build on Tsingmicro
shell: bash
run: |
source ~/env.sh
export FLAGTREE_BACKEND=tsingmicro
cd python
python3.11 -m pip install . --no-build-isolation -v
- name: FlagTree Test on Tsingmicro
shell: bash
run: |
source ~/env.sh
python3.11 -c 'import triton; print(triton.__path__)'
/usr/local/lib/python3.11/dist-packages/triton/backends/tsingmicro/bin/tsingmicro-opt --version
/usr/local/lib/python3.11/dist-packages/triton/backends/tsingmicro/bin/tsingmicro-llvm-opt --version