inkstitch/.github/workflows/build.yml

76 wiersze
2.3 KiB
YAML
Czysty Zwykły widok Historia

2019-11-15 18:09:53 +00:00
name: Build
2019-11-24 01:02:31 +00:00
on:
push:
branches-ignore:
- master
tags:
- "v*"
2019-11-15 18:09:53 +00:00
jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- uses: actions/setup-python@v1
with:
python-version: '2.7.x'
architecture: 'x86'
- name: download dependencies
shell: bash
run: |
curl -sOL https://github.com/lexelby/inkstitch-build-objects/releases/download/v1.0.0/Shapely-1.6.3-cp27-cp27m-win32.whl
curl -sOL https://inkscape.org/en/gallery/item/12187/inkscape-0.92.3.tar.bz2
- name: install dependencies
shell: bash
run: |
pip install Shapely-1.6.3-cp27-cp27m-win32.whl
pip install -r requirements.txt
pip install pyinstaller==3.3.1
tar -jxf inkscape-0.92.3.tar.bz2
rm inkscape-0.92.3.tar.bz2
mv inkscape-0.92.3 inkscape
echo "::add-path::${{ env.pythonLocation }}\bin"
- name: fix geos
shell: bash
run: |
cd "${{ env.pythonLocation }}\Lib/site-packages/shapely/DLLs"
cp geos_c.dll geos.dll
- shell: bash
run: |
make dist
find .
env:
BUILD: windows
- uses: actions/upload-artifact@master
with:
name: inkstitch-windows
path: artifacts
2019-11-24 01:02:31 +00:00
- name: determine release info
2019-11-19 02:53:15 +00:00
shell: bash
run: |
2019-11-24 01:02:31 +00:00
if [[ "${GITHUB_REF}" =~ ^v[0-9.]+$ ]]; then
echo "::set-env name=release_tag::${GITHUB_REF}"
echo "::set-env name=prerelease::false"
echo "::set-env name=title::${GITHUB_REF}"
else
branch="${GITHUB_REF#refs/heads/}"
tag="dev-build-$(echo $branch | tr / -)"
echo "::set-env name=release_tag::${tag}"
echo "::set-env name=prerelease::true"
echo "::set-env name=title::development build of $branch"
fi
- name: create/update release
2019-12-19 20:22:30 +00:00
uses: "marvinpinto/action-automatic-releases@latest"
2019-11-24 01:02:31 +00:00
with:
repo_token: "${{secrets.GITHUB_TOKEN}}"
automatic_release_tag: "${{env.release_tag}}"
prerelease: "${{env.prerelease}}"
title: "${{env.title}}"
files: |
artifacts/*.zip
2019-11-19 02:53:15 +00:00
2019-11-24 01:02:31 +00:00