-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a flag to run_IP to handle if the CI is IP CI or EF_UVM CI * Rename is-ip to is_ip * Fix if condition * Test setup workspace * Fix syntax errors * Remove duplicate declaration of name * Rename upload upload-artifact * Use uploaded workspace * Remove extra run: * Fix Typo when copy and paste * Use upload artifcat while running test * Uses action file * Test * Source file directly from the repo * ?? * Source folder for action? * Set more env variables * Correct paths again * Debug * Debug * Fix workspace creation * Fix paths of commits * Download workspace after maximizing disk space * Remove debug prints * Add get-bus action * Iterate over buses * Fix syntax error * Do mapping * Remove extra space * Extract all bus types * Check step output * Set outputs * + Alias run_gl_all_tests to run_all_gl_tests ~ Repo URL not required for CI * Fix wrong bus type in get-bus action * Attempt to wrap job name in quotes to avoid missing name in the job header * Remove extra space? * Prefix uploaded artifact with sim status * Make the status more verbose and global * Rename artifact name * Typo fix * Rename artifacts * More renames * Always run set artifact_name * Rename test-error to sim-error * Test support-ip-ci branch * Fix typo in new target * Clone master branch * Clean up unneeded code
- Loading branch information
1 parent
3464fd5
commit 38ae15e
Showing
3 changed files
with
136 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: 'Get Bus Type' | ||
description: 'Get Bus Type' | ||
outputs: | ||
buses: | ||
description: "Buses" | ||
value: ${{ steps.get_buses.outputs.output }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- name: Extract Info from IP Yaml File | ||
uses: mikefarah/yq@master | ||
id: get_bus_info | ||
with: | ||
cmd: yq '.info.bus.[]' './${{ github.event.repository.name }}.yaml' | ||
- name: Map to Make options | ||
shell: bash | ||
id: get_buses | ||
run: | | ||
buses=(${{ steps.get_bus_info.outputs.result }}) | ||
output="" | ||
for bus in "${buses[@]}" | ||
do | ||
if [[ "$bus" == "generic" ]]; then | ||
output="WISHBONE APB AHB $output" | ||
elif [[ "$bus" == "APB" ]]; then | ||
output="APB $output" | ||
elif [[ "$bus" == "AHBL" ]]; then | ||
output="AHB $output" | ||
elif [[ "$bus" == "WB" ]]; then | ||
output="WISHBONE $output" | ||
else | ||
echo "Unknown bus type $bus" | ||
exit 1 | ||
fi | ||
done | ||
echo "output=$output" >> $GITHUB_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters