File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9090 name : aml-all
9191 path : ./
9292
93+ - name : Find per-platform directory
94+ id : find
95+ run : |
96+ set -euo pipefail
97+ PLATFORM="${{ matrix.platform }}"
98+ echo "Searching for platform directory: $PLATFORM"
99+ # Try several candidate locations that may exist depending on how the artifact was uploaded
100+ if [ -d "aml-all/artifacts/$PLATFORM" ]; then
101+ echo "Found at aml-all/artifacts/$PLATFORM"
102+ echo "path=aml-all/artifacts/$PLATFORM" >> $GITHUB_OUTPUT
103+ elif [ -d "artifacts/$PLATFORM" ]; then
104+ echo "Found at artifacts/$PLATFORM"
105+ echo "path=artifacts/$PLATFORM" >> $GITHUB_OUTPUT
106+ elif [ -d "$PLATFORM" ]; then
107+ echo "Found at $PLATFORM"
108+ echo "path=$PLATFORM" >> $GITHUB_OUTPUT
109+ else
110+ echo "platform_path not found for $PLATFORM"
111+ echo "path=" >> $GITHUB_OUTPUT
112+ fi
113+
93114 - name : Upload per-platform artifact
115+ if : steps.find.outputs.path != ''
94116 uses : actions/upload-artifact@v4
95117 with :
96118 name : ${{ matrix.platform }}
97- path : aml-all/artifacts/ ${{ matrix.platform }}
119+ path : ${{ steps.find.outputs.path }}
You can’t perform that action at this time.
0 commit comments