diff options
| -rw-r--r-- | .github/workflows/build.yml | 74 |
1 files changed, 68 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1d567a9..f3fb1bf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml | |||
| @@ -12,11 +12,31 @@ jobs: | |||
| 12 | - name: prepare environment | 12 | - name: prepare environment |
| 13 | run: | | 13 | run: | |
| 14 | echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV | 14 | echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV |
| 15 | - name: fetch libplist | ||
| 16 | uses: dawidd6/action-download-artifact@v2 | ||
| 17 | with: | ||
| 18 | github_token: ${{secrets.GITHUB_TOKEN}} | ||
| 19 | workflow: build.yml | ||
| 20 | name: libplist-latest_${{env.target_triplet}} | ||
| 21 | repo: libimobiledevice/libplist | ||
| 22 | - name: fetch libimobiledevice-glue | ||
| 23 | uses: dawidd6/action-download-artifact@v2 | ||
| 24 | with: | ||
| 25 | github_token: ${{secrets.GITHUB_TOKEN}} | ||
| 26 | workflow: build.yml | ||
| 27 | name: libimobiledevice-glue-latest_${{env.target_triplet}} | ||
| 28 | repo: libimobiledevice/libimobiledevice-glue | ||
| 29 | - name: install external dependencies | ||
| 30 | run: | | ||
| 31 | mkdir extract | ||
| 32 | for I in *.tar; do | ||
| 33 | tar -C extract -xvf $I | ||
| 34 | done | ||
| 35 | sudo cp -r extract/* / | ||
| 36 | sudo ldconfig | ||
| 15 | - uses: actions/checkout@v2 | 37 | - uses: actions/checkout@v2 |
| 16 | - name: autogen | 38 | - name: autogen |
| 17 | run: | | 39 | run: ./autogen.sh PKG_CONFIG_PATH=/usr/local/lib/pkgconfig LDFLAGS="-Wl,-rpath=/usr/local/lib" |
| 18 | export LDFLAGS="-Wl,-rpath=/usr/local/lib" | ||
| 19 | ./autogen.sh | ||
| 20 | - name: make | 40 | - name: make |
| 21 | run: make | 41 | run: make |
| 22 | - name: make install | 42 | - name: make install |
| @@ -37,11 +57,32 @@ jobs: | |||
| 37 | - name: install dependencies | 57 | - name: install dependencies |
| 38 | run: | | 58 | run: | |
| 39 | if test -x "`which port`"; then | 59 | if test -x "`which port`"; then |
| 40 | sudo port install libtool autoconf automake | 60 | sudo port install libtool autoconf automake pkgconfig |
| 41 | else | 61 | else |
| 42 | brew install libtool autoconf automake | 62 | brew install libtool autoconf automake pkgconfig |
| 43 | fi | 63 | fi |
| 44 | shell: bash | 64 | shell: bash |
| 65 | - name: fetch libplist | ||
| 66 | uses: dawidd6/action-download-artifact@v2 | ||
| 67 | with: | ||
| 68 | github_token: ${{secrets.GITHUB_TOKEN}} | ||
| 69 | workflow: build.yml | ||
| 70 | name: libplist-latest_macOS | ||
| 71 | repo: libimobiledevice/libplist | ||
| 72 | - name: fetch libimobiledevice-glue | ||
| 73 | uses: dawidd6/action-download-artifact@v2 | ||
| 74 | with: | ||
| 75 | github_token: ${{secrets.GITHUB_TOKEN}} | ||
| 76 | workflow: build.yml | ||
| 77 | name: libimobiledevice-glue-latest_macOS | ||
| 78 | repo: libimobiledevice/libimobiledevice-glue | ||
| 79 | - name: install external dependencies | ||
| 80 | run: | | ||
| 81 | mkdir extract | ||
| 82 | for I in *.tar; do | ||
| 83 | tar -C extract -xvf $I | ||
| 84 | done | ||
| 85 | sudo cp -r extract/* / | ||
| 45 | - uses: actions/checkout@v2 | 86 | - uses: actions/checkout@v2 |
| 46 | - name: autogen | 87 | - name: autogen |
| 47 | run: | | 88 | run: | |
| @@ -55,7 +96,7 @@ jobs: | |||
| 55 | done | 96 | done |
| 56 | export CFLAGS="$USEARCHS -isysroot $SDKDIR" | 97 | export CFLAGS="$USEARCHS -isysroot $SDKDIR" |
| 57 | echo "Using CFLAGS: $CFLAGS" | 98 | echo "Using CFLAGS: $CFLAGS" |
| 58 | ./autogen.sh | 99 | ./autogen.sh PKG_CONFIG_PATH=/usr/local/lib/pkgconfig |
| 59 | - name: make | 100 | - name: make |
| 60 | run: make | 101 | run: make |
| 61 | - name: make install | 102 | - name: make install |
| @@ -101,6 +142,27 @@ jobs: | |||
| 101 | dest=`echo ${{ matrix.msystem }} |tr [:upper:] [:lower:]` | 142 | dest=`echo ${{ matrix.msystem }} |tr [:upper:] [:lower:]` |
| 102 | echo "dest=$dest" >> $GITHUB_ENV | 143 | echo "dest=$dest" >> $GITHUB_ENV |
| 103 | echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV | 144 | echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV |
| 145 | - name: fetch libplist | ||
| 146 | uses: dawidd6/action-download-artifact@v2 | ||
| 147 | with: | ||
| 148 | github_token: ${{secrets.GITHUB_TOKEN}} | ||
| 149 | workflow: build.yml | ||
| 150 | name: libplist-latest_${{ matrix.arch }}-${{ env.dest }} | ||
| 151 | repo: libimobiledevice/libplist | ||
| 152 | - name: fetch libimobiledevice-glue | ||
| 153 | uses: dawidd6/action-download-artifact@v2 | ||
| 154 | with: | ||
| 155 | github_token: ${{secrets.GITHUB_TOKEN}} | ||
| 156 | workflow: build.yml | ||
| 157 | name: libimobiledevice-glue-latest_${{ matrix.arch }}-${{ env.dest }} | ||
| 158 | repo: libimobiledevice/libimobiledevice-glue | ||
| 159 | - name: install external dependencies | ||
| 160 | run: | | ||
| 161 | mkdir extract | ||
| 162 | for I in *.tar; do | ||
| 163 | tar -C extract -xvf $I | ||
| 164 | done | ||
| 165 | cp -r extract/* / | ||
| 104 | - uses: actions/checkout@v2 | 166 | - uses: actions/checkout@v2 |
| 105 | - name: autogen | 167 | - name: autogen |
| 106 | run: ./autogen.sh CC=gcc CXX=g++ | 168 | run: ./autogen.sh CC=gcc CXX=g++ |
