File tree Expand file tree Collapse file tree 3 files changed +49
-6
lines changed Expand file tree Collapse file tree 3 files changed +49
-6
lines changed Original file line number Diff line number Diff line change 11name : Build and test Linux x86_64 wheels
22
33on :
4- pull_request :
4+ # pull_request:
55 push :
66 branches :
77 - main
Original file line number Diff line number Diff line change @@ -96,12 +96,16 @@ jobs:
9696 id : check_variant
9797 run : |
9898 set -euxo pipefail
99- echo "lan added .... PYTHON_VERSION=${PYTHON_VERSION} and inputs.filter-python=${inputs.filter-python}"
100- echo "lan added .... CU_VERSION=${CU_VERSION} and inputs.filter-cuda=${inputs.filter-cuda}"
101- if [ "${PYTHON_VERSION}" = "${{ inputs.filter-python }}" ] && [ "${CU_VERSION}" = "${{ inputs.filter-cuda }}" ]; then
99+ echo "lan added .... PYTHON_VERSION=${PYTHON_VERSION} and inputs.filter-python=${{ inputs.filter-python} }"
100+ echo "lan added .... CU_VERSION=${CU_VERSION} and inputs.filter-cuda=${{ inputs.filter-cuda} }"
101+ if [ "${{ inputs.filter-python }}" == "" ] || [ "${{ inputs.filter-cuda }}" == " " ]; then
102102 echo "should_run=true" >> $GITHUB_OUTPUT
103103 else
104- echo "should_run=false" >> $GITHUB_OUTPUT
104+ if [ "${PYTHON_VERSION}" == "${{ inputs.filter-python }}" ] && [ "${CU_VERSION}" == "${{ inputs.filter-cuda }}" ]; then
105+ echo "should_run=true" >> $GITHUB_OUTPUT
106+ else
107+ echo "should_run=false" >> $GITHUB_OUTPUT
108+ fi
105109 fi
106110 - name : Clean workspace
107111 if : steps.check_variant.outputs.should_run == 'true'
@@ -183,7 +187,11 @@ jobs:
183187 summary : true
184188 display-options : fEs
185189 fail-on-empty : true
186-
190+ - name : Set result
191+ id : set_result
192+ run : |
193+ set -euxo pipefail
194+ echo "result=success" >> $GITHUB_OUTPUT
187195 - name : Prepare artifacts for upload
188196 working-directory : ${{ inputs.repository }}
189197 id : check-artifacts
Original file line number Diff line number Diff line change 1+ name : Test variant dependency workflow
2+
3+ on :
4+ pull_request :
5+ workflow_dispatch :
6+
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ strategy :
12+ matrix :
13+ cuda-version : [12.8, 13.0]
14+ steps :
15+ - name : Build with CUDA ${{ matrix.cuda-version }}
16+ run : |
17+ echo "Building with CUDA ${{ matrix.cuda-version }}"
18+ if [ "${{ matrix.cuda-version }}" == "12.8" ]; then
19+ echo "result=success" >> $GITHUB_OUTPUT
20+ else
21+ echo "result=failure" >> $GITHUB_OUTPUT
22+ fi
23+
24+ test :
25+ needs : [build]
26+ if : always() && needs.build.result == 'success'
27+ runs-on : ubuntu-latest
28+ strategy :
29+ matrix :
30+ cuda-version : [12.8, 13.0]
31+ steps :
32+ - name : Test with CUDA ${{ matrix.cuda-version }}
33+ run : |
34+ echo "Testing with CUDA ${{ matrix.cuda-version }}"
35+
You can’t perform that action at this time.
0 commit comments