Skip to content

Commit 968cdbf

Browse files
committed
Cleanup set-matrix.yaml.
1 parent fab557f commit 968cdbf

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

.github/workflows/set-matrix.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
# Event flags evaluated by github actions before the step runs:
1717
IS_MAIN_PUSH: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
1818
IS_SCHEDULE: ${{ github.event_name == 'schedule' }}
19-
IS_PR: ${{ github.event_name == 'pull_request' }}
2019
IS_8GPU_TAG: ${{ startsWith(github.ref, 'refs/tags/ciflow/8gpu/') }}
2120
TRIGGERED_8GPU_LABEL: ${{ github.event_name == 'pull_request' && github.event.action == 'labeled' }}
2221

@@ -46,28 +45,24 @@ jobs:
4645
# Use default value as 'false' for unset environment variables
4746
IS_MAIN_PUSH="${IS_MAIN_PUSH:-false}"
4847
IS_SCHEDULE="${IS_SCHEDULE:-false}"
49-
IS_PR="${IS_PR:-false}"
5048
IS_8GPU_TAG="${IS_8GPU_TAG:-false}"
5149
TRIGGERED_8GPU_LABEL="${TRIGGERED_8GPU_LABEL:-false}"
5250
5351
# Decide which matrix entries to include based on event type
5452
# Runs ROCm only for push tag OR when PR label gets triggered
5553
if [[ "$IS_8GPU_TAG" == "true" || "$TRIGGERED_8GPU_LABEL" == "true" ]]; then
56-
echo "Runs ROCm only for push tag OR when PR label gets triggered"
5754
cat > matrix.json <<JSON
5855
{"include": [$ROCM_MATRIX]}
5956
JSON
6057
6158
# Runs CUDA and ROCm for normal PR (if PR label is present) OR for push to main, cron schedule
6259
elif [[ ("$IS_MAIN_PUSH" == "true" || "$IS_SCHEDULE" == "true") ]]; then
63-
echo "Runs CUDA and ROCm for normal PR (if PR label is present) OR for push to main, cron schedule"
6460
cat > matrix.json <<JSON
6561
{"include": [$CUDA_MATRIX,$ROCM_MATRIX]}
6662
JSON
6763
6864
# Runs CUDA only as default (includes normal PR, if PR label is NOT present)
6965
else
70-
echo "Runs CUDA only as default (includes normal PR, if PR label is NOT present)"
7166
cat > matrix.json <<JSON
7267
{"include": [$CUDA_MATRIX]}
7368
JSON

0 commit comments

Comments
 (0)