diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f8c3f94..77a0ff5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml | |||
| @@ -1,6 +1,10 @@ | |||
| 1 | name: build | 1 | name: build |
| 2 | 2 | ||
| 3 | on: [push] | 3 | on: |
| 4 | push: | ||
| 5 | pull_request: | ||
| 6 | schedule: | ||
| 7 | - cron: '0 0 1 * *' | ||
| 4 | 8 | ||
| 5 | jobs: | 9 | jobs: |
| 6 | build-linux-ubuntu: | 10 | build-linux-ubuntu: |
| @@ -14,28 +18,28 @@ jobs: | |||
| 14 | run: | | 18 | run: | |
| 15 | echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV | 19 | echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV |
| 16 | - name: fetch libplist | 20 | - name: fetch libplist |
| 17 | uses: dawidd6/action-download-artifact@v2 | 21 | uses: dawidd6/action-download-artifact@v6 |
| 18 | with: | 22 | with: |
| 19 | github_token: ${{secrets.GITHUB_TOKEN}} | 23 | github_token: ${{secrets.GITHUB_TOKEN}} |
| 20 | workflow: build.yml | 24 | workflow: build.yml |
| 21 | name: libplist-latest_${{env.target_triplet}} | 25 | name: libplist-latest_${{env.target_triplet}} |
| 22 | repo: libimobiledevice/libplist | 26 | repo: libimobiledevice/libplist |
| 23 | - name: fetch libusbmuxd | 27 | - name: fetch libusbmuxd |
| 24 | uses: dawidd6/action-download-artifact@v2 | 28 | uses: dawidd6/action-download-artifact@v6 |
| 25 | with: | 29 | with: |
| 26 | github_token: ${{secrets.GITHUB_TOKEN}} | 30 | github_token: ${{secrets.GITHUB_TOKEN}} |
| 27 | workflow: build.yml | 31 | workflow: build.yml |
| 28 | name: libusbmuxd-latest_${{env.target_triplet}} | 32 | name: libusbmuxd-latest_${{env.target_triplet}} |
| 29 | repo: libimobiledevice/libusbmuxd | 33 | repo: libimobiledevice/libusbmuxd |
| 30 | - name: fetch libimobiledevice-glue | 34 | - name: fetch libimobiledevice-glue |
| 31 | uses: dawidd6/action-download-artifact@v2 | 35 | uses: dawidd6/action-download-artifact@v6 |
| 32 | with: | 36 | with: |
| 33 | github_token: ${{secrets.GITHUB_TOKEN}} | 37 | github_token: ${{secrets.GITHUB_TOKEN}} |
| 34 | workflow: build.yml | 38 | workflow: build.yml |
| 35 | name: libimobiledevice-glue-latest_${{env.target_triplet}} | 39 | name: libimobiledevice-glue-latest_${{env.target_triplet}} |
| 36 | repo: libimobiledevice/libimobiledevice-glue | 40 | repo: libimobiledevice/libimobiledevice-glue |
| 37 | - name: fetch libimobiledevice | 41 | - name: fetch libimobiledevice |
| 38 | uses: dawidd6/action-download-artifact@v2 | 42 | uses: dawidd6/action-download-artifact@v6 |
| 39 | with: | 43 | with: |
| 40 | github_token: ${{secrets.GITHUB_TOKEN}} | 44 | github_token: ${{secrets.GITHUB_TOKEN}} |
| 41 | workflow: build.yml | 45 | workflow: build.yml |
| @@ -49,7 +53,7 @@ jobs: | |||
| 49 | done | 53 | done |
| 50 | sudo cp -r extract/* / | 54 | sudo cp -r extract/* / |
| 51 | sudo ldconfig | 55 | sudo ldconfig |
| 52 | - uses: actions/checkout@v3 | 56 | - uses: actions/checkout@v4 |
| 53 | with: | 57 | with: |
| 54 | fetch-depth: 0 | 58 | fetch-depth: 0 |
| 55 | - name: autogen | 59 | - name: autogen |
| @@ -67,7 +71,7 @@ jobs: | |||
| 67 | DESTDIR=`pwd`/dest make install | 71 | DESTDIR=`pwd`/dest make install |
| 68 | tar -C dest -cf usbmuxd.tar usr lib | 72 | tar -C dest -cf usbmuxd.tar usr lib |
| 69 | - name: publish artifact | 73 | - name: publish artifact |
| 70 | uses: actions/upload-artifact@v3 | 74 | uses: actions/upload-artifact@v4 |
| 71 | with: | 75 | with: |
| 72 | name: usbmuxd-latest_${{env.target_triplet}} | 76 | name: usbmuxd-latest_${{env.target_triplet}} |
| 73 | path: usbmuxd.tar | 77 | path: usbmuxd.tar |
