This repository was archived by the owner on Jun 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 27
27
torch : ["2.4"]
28
28
runs-on : [self-hosted]
29
29
steps :
30
+ - name : Set default values
31
+ id : set_defaults
32
+ run : |
33
+ echo "[INFO] Event name is '${{ github.event_name }}'"
34
+ if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
35
+ echo "REPO=${{ inputs.repo }}" >> $GITHUB_ENV
36
+ echo "BRANCH=${{ inputs.branch }}" >> $GITHUB_ENV
37
+ elif [[ "${{ github.event_name }}" == "schedule" ]]; then
38
+ echo "REPO=flashinfer-ai/flashinfer" >> $GITHUB_ENV
39
+ echo "BRANCH=main" >> $GITHUB_ENV
40
+ else
41
+ echo "[ERROR] Unsupported event '${{ github.event_name }}'." >&2
42
+ exit 1
43
+ fi
44
+
30
45
- run : |
31
46
rm -rf flashinfer
32
- git clone -b ${{ inputs.branch }} --recurse-submodules --depth=1 https://github.com/${{ inputs.repo }}
47
+ git clone -b ${{ env.BRANCH }} --recurse-submodules --depth=1 https://github.com/${{ env.REPO }}
33
48
pushd flashinfer
34
49
sed -i 's/+cu/\.cu/g' scripts/run-ci-build-wheel.sh
35
50
sed -i 's|/ci-cache|/opt/dlami/nvme/flashinfer/github|g' scripts/run-ci-build-wheel.sh
You can’t perform that action at this time.
0 commit comments