summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml70
1 files changed, 39 insertions, 31 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index fbbf10a..9132382 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -18,28 +18,28 @@ jobs:
18 run: | 18 run: |
19 echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV 19 echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV
20 - name: fetch libplist 20 - name: fetch libplist
21 uses: dawidd6/action-download-artifact@v6 21 uses: dawidd6/action-download-artifact@v24
22 with: 22 with:
23 github_token: ${{secrets.GITHUB_TOKEN}} 23 github_token: ${{secrets.GITHUB_TOKEN}}
24 workflow: build.yml 24 workflow: build.yml
25 name: libplist-latest_${{env.target_triplet}} 25 name: libplist-latest_${{env.target_triplet}}
26 repo: libimobiledevice/libplist 26 repo: libimobiledevice/libplist
27 - name: fetch libusbmuxd 27 - name: fetch libusbmuxd
28 uses: dawidd6/action-download-artifact@v6 28 uses: dawidd6/action-download-artifact@v24
29 with: 29 with:
30 github_token: ${{secrets.GITHUB_TOKEN}} 30 github_token: ${{secrets.GITHUB_TOKEN}}
31 workflow: build.yml 31 workflow: build.yml
32 name: libusbmuxd-latest_${{env.target_triplet}} 32 name: libusbmuxd-latest_${{env.target_triplet}}
33 repo: libimobiledevice/libusbmuxd 33 repo: libimobiledevice/libusbmuxd
34 - name: fetch libimobiledevice-glue 34 - name: fetch libimobiledevice-glue
35 uses: dawidd6/action-download-artifact@v6 35 uses: dawidd6/action-download-artifact@v24
36 with: 36 with:
37 github_token: ${{secrets.GITHUB_TOKEN}} 37 github_token: ${{secrets.GITHUB_TOKEN}}
38 workflow: build.yml 38 workflow: build.yml
39 name: libimobiledevice-glue-latest_${{env.target_triplet}} 39 name: libimobiledevice-glue-latest_${{env.target_triplet}}
40 repo: libimobiledevice/libimobiledevice-glue 40 repo: libimobiledevice/libimobiledevice-glue
41 - name: fetch libtatsu 41 - name: fetch libtatsu
42 uses: dawidd6/action-download-artifact@v6 42 uses: dawidd6/action-download-artifact@v24
43 with: 43 with:
44 github_token: ${{secrets.GITHUB_TOKEN}} 44 github_token: ${{secrets.GITHUB_TOKEN}}
45 workflow: build.yml 45 workflow: build.yml
@@ -53,7 +53,7 @@ jobs:
53 done 53 done
54 sudo cp -r extract/* / 54 sudo cp -r extract/* /
55 sudo ldconfig 55 sudo ldconfig
56 - uses: actions/checkout@v4 56 - uses: actions/checkout@v6
57 with: 57 with:
58 fetch-depth: 0 58 fetch-depth: 0
59 - name: autogen 59 - name: autogen
@@ -68,7 +68,7 @@ jobs:
68 DESTDIR=`pwd`/dest make install 68 DESTDIR=`pwd`/dest make install
69 tar -C dest -cf libimobiledevice.tar usr 69 tar -C dest -cf libimobiledevice.tar usr
70 - name: publish artifact 70 - name: publish artifact
71 uses: actions/upload-artifact@v4 71 uses: actions/upload-artifact@v6
72 with: 72 with:
73 name: libimobiledevice-latest_${{env.target_triplet}} 73 name: libimobiledevice-latest_${{env.target_triplet}}
74 path: libimobiledevice.tar 74 path: libimobiledevice.tar
@@ -85,28 +85,28 @@ jobs:
85 pip3 install --break-system-packages cython 85 pip3 install --break-system-packages cython
86 shell: bash 86 shell: bash
87 - name: fetch libplist 87 - name: fetch libplist
88 uses: dawidd6/action-download-artifact@v6 88 uses: dawidd6/action-download-artifact@v24
89 with: 89 with:
90 github_token: ${{secrets.GITHUB_TOKEN}} 90 github_token: ${{secrets.GITHUB_TOKEN}}
91 workflow: build.yml 91 workflow: build.yml
92 name: libplist-latest_macOS 92 name: libplist-latest_macOS
93 repo: libimobiledevice/libplist 93 repo: libimobiledevice/libplist
94 - name: fetch libusbmuxd 94 - name: fetch libusbmuxd
95 uses: dawidd6/action-download-artifact@v6 95 uses: dawidd6/action-download-artifact@v24
96 with: 96 with:
97 github_token: ${{secrets.GITHUB_TOKEN}} 97 github_token: ${{secrets.GITHUB_TOKEN}}
98 workflow: build.yml 98 workflow: build.yml
99 name: libusbmuxd-latest_macOS 99 name: libusbmuxd-latest_macOS
100 repo: libimobiledevice/libusbmuxd 100 repo: libimobiledevice/libusbmuxd
101 - name: fetch libimobiledevice-glue 101 - name: fetch libimobiledevice-glue
102 uses: dawidd6/action-download-artifact@v6 102 uses: dawidd6/action-download-artifact@v24
103 with: 103 with:
104 github_token: ${{secrets.GITHUB_TOKEN}} 104 github_token: ${{secrets.GITHUB_TOKEN}}
105 workflow: build.yml 105 workflow: build.yml
106 name: libimobiledevice-glue-latest_macOS 106 name: libimobiledevice-glue-latest_macOS
107 repo: libimobiledevice/libimobiledevice-glue 107 repo: libimobiledevice/libimobiledevice-glue
108 - name: fetch libtatsu 108 - name: fetch libtatsu
109 uses: dawidd6/action-download-artifact@v6 109 uses: dawidd6/action-download-artifact@v24
110 with: 110 with:
111 github_token: ${{secrets.GITHUB_TOKEN}} 111 github_token: ${{secrets.GITHUB_TOKEN}}
112 workflow: build.yml 112 workflow: build.yml
@@ -119,7 +119,9 @@ jobs:
119 tar -C extract -xvf $I 119 tar -C extract -xvf $I
120 done 120 done
121 sudo cp -r extract/* / 121 sudo cp -r extract/* /
122 - uses: actions/checkout@v4 122 - uses: actions/checkout@v6
123 with:
124 fetch-depth: 0
123 - name: install additional requirements 125 - name: install additional requirements
124 run: | 126 run: |
125 mkdir -p lib 127 mkdir -p lib
@@ -172,12 +174,12 @@ jobs:
172 DESTDIR=`pwd`/dest make install 174 DESTDIR=`pwd`/dest make install
173 tar -C dest -cf libimobiledevice.tar usr 175 tar -C dest -cf libimobiledevice.tar usr
174 - name: publish artifact 176 - name: publish artifact
175 uses: actions/upload-artifact@v4 177 uses: actions/upload-artifact@v6
176 with: 178 with:
177 name: libimobiledevice-latest_macOS 179 name: libimobiledevice-latest_macOS
178 path: libimobiledevice.tar 180 path: libimobiledevice.tar
179 build-windows: 181 build-windows:
180 runs-on: windows-latest 182 runs-on: ${{ matrix.runner }}
181 defaults: 183 defaults:
182 run: 184 run:
183 shell: msys2 {0} 185 shell: msys2 {0}
@@ -185,8 +187,11 @@ jobs:
185 fail-fast: false 187 fail-fast: false
186 matrix: 188 matrix:
187 include: [ 189 include: [
188 { msystem: MINGW64, arch: x86_64 }, 190 { runner: windows-latest, msystem: CLANG64, arch: x86_64, flavor: w64-clang, cc: clang },
189 { msystem: MINGW32, arch: i686 } 191 { runner: windows-latest, msystem: UCRT64, arch: x86_64, flavor: w64-ucrt, cc: gcc },
192 { runner: windows-latest, msystem: MINGW64, arch: x86_64, flavor: w64, cc: gcc },
193 { runner: windows-latest, msystem: MINGW32, arch: i686, flavor: w64, cc: gcc },
194 { runner: windows-11-arm, msystem: CLANGARM64, arch: aarch64, flavor: w64-clang, cc: clang }
190 ] 195 ]
191 steps: 196 steps:
192 - uses: msys2/setup-msys2@v2 197 - uses: msys2/setup-msys2@v2
@@ -194,12 +199,13 @@ jobs:
194 msystem: ${{ matrix.msystem }} 199 msystem: ${{ matrix.msystem }}
195 release: false 200 release: false
196 update: false 201 update: false
202 suppress-deprecation-warnings: msystem-mingw32 msystem-mingw64
197 install: >- 203 install: >-
198 base-devel 204 base-devel
199 git 205 git
200 mingw-w64-${{ matrix.arch }}-gcc 206 mingw-${{ matrix.flavor }}-${{ matrix.arch }}-${{ matrix.cc }}
201 mingw-w64-${{ matrix.arch }}-pkg-config 207 mingw-${{ matrix.flavor }}-${{ matrix.arch }}-pkgconf
202 mingw-w64-${{ matrix.arch }}-openssl 208 mingw-${{ matrix.flavor }}-${{ matrix.arch }}-openssl
203 make 209 make
204 libtool 210 libtool
205 autoconf 211 autoconf
@@ -208,35 +214,35 @@ jobs:
208 run: | 214 run: |
209 dest=`echo ${{ matrix.msystem }} |tr [:upper:] [:lower:]` 215 dest=`echo ${{ matrix.msystem }} |tr [:upper:] [:lower:]`
210 echo "dest=$dest" >> $GITHUB_ENV 216 echo "dest=$dest" >> $GITHUB_ENV
211 echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV 217 echo "target_triplet=`${{ matrix.cc }} -dumpmachine`" >> $GITHUB_ENV
212 git config --global core.autocrlf false 218 git config --global core.autocrlf false
213 - name: fetch libplist 219 - name: fetch libplist
214 uses: dawidd6/action-download-artifact@v6 220 uses: dawidd6/action-download-artifact@v24
215 with: 221 with:
216 github_token: ${{secrets.GITHUB_TOKEN}} 222 github_token: ${{secrets.GITHUB_TOKEN}}
217 workflow: build.yml 223 workflow: build.yml
218 name: libplist-latest_${{ matrix.arch }}-${{ env.dest }} 224 name: libplist-latest_${{ matrix.arch }}-windows-${{ env.dest }}
219 repo: libimobiledevice/libplist 225 repo: libimobiledevice/libplist
220 - name: fetch libusbmuxd 226 - name: fetch libusbmuxd
221 uses: dawidd6/action-download-artifact@v6 227 uses: dawidd6/action-download-artifact@v24
222 with: 228 with:
223 github_token: ${{secrets.GITHUB_TOKEN}} 229 github_token: ${{secrets.GITHUB_TOKEN}}
224 workflow: build.yml 230 workflow: build.yml
225 name: libusbmuxd-latest_${{ matrix.arch }}-${{ env.dest }} 231 name: libusbmuxd-latest_${{ matrix.arch }}-windows-${{ env.dest }}
226 repo: libimobiledevice/libusbmuxd 232 repo: libimobiledevice/libusbmuxd
227 - name: fetch libimobiledevice-glue 233 - name: fetch libimobiledevice-glue
228 uses: dawidd6/action-download-artifact@v6 234 uses: dawidd6/action-download-artifact@v24
229 with: 235 with:
230 github_token: ${{secrets.GITHUB_TOKEN}} 236 github_token: ${{secrets.GITHUB_TOKEN}}
231 workflow: build.yml 237 workflow: build.yml
232 name: libimobiledevice-glue-latest_${{ matrix.arch }}-${{ env.dest }} 238 name: libimobiledevice-glue-latest_${{ matrix.arch }}-windows-${{ env.dest }}
233 repo: libimobiledevice/libimobiledevice-glue 239 repo: libimobiledevice/libimobiledevice-glue
234 - name: fetch libtatsu 240 - name: fetch libtatsu
235 uses: dawidd6/action-download-artifact@v6 241 uses: dawidd6/action-download-artifact@v24
236 with: 242 with:
237 github_token: ${{secrets.GITHUB_TOKEN}} 243 github_token: ${{secrets.GITHUB_TOKEN}}
238 workflow: build.yml 244 workflow: build.yml
239 name: libtatsu-latest_${{ matrix.arch }}-${{ env.dest }} 245 name: libtatsu-latest_${{ matrix.arch }}-windows-${{ env.dest }}
240 repo: libimobiledevice/libtatsu 246 repo: libimobiledevice/libtatsu
241 - name: install external dependencies 247 - name: install external dependencies
242 run: | 248 run: |
@@ -245,9 +251,11 @@ jobs:
245 tar -C extract -xvf $I 251 tar -C extract -xvf $I
246 done 252 done
247 cp -r extract/* / 253 cp -r extract/* /
248 - uses: actions/checkout@v4 254 - uses: actions/checkout@v6
255 with:
256 fetch-depth: 0
249 - name: autogen 257 - name: autogen
250 run: ./autogen.sh CC=gcc CXX=g++ --enable-debug 258 run: ./autogen.sh --enable-debug
251 - name: make 259 - name: make
252 run: make 260 run: make
253 - name: make install 261 - name: make install
@@ -258,7 +266,7 @@ jobs:
258 DESTDIR=`pwd`/dest make install 266 DESTDIR=`pwd`/dest make install
259 tar -C dest -cf libimobiledevice.tar ${{ env.dest }} 267 tar -C dest -cf libimobiledevice.tar ${{ env.dest }}
260 - name: publish artifact 268 - name: publish artifact
261 uses: actions/upload-artifact@v4 269 uses: actions/upload-artifact@v6
262 with: 270 with:
263 name: libimobiledevice-latest_${{ matrix.arch }}-${{ env.dest }} 271 name: libimobiledevice-latest_${{ matrix.arch }}-windows-${{ env.dest }}
264 path: libimobiledevice.tar 272 path: libimobiledevice.tar