@@ -15,7 +15,7 @@ permissions:
1515
1616jobs :
1717 build :
18- runs-on : ubuntu-22 .04
18+ runs-on : ubuntu-24 .04
1919 steps :
2020 - uses : actions/checkout@v4
2121 - name : Show disk space at start
3636 - name : Fetch boost
3737 if : ${{ steps.paths.outputs.boost_SOURCE }}
3838 run : python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests boost
39+ - name : Fetch bz2
40+ if : ${{ steps.paths.outputs.bz2_SOURCE }}
41+ run : python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests bz2
3942 - name : Fetch ninja
4043 if : ${{ steps.paths.outputs.ninja_SOURCE }}
4144 run : python3 build/fbcode_builder/getdeps.py --allow-system-packages fetch --no-tests ninja
@@ -154,6 +157,22 @@ jobs:
154157 with :
155158 path : ${{ steps.paths.outputs.boost_INSTALL }}
156159 key : ${{ steps.paths.outputs.boost_CACHE_KEY }}-install
160+ - name : Restore bz2 from cache
161+ id : restore_bz2
162+ if : ${{ steps.paths.outputs.bz2_SOURCE }}
163+ uses : actions/cache/restore@v4
164+ with :
165+ path : ${{ steps.paths.outputs.bz2_INSTALL }}
166+ key : ${{ steps.paths.outputs.bz2_CACHE_KEY }}-install
167+ - name : Build bz2
168+ if : ${{ steps.paths.outputs.bz2_SOURCE && ! steps.restore_bz2.outputs.cache-hit }}
169+ run : python3 build/fbcode_builder/getdeps.py --allow-system-packages build --free-up-disk --no-tests bz2
170+ - name : Save bz2 to cache
171+ uses : actions/cache/save@v4
172+ if : ${{ steps.paths.outputs.bz2_SOURCE && ! steps.restore_bz2.outputs.cache-hit }}
173+ with :
174+ path : ${{ steps.paths.outputs.bz2_INSTALL }}
175+ key : ${{ steps.paths.outputs.bz2_CACHE_KEY }}-install
157176 - name : Restore ninja from cache
158177 id : restore_ninja
159178 if : ${{ steps.paths.outputs.ninja_SOURCE }}
0 commit comments