diff options
| author | 2020-11-21 03:35:24 +0100 | |
|---|---|---|
| committer | 2020-11-21 03:35:24 +0100 | |
| commit | 74425fec9103b5e79a352a1f4ca5a762758da032 (patch) | |
| tree | 3d84bc62556481c24b5271b38d0076b205b7de59 /.github/workflows | |
| parent | 66fef8c7c480888a0650342138ffce31ffcb882a (diff) | |
| download | libplist-74425fec9103b5e79a352a1f4ca5a762758da032.tar.gz libplist-74425fec9103b5e79a352a1f4ca5a762758da032.tar.bz2 | |
[github-actions] Update msys2/windows build action
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7011681..2abc38b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml | |||
| @@ -8,7 +8,7 @@ jobs: | |||
| 8 | steps: | 8 | steps: |
| 9 | - name: install dependencies | 9 | - name: install dependencies |
| 10 | run: sudo apt-get install cython | 10 | run: sudo apt-get install cython |
| 11 | - uses: actions/checkout@v1 | 11 | - uses: actions/checkout@v2 |
| 12 | - name: autogen | 12 | - name: autogen |
| 13 | run: ./autogen.sh | 13 | run: ./autogen.sh |
| 14 | - name: make | 14 | - name: make |
| @@ -27,7 +27,7 @@ jobs: | |||
| 27 | fi | 27 | fi |
| 28 | pip install cython | 28 | pip install cython |
| 29 | shell: bash | 29 | shell: bash |
| 30 | - uses: actions/checkout@v1 | 30 | - uses: actions/checkout@v2 |
| 31 | - name: autogen | 31 | - name: autogen |
| 32 | run: ./autogen.sh | 32 | run: ./autogen.sh |
| 33 | - name: make | 33 | - name: make |
| @@ -36,17 +36,29 @@ jobs: | |||
| 36 | run: make check | 36 | run: make check |
| 37 | build-windows: | 37 | build-windows: |
| 38 | runs-on: windows-latest | 38 | runs-on: windows-latest |
| 39 | defaults: | ||
| 40 | run: | ||
| 41 | shell: msys2 {0} | ||
| 39 | steps: | 42 | steps: |
| 40 | - uses: numworks/setup-msys2@v1 | 43 | - uses: msys2/setup-msys2@v2 |
| 41 | - name: install dependencies | 44 | with: |
| 42 | run: msys2do pacman -S --noconfirm mingw-w64-x86_64-gcc make libtool autoconf automake-wrapper | 45 | release: false |
| 43 | - uses: actions/checkout@v1 | 46 | update: false |
| 47 | install: >- | ||
| 48 | base-devel | ||
| 49 | git | ||
| 50 | mingw-w64-x86_64-gcc | ||
| 51 | make | ||
| 52 | libtool | ||
| 53 | autoconf | ||
| 54 | automake-wrapper | ||
| 55 | - uses: actions/checkout@v2 | ||
| 44 | - name: autogen | 56 | - name: autogen |
| 45 | run: msys2do ./autogen.sh --without-cython | 57 | run: ./autogen.sh CC=gcc CXX=g++ --without-cython |
| 46 | - name: make | 58 | - name: make |
| 47 | run: msys2do make | 59 | run: make |
| 48 | - name: make check | 60 | - name: make check |
| 49 | run: msys2do make check | 61 | run: make check |
| 50 | - name: print test logs | 62 | - name: print test logs |
| 51 | run: | | 63 | run: | |
| 52 | for I in test/*.trs; do | 64 | for I in test/*.trs; do |
| @@ -59,4 +71,3 @@ jobs: | |||
| 59 | fi | 71 | fi |
| 60 | done | 72 | done |
| 61 | shell: bash | 73 | shell: bash |
| 62 | if: always() | ||
