summaryrefslogtreecommitdiffstats
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-06-09 03:43:52 +0200
committerGravatar Nikias Bassen2021-06-09 03:43:52 +0200
commit787a4497f1e7fa9a771a2f78b811f7835c33f68f (patch)
treeb21c4504233aff1445e5dce7de068abba8568845 /.github/workflows/build.yml
parentf64f30aa845ca94ab790da029a36cbdd585a1dd8 (diff)
downloadlibplist-787a4497f1e7fa9a771a2f78b811f7835c33f68f.tar.gz
libplist-787a4497f1e7fa9a771a2f78b811f7835c33f68f.tar.bz2
[github-actions] Create artifacts
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml45
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:
- name: install dependencies
run: |
sudo apt-get install cython3
+ - name: prepare environment
+ run: |
+ echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV
- uses: actions/checkout@v2
- name: autogen
run: |
export PYTHON=python3
+ export LDFLAGS="-Wl,-rpath=/usr/local/lib"
./autogen.sh
- name: make
run: make
- name: make check
run: make check
+ - name: make install
+ run: sudo make install
+ - name: prepare artifact
+ run: |
+ mkdir -p dest
+ DESTDIR=`pwd`/dest make install
+ tar -C dest -cf libplist.tar usr
+ - name: publish artifact
+ uses: actions/upload-artifact@v2
+ with:
+ name: libplist-latest_${{env.target_triplet}}
+ path: libplist.tar
build-macOS:
runs-on: macOS-latest
steps:
@@ -62,6 +78,18 @@ jobs:
run: make
- name: make check
run: make check
+ - name: make install
+ run: sudo make install
+ - name: prepare artifact
+ run: |
+ mkdir -p dest
+ DESTDIR=`pwd`/dest make install
+ tar -C dest -cf libplist.tar usr
+ - name: publish artifact
+ uses: actions/upload-artifact@v2
+ with:
+ name: libplist-latest_macOS
+ path: libplist.tar
build-windows:
runs-on: windows-latest
defaults:
@@ -89,6 +117,11 @@ jobs:
autoconf
automake-wrapper
cython
+ - name: prepare environment
+ run: |
+ dest=`echo ${{ matrix.msystem }} |tr [:upper:] [:lower:]`
+ echo "dest=$dest" >> $GITHUB_ENV
+ echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV
- uses: actions/checkout@v2
- name: autogen
run: ./autogen.sh CC=gcc CXX=g++
@@ -108,3 +141,15 @@ jobs:
fi
done
shell: bash
+ - name: make install
+ run: make install
+ - name: prepare artifact
+ run: |
+ mkdir -p dest
+ DESTDIR=`pwd`/dest make install
+ tar -C dest -cf libplist.tar ${{ env.dest }}
+ - name: publish artifact
+ uses: actions/upload-artifact@v2
+ with:
+ name: libplist-latest_${{ matrix.arch }}-${{ env.dest }}
+ path: libplist.tar