diff options
Diffstat (limited to '.github/workflows/build.yml')
| -rw-r--r-- | .github/workflows/build.yml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f8eaf88..aff2502 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml | |||
| @@ -9,15 +9,31 @@ jobs: | |||
| 9 | - name: install dependencies | 9 | - name: install dependencies |
| 10 | run: | | 10 | run: | |
| 11 | sudo apt-get install cython3 | 11 | sudo apt-get install cython3 |
| 12 | - name: prepare environment | ||
| 13 | run: | | ||
| 14 | echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV | ||
| 12 | - uses: actions/checkout@v2 | 15 | - uses: actions/checkout@v2 |
| 13 | - name: autogen | 16 | - name: autogen |
| 14 | run: | | 17 | run: | |
| 15 | export PYTHON=python3 | 18 | export PYTHON=python3 |
| 19 | export LDFLAGS="-Wl,-rpath=/usr/local/lib" | ||
| 16 | ./autogen.sh | 20 | ./autogen.sh |
| 17 | - name: make | 21 | - name: make |
| 18 | run: make | 22 | run: make |
| 19 | - name: make check | 23 | - name: make check |
| 20 | run: make check | 24 | run: make check |
| 25 | - name: make install | ||
| 26 | run: sudo make install | ||
| 27 | - name: prepare artifact | ||
| 28 | run: | | ||
| 29 | mkdir -p dest | ||
| 30 | DESTDIR=`pwd`/dest make install | ||
| 31 | tar -C dest -cf libplist.tar usr | ||
| 32 | - name: publish artifact | ||
| 33 | uses: actions/upload-artifact@v2 | ||
| 34 | with: | ||
| 35 | name: libplist-latest_${{env.target_triplet}} | ||
| 36 | path: libplist.tar | ||
| 21 | build-macOS: | 37 | build-macOS: |
| 22 | runs-on: macOS-latest | 38 | runs-on: macOS-latest |
| 23 | steps: | 39 | steps: |
| @@ -62,6 +78,18 @@ jobs: | |||
| 62 | run: make | 78 | run: make |
| 63 | - name: make check | 79 | - name: make check |
| 64 | run: make check | 80 | run: make check |
| 81 | - name: make install | ||
| 82 | run: sudo make install | ||
| 83 | - name: prepare artifact | ||
| 84 | run: | | ||
| 85 | mkdir -p dest | ||
| 86 | DESTDIR=`pwd`/dest make install | ||
| 87 | tar -C dest -cf libplist.tar usr | ||
| 88 | - name: publish artifact | ||
| 89 | uses: actions/upload-artifact@v2 | ||
| 90 | with: | ||
| 91 | name: libplist-latest_macOS | ||
| 92 | path: libplist.tar | ||
| 65 | build-windows: | 93 | build-windows: |
| 66 | runs-on: windows-latest | 94 | runs-on: windows-latest |
| 67 | defaults: | 95 | defaults: |
| @@ -89,6 +117,11 @@ jobs: | |||
| 89 | autoconf | 117 | autoconf |
| 90 | automake-wrapper | 118 | automake-wrapper |
| 91 | cython | 119 | cython |
| 120 | - name: prepare environment | ||
| 121 | run: | | ||
| 122 | dest=`echo ${{ matrix.msystem }} |tr [:upper:] [:lower:]` | ||
| 123 | echo "dest=$dest" >> $GITHUB_ENV | ||
| 124 | echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV | ||
| 92 | - uses: actions/checkout@v2 | 125 | - uses: actions/checkout@v2 |
| 93 | - name: autogen | 126 | - name: autogen |
| 94 | run: ./autogen.sh CC=gcc CXX=g++ | 127 | run: ./autogen.sh CC=gcc CXX=g++ |
| @@ -108,3 +141,15 @@ jobs: | |||
| 108 | fi | 141 | fi |
| 109 | done | 142 | done |
| 110 | shell: bash | 143 | shell: bash |
| 144 | - name: make install | ||
| 145 | run: make install | ||
| 146 | - name: prepare artifact | ||
| 147 | run: | | ||
| 148 | mkdir -p dest | ||
| 149 | DESTDIR=`pwd`/dest make install | ||
| 150 | tar -C dest -cf libplist.tar ${{ env.dest }} | ||
| 151 | - name: publish artifact | ||
| 152 | uses: actions/upload-artifact@v2 | ||
| 153 | with: | ||
| 154 | name: libplist-latest_${{ matrix.arch }}-${{ env.dest }} | ||
| 155 | path: libplist.tar | ||
