Skip to content

Bundle mulitple familes for self-hosted iar to reduce build time#1880

Merged
hathach merged 4 commits intomasterfrom
reduce-selfed-host-iar
Feb 1, 2023
Merged

Bundle mulitple familes for self-hosted iar to reduce build time#1880
hathach merged 4 commits intomasterfrom
reduce-selfed-host-iar

Conversation

@hathach
Copy link
Copy Markdown
Owner

@hathach hathach commented Feb 1, 2023

Describe the PR
IAR Build on self-hosted taking too long (~20mins), reduce the iar build to only family with different enough architecture/usb controller. Also update hardware test on self-hosted to download artifacts to reduce compile time for L4

@HiFiPhile
Copy link
Copy Markdown
Collaborator

Didn't know it took such long time. Is it compile time or clone sdk ?

@hathach
Copy link
Copy Markdown
Owner Author

hathach commented Feb 1, 2023

Didn't know it took such long time. Is it compile time or clone sdk ?

Checkout sumodule take about 30s or so, each build takes 2 minutes for each matrix. Actually, I think the issue is due to the matrix. Matrix scale well with a farm of PC . In our case it hurt the self-hosted since it run one after another on 1 instance (each matrix needs setup/teardown and checkout etc..). Let me try to bundle several family in 1 run, it would possible reduce the time to run

@HiFiPhile
Copy link
Copy Markdown
Collaborator

HiFiPhile commented Feb 1, 2023

Let me try to bundle several family in 1 run, it would possible reduce the time to run

Yes I saw CPU usage is quite low.

@HiFiPhile
Copy link
Copy Markdown
Collaborator

Just doubled assigned RAM & Core, after reboot it should be quicker :)

@hathach
Copy link
Copy Markdown
Owner Author

hathach commented Feb 1, 2023

bundled to build everything in one shot, the build time only takes 11 minutes now.
https://github.com/hathach/tinyusb/actions/runs/4063998654/jobs/6996895275
If the cpu usage is still low, it is probably due to my build_family.py script that doesn't do parallel enough. Though it is reasonable for now

@hathach
Copy link
Copy Markdown
Owner Author

hathach commented Feb 1, 2023

Just doubled assigned RAM & Core, after reboot it should be quicker :)

that is great, I trigger rebuild to see if we got it faster :)

@hathach hathach changed the title Reduce selfed host iar Bundle mulitple familes for selfed host iar to reduce build time Feb 1, 2023
@hathach hathach changed the title Bundle mulitple familes for selfed host iar to reduce build time Bundle mulitple familes for self-hosted iar to reduce build time Feb 1, 2023
@hathach hathach merged commit 4c03a9f into master Feb 1, 2023
@hathach hathach deleted the reduce-selfed-host-iar branch February 1, 2023 13:10
7FM pushed a commit to 7FM/tinyusb that referenced this pull request Aug 23, 2025
* fix bug in sm_config_set_in_pin_count

* comment updates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants