Skip to content

Commit

Permalink
[github-actions] Updated build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Dec 2, 2024
1 parent 0b1b233 commit 7c0c0eb
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: build

on: [push]
on:
push:
pull_request:
schedule:
- cron: '0 0 1 * *'

jobs:
build-linux-ubuntu:
Expand All @@ -14,28 +18,28 @@ jobs:
run: |
echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV
- name: fetch libplist
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: build.yml
name: libplist-latest_${{env.target_triplet}}
repo: libimobiledevice/libplist
- name: fetch libusbmuxd
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: build.yml
name: libusbmuxd-latest_${{env.target_triplet}}
repo: libimobiledevice/libusbmuxd
- name: fetch libimobiledevice-glue
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: build.yml
name: libimobiledevice-glue-latest_${{env.target_triplet}}
repo: libimobiledevice/libimobiledevice-glue
- name: fetch libimobiledevice
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v6
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: build.yml
Expand All @@ -49,7 +53,7 @@ jobs:
done
sudo cp -r extract/* /
sudo ldconfig
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: autogen
Expand All @@ -67,7 +71,7 @@ jobs:
DESTDIR=`pwd`/dest make install
tar -C dest -cf usbmuxd.tar usr lib
- name: publish artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: usbmuxd-latest_${{env.target_triplet}}
path: usbmuxd.tar

0 comments on commit 7c0c0eb

Please sign in to comment.