diff options
Diffstat (limited to '.github/workflows/build.yml')
| -rw-r--r-- | .github/workflows/build.yml | 27 | 
1 files changed, 16 insertions, 11 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 31341af..18dc0f6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,10 @@  name: build -on: [push] +on: +  push: +  pull_request: +  schedule: +    - cron: '0 0 1 * *'  jobs:    build-linux-ubuntu: @@ -13,7 +17,7 @@ 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 @@ -27,7 +31,7 @@ jobs:            done            sudo cp -r extract/* /            sudo ldconfig -    - uses: actions/checkout@v2 +    - uses: actions/checkout@v4      - name: autogen        run: ./autogen.sh PKG_CONFIG_PATH=/usr/local/lib/pkgconfig LDFLAGS="-Wl,-rpath=/usr/local/lib"      - name: make @@ -40,7 +44,7 @@ jobs:            DESTDIR=`pwd`/dest make install            tar -C dest -cf libimobiledevice-glue.tar usr      - name: publish artifact -      uses: actions/upload-artifact@v2 +      uses: actions/upload-artifact@v4        with:          name: libimobiledevice-glue-latest_${{env.target_triplet}}          path: libimobiledevice-glue.tar @@ -56,7 +60,7 @@ jobs:            fi        shell: bash      - name: fetch libplist -      uses: dawidd6/action-download-artifact@v2 +      uses: dawidd6/action-download-artifact@v6        with:          github_token: ${{secrets.GITHUB_TOKEN}}          workflow: build.yml @@ -69,7 +73,7 @@ jobs:              tar -C extract -xvf $I            done            sudo cp -r extract/* / -    - uses: actions/checkout@v2 +    - uses: actions/checkout@v4      - name: autogen        run: |            SDKDIR=`xcrun --sdk macosx --show-sdk-path` @@ -93,12 +97,12 @@ jobs:            DESTDIR=`pwd`/dest make install            tar -C dest -cf libimobiledevice-glue.tar usr      - name: publish artifact -      uses: actions/upload-artifact@v2 +      uses: actions/upload-artifact@v4        with:          name: libimobiledevice-glue-latest_macOS          path: libimobiledevice-glue.tar    build-windows: -    runs-on: windows-2019 +    runs-on: windows-latest      defaults:        run:          shell: msys2 {0} @@ -119,6 +123,7 @@ jobs:            base-devel            git            mingw-w64-${{ matrix.arch }}-gcc +          mingw-w64-${{ matrix.arch }}-pkg-config            make            libtool            autoconf @@ -129,7 +134,7 @@ jobs:            echo "dest=$dest" >> $GITHUB_ENV            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 @@ -142,7 +147,7 @@ jobs:              tar -C extract -xvf $I            done            cp -r extract/* / -    - uses: actions/checkout@v2 +    - uses: actions/checkout@v4      - name: autogen        run: ./autogen.sh CC=gcc CXX=g++      - name: make @@ -155,7 +160,7 @@ jobs:            DESTDIR=`pwd`/dest make install            tar -C dest -cf libimobiledevice-glue.tar ${{ env.dest }}      - name: publish artifact -      uses: actions/upload-artifact@v2 +      uses: actions/upload-artifact@v4        with:          name: libimobiledevice-glue-latest_${{ matrix.arch }}-${{ env.dest }}          path: libimobiledevice-glue.tar  | 
