Skip to content

Commit 096974f

Browse files
committed
Try to rebuild package from scratch to drop old binaries where possible
1 parent e101295 commit 096974f

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

.github/workflows/rebuildDependencies.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,34 @@ jobs:
8383
if: "${{ matrix.conan_prebuilts != '' }}"
8484
run: source '${{github.workspace}}/CI/install_conan_dependencies.sh' '${{matrix.conan_prebuilts}}'
8585

86-
- name: Remove old packages
87-
run: rm -rf ~/.conan/data/ffmpeg ~/.conan/data/yasm ~/.conan/data/pkgconfig ~/.conan/data/xz_utils
86+
- name: Remove old binary packages
87+
if: ${{ !startsWith(matrix.platform, 'android') }}
88+
run: rm -rf ~/.conan/data/*/*/_/_/package
89+
90+
# TODO: fix libiconv - fails to build on android (both macos and linux host)
91+
- name: Remove old binary packages
92+
if: ${{ startsWith(matrix.platform, 'android') }}
93+
run: |
94+
mv ~/.conan/data/libiconv ~/
95+
rm -rf ~/.conan/data/*/*/_/_/package
96+
mv ~/libiconv ~/.conan/data
97+
98+
# Completely remove packages that were confirmed to be rebuildable using upstream recipe/sources
99+
# TODO: generate entire package from scratch instead of such cleanup
100+
- name: Remove old recipes
101+
run: |
102+
rm -rf ~/.conan/data/ffmpeg
103+
rm -rf ~/.conan/data/pkgconfig
104+
rm -rf ~/.conan/data/xz_utils
105+
rm -rf ~/.conan/data/sdl_mixer
106+
rm -rf ~/.conan/data/sdl_image
107+
rm -rf ~/.conan/data/sdl_ttf
108+
rm -rf ~/.conan/data/sdl
109+
110+
- name: Remove old recipes (non-apple)
111+
if: ${{ matrix.platform != 'ios' && matrix.platform != 'mac-intel' && matrix.platform != 'mac-arm' }}
112+
run: |
113+
rm -rf ~/.conan/data/sqlite3
88114
89115
- name: Setup Python
90116
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)