@@ -9,16 +9,28 @@ name: Build QEMU Platform Firmware
99description : Build a QEMU platform firmware using Stuart
1010
1111inputs :
12+ architecture :
13+ description : ' Target architecture (e.g., X64; ARM64). By default, uses the architectures defined in the platform config.'
14+ required : false
15+ default : ' '
1216 command :
1317 description : ' The action to perform: `build`, `flash`, or `all`'
1418 required : false
1519 default : ' all'
20+ log-identifier :
21+ description : ' Extra identifier to append to the log folder name if needed.'
22+ required : false
23+ default : ' '
1624 platform-config :
1725 description : ' Path to the Stuart platform configuration file (.py)'
1826 required : true
1927 platform-name :
2028 description : ' Name of the platform being built (for logging purposes)'
2129 required : true
30+ stuart-args :
31+ description : ' Additional build arguments to pass to stuart_build'
32+ required : false
33+ default : ' '
2234 target :
2335 description : ' Build target (e.g., DEBUG, RELEASE)'
2436 required : false
@@ -27,18 +39,6 @@ inputs:
2739 description : ' Tool chain to use (e.g., VS2022, GCC)'
2840 required : false
2941 default : ' VS2022'
30- architecture :
31- description : ' Target architecture (e.g., X64; ARM64). By default, uses the architectures defined in the platform config.'
32- required : false
33- default : ' '
34- stuart-args :
35- description : ' Additional build arguments to pass to stuart_build'
36- required : false
37- default : ' '
38- log-identifier :
39- description : ' Extra identifier to append to the log folder name if needed.'
40- required : false
41- default : ' '
4242 working-directory :
4343 description : ' The directory to run the build commands in. By default, the root of the repository.'
4444 required : false
7070 if [ -n "${{ inputs.log-identifier }}" ]; then
7171 LOG_FOLDER_NAME="${LOG_FOLDER_NAME}-${{ inputs.log-identifier }}"
7272 fi
73- mkdir -p "$RUNNER_TEMP"/$ LOG_FOLDER_NAME
74- echo "path="$ RUNNER_TEMP"/$ LOG_FOLDER_NAME" >> $GITHUB_OUTPUT
73+ mkdir -p "${ RUNNER_TEMP}/${ LOG_FOLDER_NAME}"
74+ echo "path=${ RUNNER_TEMP}/${ LOG_FOLDER_NAME} " >> $GITHUB_OUTPUT
7575
7676 # Cannot use ENV in a composite action, so lets create our reusable argument string here
7777 - name : Setup Total Stuart arguments
9393 # Use the cache key to attempt to restore cached submodules
9494 - name : Cache submodules
9595 if : ${{ inputs.command == 'all' || inputs.command == 'build' }}
96- uses : actions/cache@v4
96+ uses : actions/cache@v5
9797 with :
9898 path : .git/modules
9999 key : ${{ runner.os }}-${{ inputs.platform-name }}-submodules-${{ steps.submodules-hash.outputs.hash}}
0 commit comments