Commit bf85516
authored
Fix caching for unity builds (#5642)
# Description of Changes
This is part of the work to break up
#5612 into smaller
reviewable chunks.
Before this change, the cache key for the unity library was `Unity-${{
github.head_ref }}`. This meant every single PR experienced a cache
miss, whether or not it changed any unity dependencies, and would
subsequently do a full unity build and upload a new multi-GB entry to
the actions cache. The actions cache isn't that big, so this was
responsible for a huge amount of cache churn which in turn slowed all
other builds down.
Now the cache key incorporates the proper dependencies, and the cache is
only written to on pushes to master.
# API and ABI breaking changes
None
# Expected complexity level and risk
1
# Testing
N/A1 parent 93104da commit bf85516
1 file changed
Lines changed: 19 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
| 823 | + | |
823 | 824 | | |
824 | 825 | | |
825 | 826 | | |
826 | 827 | | |
827 | 828 | | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
828 | 839 | | |
829 | 840 | | |
830 | 841 | | |
| |||
933 | 944 | | |
934 | 945 | | |
935 | 946 | | |
936 | | - | |
937 | | - | |
938 | | - | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | 947 | | |
943 | 948 | | |
944 | 949 | | |
945 | | - | |
| 950 | + | |
946 | 951 | | |
947 | 952 | | |
948 | 953 | | |
| |||
953 | 958 | | |
954 | 959 | | |
955 | 960 | | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
956 | 968 | | |
957 | 969 | | |
958 | 970 | | |
| |||
0 commit comments